Dragged something by mistake?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
mariostg
Forum Members
Forum Members
Posts: 12
Joined: Wed Apr 08, 2020 12:10 pm

Dragged something by mistake?

Post 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?
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1800
Joined: Wed Feb 25, 2009 4:25 am

Re: Dragged something by mistake?

Post 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.
Not getting the answer you need? CMSMS support options
mariostg
Forum Members
Forum Members
Posts: 12
Joined: Wed Apr 08, 2020 12:10 pm

Re: Dragged something by mistake?

Post 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.
Post Reply

Return to “CMSMS Core”