Website was working now shows blank pages

Hey!

I was hoping someone might be able to point me in a direction to figure out why all of my web pages www.chucklessick.com (Saratoga templates) are showing up blank. I did some updates a couple months back and everything was working just fine. I went out of town this week and wanted to check the weather back home and there was nothing showing up. I haven’t changed anything recently, so I’m a bit at a loss for figuring out where to start since it seems all pages are affected. Any help would be greatly appreciated.

Thanks!

Chuck

Chuck looking at what is sent when accessing your site I can see the style data (CSS) but that is all, I can also see your clientraw.txt and that is being updated. So some files seem to have gone missing on your site or maybe have been overwritten. You need to access your site via ftp to see what has happened.

Stuart

Ken has some diagnostics at Saratoga Weather that you can use to try to track down errors. I have links to them on my website here: https://novawx.dscloud.me/diagnostics.php,

It looks like flyout-menu.php is blowing up somehow and not returning to the page.

Try changing Settings.php from

$SITE['flyoutmenu'] = true; // set to false to use the menu list inside menubar.php instead

to

$SITE['flyoutmenu'] = false; // set to false to use the menu list inside menubar.php instead

and your site should be up again.

Check the error_log for your website for PHP Fatal Error messages… that will be the clue about what causes flyout-menu.php to blow up.

I think I’m wrong… it looks like the blow-up happens in header.php … check the file permissions on that file. Should be 755 or 644 … it’s blowing up with a 500-Server Error

Thank you all for the replies! You’ve given me some things to check. I will do that and then let you know what I find. Appreciate it very much!

Chuck

Hey Ken!

Well, I tried changing the true to false, and that caused a 500 error.

I checked the permissions which were set at 644 and changed them to 755. No effect.

I checked the error log and most recently there are fatal errors as shown in the excerpt below:

[06-Feb-2023 18:27:37 UTC] PHP Notice: Undefined variable: style_color in /home/abc/public_html/ChuckLessick.com/flyout-menu.php on line 529
[06-Feb-2023 18:27:37 UTC] PHP Notice: Undefined variable: style_color in /home/abc/public_html/ChuckLessick.com/flyout-menu.php on line 529
[06-Feb-2023 18:27:37 UTC] PHP Fatal error: Uncaught Error: Call to undefined function langtransstr() in /home/abc/public_html/ChuckLessick.com/flyout-menu.php:165
Stack trace:
#0 {main}
thrown in /home/abc/public_html/ChuckLessick.com/flyout-menu.php on line 165

Here is the code from those lines in flyout-menu.php

528 foreach ($styles_array_all as $v) {
529 if($style_color == $v[‘NAME’]) {
530 $menu_colors = $v;
531 break;
532 }
533}

and

165 if ($doTrans and $title <> ‘’) { $title = preg_replace(‘|"|’,‘"’,langtransstr($title)); }
166 $caption = $doTrans?preg_replace(‘|"|’,‘"’,langtransstr($MENU[$i][‘caption’])):$MENU[$i][‘caption’];

I hope that points to something as at this point I’m a bit over my head in understanding. LOL Appreciate the help though!

Chuck

If I did not know better I would say a php upgrade has been installed by host but I could be wrong

The function langtransstr() and langtrans() are in common.php … somehow, that file is not being included in your pages (and is required).

Reupload the common.php from the Base distribution zip, and check the permissions on the file in your site for 644 or 755.

Okay I will give that a shot and report back. Thanks again for all the help!

Hey Hey!

That did the trick! I’m up and running again, and really truly appreciate all the help from everyone! :smiley:

I don’t know what caused that, but glad it is fixed.

Thanks again to all!

Chuck

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.