Page 1 of 1

Dragged something by mistake?

Posted: Fri Apr 17, 2020 8:19 pm
by mariostg
While working within CPanel on my ISP, I think I dragged some file or folder without noticing. Now I have nothing on the screen, no error when I go on the site. I poked at index.php and it seems to break here at $tpl->fetch();:

Code: Select all

        else {
            debug_buffer('process template top');
            $tpl_id = $contentobj->TemplateId();
            $top = $body = $head = null;
            \CMSMS\HookManager::do_hook('Core::PageTopPreRender', [ 'content'=>&$contentobj, 'html'=>&$top ]);
            echo "test -1<br>";
            $tpl = $smarty->createTemplate('tpl_top:'.$tpl_id,$cache_id);
            
            [color=#BF0040]echo "test 0<br>";[/color]
            $top .= $tpl->fetch();
            echo "test1<br>";
            unset($tpl);
            echo "test2<br>";
            \CMSMS\HookManager::do_hook('Core::PageTopPostRender', [ 'content'=>&$contentobj, 'html'=>&$top ]);
            echo "test3<br>";
            // if the request has a mact in it, process and cache the output.
            preprocess_mact($contentobj->Id());
After the line echo "test 0<br>", nothing happens
How can I troubleshoot this?

Re: Dragged something by mistake?

Posted: Fri Apr 17, 2020 11:25 pm
by DIGI3
Assuming you're running 2.x, you could do a "freshen" install. Download the 2.x installer matching your cmsms version and run it - it should prompt you for a freshen which will replace/add all core files without changing anything in the database.

If you're running 1.x (of course you're not, right?) then you can do a similar operation by running the installer for that version again. There's a checkbox for not doing any database modification - I can't remember the wording exactly.

Backup first of course. And you can also check with your host to see if they have daily backups - they might just be able to restore yesterday's for you.

Re: Dragged something by mistake?

Posted: Sat Apr 18, 2020 9:30 pm
by mariostg
@DIGI3, thank you. I will keep your post in my bucket, I did not know it is possible to do a "freshen" install. I do run 2.2.12.

It turns out the culprit was admin/lang/ext. It was empty. I put the language files back in, and everything is fine.