Blank screen on my SMF site

Started by saurabh1938, September 18, 2021, 02:57:59 AM

Previous topic - Next topic

saurabh1938

PHPInfo is accessible, I have posted the information in above post.
Visit my forum : www.gotripperz.com

saurabh1938

Quote from: Chief of Nothing on September 20, 2021, 11:24:11 AMI don't think that'll help in this case, php simply isn't working. On face value from the log posted it looks like suexec is trying to return the page for account suspended and failing, yet the account is not suspended as I can reach any of the non php files of the SMF installation just fine, so that's probably a red herring.

OP, there should definitely be other logs, specifically one for Apache and possibly a separate one for php. Without knowing what's going on with Apache and php there's not much more anyone here can do, but do try this just to see if we can rule out whether it's a server problem or a problem with SMF's index.php.

Create a php file in the root directory of your webserver with the following content and run it (delete it once your done) and tell us whether you get Testing 1 2 3 on the screen or if you get the blank screen.

<?php
echo "Testing 1 2 3";
?>



I created Test.php in the root and opened it, it's giving the output as expected.
Visit my forum : www.gotripperz.com

saurabh1938

Finally I can see some webserver logs:

(index.html.var,index.htm,index.html,index.xhtml,index.wml,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.php4,index.php3,index.php,index.phtml,index.shtml,default.htm,default.html,home.htm,index.php5,Default.html,Default.htm,home.html,welcome.html) found, and server-generated directory index forbidden by Options directive, referer: binance.com
[Mon Sep 20 09:13:13.206468 2021] [include:error] [pid 790158:tid 47759327811328] [client 218.214.240.71:5378] unable to include potential exec "./SSI.php?ssi_function=recentAttachments" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 09:13:13.206354 2021] [include:error] [pid 790158:tid 47759327811328] [client 218.214.240.71:5378] unable to include potential exec "./SSI.php?ssi_function=recentEvents" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 09:13:13.206249 2021] [include:error] [pid 790158:tid 47759327811328] [client 218.214.240.71:5378] unable to include potential exec "./SSI.php?ssi_function=todaysCalendar" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 09:13:13.206143 2021] [include:error] [pid 790158:tid 47759327811328] [client 218.214.240.71:5378] unable to include potential exec "./SSI.php?ssi_function=todaysEvents" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 09:13:13.206036 2021] [include:error] [pid 790158:tid 47759327811328] [client 218.214.240.71:5378] unable to include potential exec "./SSI.php?ssi_function=todaysHolidays" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 09:13:13.205925 2021] [include:error] [pid 790158:tid 47759327811328] [client 218.214.240.71:5378] unable to include potential exec "./SSI.php?ssi_function=todaysBirthdays" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 09:13:13.205818 2021] [include:error] [pid 790158:tid 47759327811328] [client 218.214.240.71:5378] unable to include potential exec "./SSI.php?ssi_function=logout" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 09:13:13.205711 2021] [include:error] [pid 790158:tid 47759327811328] [client 218.214.240.71:5378] unable to include potential exec "./SSI.php?ssi_function=login" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 09:13:13.205602 2021] [include:error] [pid 790158:tid 47759327811328] [client 218.214.240.71:5378] unable to include potential exec "./SSI.php?ssi_function=quickSearch" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 09:13:13.205485 2021] [include:error] [pid 790158:tid 47759327811328] [client 218.214.240.71:5378] unable to include potential exec "./SSI.php?ssi_function=menubar" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 09:13:13.205376 2021] [include:error] [pid 790158:tid 47759327811328] [client 218.214.240.71:5378] unable to include potential exec "./SSI.php?ssi_function=boardNews" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 09:13:13.205268 2021] [include:error] [pid 790158:tid 47759327811328] [client 218.214.240.71:5378] unable to include potential exec "./SSI.php?ssi_function=news" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 09:13:13.205174 2021] [include:error] [pid 790158:tid 47759327811328] [client 218.214.240.71:5378] unable to include potential exec "./SSI.php?ssi_function=welcome" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 09:13:13.205078 2021] [include:error] [pid 790158:tid 47759327811328] [client 218.214.240.71:5378] unable to include potential exec "./SSI.php?ssi_function=logOnline" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 09:13:13.204993 2021] [include:error] [pid 790158:tid 47759327811328] [client 218.214.240.71:5378] unable to include potential exec "./SSI.php?ssi_function=whosOnline" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 09:13:13.204907 2021] [include:error] [pid 790158:tid 47759327811328] [client 218.214.240.71:5378] unable to include potential exec "./SSI.php?ssi_function=boardStats" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 09:13:13.204819 2021] [include:error] [pid 790158:tid 47759327811328] [client 218.214.240.71:5378] unable to include potential exec "./SSI.php?ssi_function=randomMember" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 09:13:13.204711 2021] [include:error] [pid 790158:tid 47759327811328] [client 218.214.240.71:5378] unable to include potential exec "./SSI.php?ssi_function=latestMember" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 09:13:13.204624 2021] [include:error] [pid 790158:tid 47759327811328] [client 218.214.240.71:5378] unable to include potential exec "./SSI.php?ssi_function=showPoll;ssi_topic=1" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 09:13:13.204530 2021] [include:error] [pid 790158:tid 47759327811328] [client 218.214.240.71:5378] unable to include potential exec "./SSI.php?ssi_function=topPoster" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 09:13:13.204435 2021] [include:error] [pid 790158:tid 47759327811328] [client 218.214.240.71:5378] unable to include potential exec "./SSI.php?ssi_function=topPoll" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 09:13:13.204348 2021] [include:error] [pid 790158:tid 47759327811328] [client 218.214.240.71:5378] unable to include potential exec "./SSI.php?ssi_function=topTopicsReplies" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 09:13:13.204259 2021] [include:error] [pid 790158:tid 47759327811328] [client 218.214.240.71:5378] unable to include potential exec "./SSI.php?ssi_function=topTopicsViews" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 09:13:13.204170 2021] [include:error] [pid 790158:tid 47759327811328] [client 218.214.240.71:5378] unable to include potential exec "./SSI.php?ssi_function=topBoards" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 09:13:13.204081 2021] [include:error] [pid 790158:tid 47759327811328] [client 218.214.240.71:5378] unable to include potential exec "./SSI.php?ssi_function=recentPoll" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 09:13:13.203985 2021] [include:error] [pid 790158:tid 47759327811328] [client 218.214.240.71:5378] unable to include potential exec "./SSI.php?ssi_function=recentPosts" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 09:13:13.203832 2021] [include:error] [pid 790158:tid 47759327811328] [client 218.214.240.71:5378] unable to include potential exec "./SSI.php?ssi_function=recentTopics" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 07:40:16.633872 2021] [access_compat:error] [pid 152360:tid 47759170217728] [client 218.214.240.71:4950] AH01797: client denied by server configuration: /home/saurabh1938/public_html/Packages/installed.list
[Mon Sep 20 07:35:37.852413 2021] [include:error] [pid 152360:tid 47759091009280] [client 218.214.240.71:4917] unable to include potential exec "./SSI.php?ssi_function=recentAttachments" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 07:35:37.852218 2021] [include:error] [pid 152360:tid 47759091009280] [client 218.214.240.71:4917] unable to include potential exec "./SSI.php?ssi_function=recentEvents" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 07:35:37.852027 2021] [include:error] [pid 152360:tid 47759091009280] [client 218.214.240.71:4917] unable to include potential exec "./SSI.php?ssi_function=todaysCalendar" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 07:35:37.851839 2021] [include:error] [pid 152360:tid 47759091009280] [client 218.214.240.71:4917] unable to include potential exec "./SSI.php?ssi_function=todaysEvents" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 07:35:37.851648 2021] [include:error] [pid 152360:tid 47759091009280] [client 218.214.240.71:4917] unable to include potential exec "./SSI.php?ssi_function=todaysHolidays" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 07:35:37.851448 2021] [include:error] [pid 152360:tid 47759091009280] [client 218.214.240.71:4917] unable to include potential exec "./SSI.php?ssi_function=todaysBirthdays" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 07:35:37.851255 2021] [include:error] [pid 152360:tid 47759091009280] [client 218.214.240.71:4917] unable to include potential exec "./SSI.php?ssi_function=logout" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 07:35:37.851062 2021] [include:error] [pid 152360:tid 47759091009280] [client 218.214.240.71:4917] unable to include potential exec "./SSI.php?ssi_function=login" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 07:35:37.850866 2021] [include:error] [pid 152360:tid 47759091009280] [client 218.214.240.71:4917] unable to include potential exec "./SSI.php?ssi_function=quickSearch" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 07:35:37.850651 2021] [include:error] [pid 152360:tid 47759091009280] [client 218.214.240.71:4917] unable to include potential exec "./SSI.php?ssi_function=menubar" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 07:35:37.850379 2021] [include:error] [pid 152360:tid 47759091009280] [client 218.214.240.71:4917] unable to include potential exec "./SSI.php?ssi_function=boardNews" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 07:35:37.850209 2021] [include:error] [pid 152360:tid 47759091009280] [client 218.214.240.71:4917] unable to include potential exec "./SSI.php?ssi_function=news" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 07:35:37.850035 2021] [include:error] [pid 152360:tid 47759091009280] [client 218.214.240.71:4917] unable to include potential exec "./SSI.php?ssi_function=welcome" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 07:35:37.849864 2021] [include:error] [pid 152360:tid 47759091009280] [client 218.214.240.71:4917] unable to include potential exec "./SSI.php?ssi_function=logOnline" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 07:35:37.849686 2021] [include:error] [pid 152360:tid 47759091009280] [client 218.214.240.71:4917] unable to include potential exec "./SSI.php?ssi_function=whosOnline" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 07:35:37.849490 2021] [include:error] [pid 152360:tid 47759091009280] [client 218.214.240.71:4917] unable to include potential exec "./SSI.php?ssi_function=boardStats" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 07:35:37.849302 2021] [include:error] [pid 152360:tid 47759091009280] [client 218.214.240.71:4917] unable to include potential exec "./SSI.php?ssi_function=randomMember" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 07:35:37.849124 2021] [include:error] [pid 152360:tid 47759091009280] [client 218.214.240.71:4917] unable to include potential exec "./SSI.php?ssi_function=latestMember" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 07:35:37.848947 2021] [include:error] [pid 152360:tid 47759091009280] [client 218.214.240.71:4917] unable to include potential exec "./SSI.php?ssi_function=showPoll;ssi_topic=1" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 07:35:37.848777 2021] [include:error] [pid 152360:tid 47759091009280] [client 218.214.240.71:4917] unable to include potential exec "./SSI.php?ssi_function=topPoster" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 07:35:37.848608 2021] [include:error] [pid 152360:tid 47759091009280] [client 218.214.240.71:4917] unable to include potential exec "./SSI.php?ssi_function=topPoll" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 07:35:37.848431 2021] [include:error] [pid 152360:tid 47759091009280] [client 218.214.240.71:4917] unable to include potential exec "./SSI.php?ssi_function=topTopicsReplies" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 07:35:37.848263 2021] [include:error] [pid 152360:tid 47759091009280] [client 218.214.240.71:4917] unable to include potential exec "./SSI.php?ssi_function=topTopicsViews" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 07:35:37.848088 2021] [include:error] [pid 152360:tid 47759091009280] [client 218.214.240.71:4917] unable to include potential exec "./SSI.php?ssi_function=topBoards" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 07:35:37.847920 2021] [include:error] [pid 152360:tid 47759091009280] [client 218.214.240.71:4917] unable to include potential exec "./SSI.php?ssi_function=recentPoll" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 07:35:37.847746 2021] [include:error] [pid 152360:tid 47759091009280] [client 218.214.240.71:4917] unable to include potential exec "./SSI.php?ssi_function=recentPosts" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 07:35:37.847552 2021] [include:error] [pid 152360:tid 47759091009280] [client 218.214.240.71:4917] unable to include potential exec "./SSI.php?ssi_function=recentTopics" in parsed file /home/saurabh1938/public_html/ssi_examples.shtml, content type not text/*
[Mon Sep 20 07:17:37.433513 2021] [cgid:error] [pid 145375:tid 47759226951424] [client 218.214.240.71:4780] AH01264: script not found or unable to stat: /home/saurabh1938/public_html/cgi-bin
[Mon Sep 20 07:01:03.431040 2021] [cgid:error] [pid 4156086:tid 47759237457664] [client 218.214.240.71:4461] AH01264: script not found or unable to stat: /home/saurabh1938/public_html/cgi-bin
[Mon Sep 20 05:25:30.797536 2021] [cgid:error] [pid 3718438:tid 47759363532544] [client 193.169.253.34:52231] AH01264: script not found or unable to stat: /home/saurabh1938/public_html/g_book.cgi
[Mon Sep 20 05:25:11.334138 2021] [cgid:error] [pid 3772982:tid 47759336216320] [client 193.169.253.34:51649] AH01264: script not found or unable to stat: /home/saurabh1938/public_html/album.cgi
[Mon Sep 20 05:25:05.609702 2021] [cgid:error] [pid 3772592:tid 47759346722560] [client 193.169.253.34:51290] AH01264: script not found or unable to stat: /home/saurabh1938/public_html/aska.cgi
[Mon Sep 20 05:24:57.968806 2021] [cgid:error] [pid 3772592:tid 47759317305088] [client 193.169.253.34:51016] AH01264: script not found or unable to stat: /home/saurabh1938/public_html/yybbs.cgi
[Mon Sep 20 05:24:53.331254 2021] [cgid:error] [pid 3772982:tid 47759327811328] [client 193.169.253.34:50902] AH01264: script not found or unable to stat: /home/saurabh1938/public_html/seo-joy.cgi
[Mon Sep 20 05:24:47.004443 2021] [cgid:error] [pid 3772592:tid 47759317305088] [client 193.169.253.34:50644] AH01264: script not found or unable to stat: /home/saurabh1938/public_html/light.cgi
[Mon Sep 20 05:24:37.466447 2021] [cgid:error] [pid 3772982:tid 47759266875136] [client 193.169.253.34:50290] AH01264: script not found or unable to stat: /home/saurabh1938/public_html/bbs.cgi
[Mon Sep 20 02:09:00.967630 2021] [autoindex:error] [pid 2529659:tid 47759332013824] [client 49.36.191.215:51427] AH01276: Cannot serve directory /home/saurabh1938/public_html/: No matching DirectoryIndex (index.html.var,index.htm,index.html,index.xhtml,index.wml,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.php4,index.php3,index.php,index.phtml,index.shtml,default.htm,default.html,home.htm,index.php5,Default.html,Default.htm,home.html,welcome.html) found, and server-generated directory index forbidden by Options directive                   
Visit my forum : www.gotripperz.com

Arantor

In which case check the file permissions of all of SMF's files. If any are set to 777 you will need to change it, folders should be 775 or 755, files should be 664 or 644.

The SSI references are not relevant to general SMF functionality.

Aleksi "Lex" Kilpinen

If that doesn't help, it may also be worth a look at what user owns the files. I've seen weird stuff happen with file ownership on some hosts, where uploaded files get different owners through different channels..
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

saurabh1938

Quote from: Arantor on September 21, 2021, 04:32:10 AMIn which case check the file permissions of all of SMF's files. If any are set to 777 you will need to change it, folders should be 775 or 755, files should be 664 or 644.

The SSI references are not relevant to general SMF functionality.

Have thoroughly checked, nothing is marked as 777. All folders are 0755 or 0750, files are 0644 or 0666
Visit my forum : www.gotripperz.com

Arantor

Try changing the 666 ones to 644.

Then if that still doesn't work, check who the file owner is for everything.

saurabh1938

#27
Made all the files to 644. still not working. However, I was looking around and caught hold of a file called error logs. Pasting the logs as latest as yesterday. Masked the username and passwords in the logs. Maybe this is due to PHP version change I committed yesterday from 5.6 to 7.3. May be below logs got generated due to that:

[20-Sep-2021 11:28:30 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function mysql_connect() in /home/saurabh1938/public_html/Sources/Subs-Db-mysql.php:58
Stack trace:
#0 /home/saurabh1938/public_html/Sources/Load.php(2691): smf_db_initiate('localhost', 'gt', '******', '******', 'gt_', Array)
#1 /home/saurabh1938/public_html/index.php(80): loadDatabase()
#2 {main}
  thrown in /home/saurabh1938/public_html/Sources/Subs-Db-mysql.php on line 58
[20-Sep-2021 11:28:31 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function mysql_connect() in /home/saurabh1938/public_html/Sources/Subs-Db-mysql.php:58
Stack trace:
#0 /home/saurabh1938/public_html/Sources/Load.php(2691): smf_db_initiate('localhost', 'gt', '*****', '*******', 'gt_', Array)
#1 /home/saurabh1938/public_html/index.php(80): loadDatabase()
#2 {main}
  thrown in /home/saurabh1938/public_html/Sources/Subs-Db-mysql.php on line 58
[20-Sep-2021 11:28:58 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function mysql_connect() in /home/saurabh1938/public_html/Sources/Subs-Db-mysql.php:58
Stack trace:
#0 /home/saurabh1938/public_html/Sources/Load.php(2691): smf_db_initiate('localhost', 'gt', '*******', '*******', 'gt_', Array)
#1 /home/saurabh1938/public_html/index.php(80): loadDatabase()
#2 {main}
  thrown in /home/saurabh1938/public_html/Sources/Subs-Db-mysql.php on line 58
[20-Sep-2021 11:29:25 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function mysql_connect() in /home/saurabh1938/public_html/Sources/Subs-Db-mysql.php:58
Stack trace:
#0 /home/saurabh1938/public_html/Sources/Load.php(2691): smf_db_initiate('localhost', 'gt', '*******', '*******', 'gt_', Array)
#1 /home/saurabh1938/public_html/index.php(80): loadDatabase()
#2 {main}
  thrown in /home/saurabh1938/public_html/Sources/Subs-Db-mysql.php on line 58
[20-Sep-2021 11:29:51 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function mysql_connect() in /home/saurabh1938/public_html/Sources/Subs-Db-mysql.php:58
Stack trace:
#0 /home/saurabh1938/public_html/Sources/Load.php(2691): smf_db_initiate('localhost', 'gt', '*******', '*******', 'gt_', Array)
#1 /home/saurabh1938/public_html/index.php(80): loadDatabase()
#2 {main}
  thrown in /home/saurabh1938/public_html/Sources/Subs-Db-mysql.php on line 58
[20-Sep-2021 11:30:20 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function mysql_connect() in /home/saurabh1938/public_html/Sources/Subs-Db-mysql.php:58
Stack trace:
#0 /home/saurabh1938/public_html/Sources/Load.php(2691): smf_db_initiate('localhost', 'gt', '*******', '*******', 'gt_', Array)
#1 /home/saurabh1938/public_html/index.php(80): loadDatabase()
#2 {main}
  thrown in /home/saurabh1938/public_html/Sources/Subs-Db-mysql.php on line 58
Visit my forum : www.gotripperz.com

Chief of Nothing

The first and last lines in that other log snippet are also suspect, as index.php exists in the root folder this error should not be generated.

Quote from: saurabh1938 on September 21, 2021, 04:31:02 AM[autoindex:error] [pid 2529659:tid 47759332013824] [client 49.36.191.215:51427] AH01276: Cannot serve directory /home/saurabh1938/public_html/: No matching DirectoryIndex (index.html.var,index.htm,index.html,index.xhtml,index.wml,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.php4,index.php3,index.php,index.phtml,index.shtml,default.htm,default.html,home.htm,index.php5,Default.html,Default.htm,home.html,welcome.html) found, and server-generated directory index forbidden by Options directive

I'll have to pass over to those more knowledgeable on this one but the last set of logs show that calling mysql_connect is failing. That function was depreciated in php 5.5.0 and your running php 5.6.40. I thought depreciated meant it was still available but apparently in this case it's not.

Edit, didn't get the full post why typing. I see that you updated php to 7.3. mysql_connect doesn't exist in php 7.3 so you will need to go back to the previous php version.


Arantor

So you need to either drop back to PHP 5.6 then patch up to the current SMF version, or forcibly upgrade SMF to current versions which will remove all your mods.

saurabh1938

I have dropped it back to 5.6 yesterday only and the blank page problem persists.
Visit my forum : www.gotripperz.com

Arantor

So now there is presumably a different error?

saurabh1938

I connected with my host they said they don't have any other logs other than the ones i can already see.

Visit my forum : www.gotripperz.com

saurabh1938

Is there anywhere else should I go and look?
Visit my forum : www.gotripperz.com

Chief of Nothing

If they say there are no other types of logs then there probably isn't (btw, your host doesn't sound like they are being very helpful).

Now that you've gone back to php 5.6 it would be good to see the error log like you posted 7 posts ago in this message of yours. So try and visit your site again so if there is an error it has a chance to be logged and then post that error log here.

saurabh1938

I can see below logs, not sure if these are related to the issue. I have multiple other sites hosted. In root folder I have the smf one and then in sub-folders I have other sites as well. The other sites are running well but I can see some error logs from the sub-folder too. Can't figure out where these logs are pointing to:

[Wed Sep 22 01:20:40.932122 2021] [cgid:error] [pid 1553674:tid 140574220564224] [client 166.1.11.246:4919] AH01264: script not found or unable to stat: /home/saurabh1938/public_html/g_book.cgi
[Wed Sep 22 01:20:34.969695 2021] [cgid:error] [pid 1562232:tid 140573895378688] [client 166.1.11.246:46179] AH01264: script not found or unable to stat: /home/saurabh1938/public_html/album.cgi
[Wed Sep 22 01:20:31.855996 2021] [cgid:error] [pid 1587855:tid 140573821949696] [client 166.1.11.246:60447] AH01264: script not found or unable to stat: /home/saurabh1938/public_html/aska.cgi
[Wed Sep 22 01:20:29.957005 2021] [cgid:error] [pid 1562232:tid 140573905868544] [client 166.1.11.246:50415] AH01264: script not found or unable to stat: /home/saurabh1938/public_html/yybbs.cgi
[Wed Sep 22 01:20:28.953861 2021] [cgid:error] [pid 1553674:tid 140573989787392] [client 166.1.11.246:58073] AH01264: script not found or unable to stat: /home/saurabh1938/public_html/seo-joy.cgi
[Wed Sep 22 01:20:26.023824 2021] [cgid:error] [pid 1587855:tid 140574189094656] [client 166.1.11.246:30277] AH01264: script not found or unable to stat: /home/saurabh1938/public_html/light.cgi
[Wed Sep 22 01:20:23.936112 2021] [cgid:error] [pid 1562232:tid 140574189094656] [client 166.1.11.246:22575] AH01264: script not found or unable to stat: /home/saurabh1938/public_html/bbs.cgi
[Tue Sep 21 03:46:53.851698 2021] [autoindex:error] [pid 2617523:tid 47759241660160] [client 218.214.240.71:3410] AH01276: Cannot serve directory /home/saurabh1938/public_html/Themes/core/scripts/: No matching DirectoryIndex (index.html.var,index.htm,index.html,index.xhtml,index.wml,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.php4,index.php3,index.php,index.phtml,index.shtml,default.htm,default.html,home.htm,index.php5,Default.html,Default.htm,home.html,welcome.html) found, and server-generated directory index forbidden by Options directive
Visit my forum : www.gotripperz.com

Arantor

These logs aren't related. The script not found lines are bots trying to find vulnerabilities, the last one is a relatively normal error about a folder that shouldn't have an index.PHP file in it, not having one in it.

But if you're back on PHP 5.6 the mysql_connect error should have gone away and new errors should be in the log... I just visited to see (which should have produced an error)

Also your SSL certificate appears to have expired.

saurabh1938

I think I have hit the dead end now  :(

Are there general troubleshooting hit and trials I can follow to attempt bringing the site back.
Visit my forum : www.gotripperz.com

Chief of Nothing

We're not at a dead end yet. Do you remember where you found the "error logs" file you mentioned in this post (I've shortened the quote)?

Quote from: saurabh1938 on September 21, 2021, 06:51:04 AMMade all the files to 644. still not working. However, I was looking around and caught hold of a file called error logs. Pasting the logs as latest as yesterday. Masked the username and passwords in the logs. Maybe this is due to PHP version change I committed yesterday from 5.6 to 7.3. May be below logs got generated due to that:

[20-Sep-2021 11:28:30 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function mysql_connect() in /home/saurabh1938/public_html/Sources/Subs-Db-mysql.php:58
Stack trace:
#0 /home/saurabh1938/public_html/Sources/Load.php(2691): smf_db_initiate('localhost', 'gt', '******', '******', 'gt_', Array)
#1 /home/saurabh1938/public_html/index.php(80): loadDatabase()
#2 {main}
  thrown in /home/saurabh1938/public_html/Sources/Subs-Db-mysql.php on line 58

This is the error log we want to see again now that you have gone back to php 5.6.0.

mariusfv

The blank screen (white screen) solutions are:
Increasing the PHP Memory Limit (in this days I recommend at least 256MB - scripts )
Disabling Mods one by one and check
Replace SMF theme with the default theme
Clear server cache
Check folder / files permissions on server / hosting side
It could be a WAF firewall conflict too!
If you use PHP-FPM (FASTCGI) last version as Apache handler check permissions per hosting user

This is very rare and no logs: If you change the PHP memory limit via cPanel / WHM interface and you replaced the old value with the new value and you forget to add M in the WHM form field you can get white screen 100%. The same will happen if you change PHP memory limit via command line with editor mode (if you forget M).

Don't rush! Do the job step by step!

Advertisement: