ElkArte Community

Project Support => Support => Topic started by: hkokate on June 23, 2019, 12:48:51 pm

Title: Forum loads only a blank web-page
Post by: hkokate on June 23, 2019, 12:48:51 pm
I have my forum here: https://www.compuro.ml/forum/

I host it on InfinityFree: https://www.infinityfree.net/

From the past 3 or 4 days, my forum started loading just a white page. Nothing on it. I haven't made any changes to the forum. I just updated a post of mine daily. It doesn't have many users (probably just 2 or 3 including me). The only significant change that I know of is that my host updated to PHP 7.3 (from 7.0 or 7.2 mostly).

An important thing to note: My index.html loads fine: https://www.compuro.ml/index.html. Only the forum is giving problems. The browser's console is also empty. I literally have no clue what to do. I contacted my host, they say, it's all fine from their end. Getting a solution from you guys is my last resort.
Title: Re: Forum loads only a blank web-page
Post by: Jason on June 23, 2019, 02:16:19 pm
Did you try changing back the php version and in the settings.php look for any changes
Title: Re: Forum loads only a blank web-page
Post by: Spuds on June 23, 2019, 05:20:22 pm
Do what @Jason said, move back to 7.2, it should be available in your control panel.

ElkArte 1.1.6 which is kind of done but not yet packaged up, was at least tested on 7.3 and will be the first version that should ... thats should ... have not issues with 7.3
Title: Re: Forum loads only a blank web-page
Post by: emanuele on June 23, 2019, 06:11:17 pm
I was planning to pack it up today, but.. fudge nuggets happens.
Next week I'm away, so... I'll not be able to finish up the package and release before the 7th of July. :-\
Title: Re: Forum loads only a blank web-page
Post by: hkokate on June 24, 2019, 12:00:28 am
Quote from: Jason – Did you try changing back the php version and in the settings.php look for any changes
I have an option to change it to 5.6 directly (also, 5.5 and 5.4). No more PHP 7 except 7.3. I have set it to 5.6 before posting here. Still the same.
Title: Re: Forum loads only a blank web-page
Post by: hkokate on June 24, 2019, 12:08:41 am
Quote from: Spuds – Do what @Jason said, move back to 7.2, it should be available in your control panel.

ElkArte 1.1.6 which is kind of done but not yet packaged up, was at least tested on 7.3 and will be the first version that should ... thats should ... have not issues with 7.3

Considering 1.1.6 works on 7.3, will I still be able to upgrade my forum when I can't see anything? I remember upgrading from 1.1.3 to 1.1.4 and 1.1.5 by adding those packages as add-ons.
Title: Re: Forum loads only a blank web-page
Post by: Spuds on June 24, 2019, 05:58:07 pm
If the forum is not loading on php5.6 then you have some server config issue that you need to resolve before you worry about upgrading to 1.1.6.  Check your server web and php error logs and see what they say.
Title: Re: Forum loads only a blank web-page
Post by: hkokate on June 25, 2019, 03:10:30 am
Quote from: Spuds – If the forum is not loading on php5.6 then you have some server config issue that you need to resolve before you worry about upgrading to 1.1.6.  Check your server web and php error logs and see what they say.

Okay, there might be some confusion. My cpanel account settings show that I'm using PHP 7.0 while when I go to alter php version and choose the domain to work on, there it shows my php version is 5.6. I'll confirm about this with the hosting and update here.

By the way, I'm attaching a complete phpinfo() of my account. It still says 7.3.6, but, I'm in talks with the hosting while I write this about the actual version. Let me know if there's some problem in it somewhere.
Title: Re: Forum loads only a blank web-page
Post by: badmonkey on June 25, 2019, 05:45:08 am
If it helps, I'm running a handful of Elk installs on 7.3.  ;)
Title: Re: Forum loads only a blank web-page
Post by: ahrasis on June 25, 2019, 05:48:56 am
Me too with no problem.
Title: Re: Forum loads only a blank web-page
Post by: emanuele on June 25, 2019, 11:42:45 am
I guess you are pretty lucky. :P
When I found myself with php 7.3 on my localhost I had to push few fixes here and there in order to have anything working. :)
Title: Re: Forum loads only a blank web-page
Post by: badmonkey on June 25, 2019, 08:13:22 pm
Quote from: emanuele – I guess you are pretty lucky. :P
When I found myself with php 7.3 on my localhost I had to push few fixes here and there in order to have anything working. :)
 
 Of course we're lucky! We have you guys!   ;D
Title: Re: Forum loads only a blank web-page
Post by: ahrasis on June 25, 2019, 09:09:29 pm
Am just using fixes shared in this forum while waiting for 1.1.6. Not sure if anyone needed more than that.
Title: Re: Forum loads only a blank web-page
Post by: hkokate on June 26, 2019, 04:41:59 am
Update. I have found that this is my current phpinfo() of my domain: https://www.compuro.ml/a.php.

If the php version isn't a problem, can anyone any possible causes for my forum to disappear just like that?
Title: Re: Forum loads only a blank web-page
Post by: badmonkey on June 26, 2019, 07:28:11 am
I've had a similar strange issue on a couple of occasions. It is possible for a post to corrupt the page. It makes little sense, but it can happen. The solution is manually removing the post. Do you have access to phpmyadmin?
Title: Re: Forum loads only a blank web-page
Post by: hkokate on June 26, 2019, 08:13:39 am
Quote from: badmonkey – I've had a similar strange issue on a couple of occasions. It is possible for a post to corrupt the page. It makes little sense, but it can happen. The solution is manually removing the post. Do you have access to phpmyadmin?

Yes, I do have.
Title: Re: Forum loads only a blank web-page
Post by: Spuds on June 26, 2019, 01:53:52 pm
Anything in your web server and/or php error logs that would provide a clue?.
Title: Re: Forum loads only a blank web-page
Post by: badmonkey on June 26, 2019, 09:11:09 pm
Quote from: hkokate –
Quote from: badmonkey – I've had a similar strange issue on a couple of occasions. It is possible for a post to corrupt the page. It makes little sense, but it can happen. The solution is manually removing the post. Do you have access to phpmyadmin?
  
Yes, I do have.
 
 Did the issue begin immediately after the post? If so, use phpmyadmin to locate the last post. Inspect it for unusual characters or code. As a last resort, you may even consider deleting the last post. 
Title: Re: Forum loads only a blank web-page
Post by: TigerAnt on June 26, 2019, 09:25:24 pm
I cannot answer that because I uninstalled and reinstalled ElkArte 1.1.5 and I did not reinstall the addon that caused the problem.
Title: Re: Forum loads only a blank web-page
Post by: ahrasis on June 27, 2019, 02:09:26 am
???
Title: Re: Forum loads only a blank web-page
Post by: hkokate on June 27, 2019, 08:06:40 am
Quote from: Spuds – Anything in your web server and/or php error logs that would provide a clue?.
They disabled logs for free hosting a while back, Even I wish they were on so that it'd have helped troubleshoot this issue faster.
Title: Re: Forum loads only a blank web-page
Post by: hkokate on June 27, 2019, 08:08:05 am
Quote from: badmonkey –
Quote from: hkokate –
Quote from: badmonkey – I've had a similar strange issue on a couple of occasions. It is possible for a post to corrupt the page. It makes little sense, but it can happen. The solution is manually removing the post. Do you have access to phpmyadmin?
 
Yes, I do have.

 Did the issue begin immediately after the post? If so, use phpmyadmin to locate the last post. Inspect it for unusual characters or code. As a last resort, you may even consider deleting the last post.

Where exactly do I find the last post in all those tables? I found the elkarte_topics table, but, it just has topic_id, etc. How can I access the contents of a post?
Title: Re: Forum loads only a blank web-page
Post by: badmonkey on June 27, 2019, 08:34:21 am
Quote from: hkokate –
Quote from: badmonkey –
Quote from: hkokate –
Quote from: badmonkey – I've had a similar strange issue on a couple of occasions. It is possible for a post to corrupt the page. It makes little sense, but it can happen. The solution is manually removing the post. Do you have access to phpmyadmin?
   
Yes, I do have.
  
 Did the issue begin immediately after the post? If so, use phpmyadmin to locate the last post. Inspect it for unusual characters or code. As a last resort, you may even consider deleting the last post.
  
Where exactly do I find the last post in all those tables? I found the elkarte_topics table, but, it just has topic_id, etc. How can I access the contents of a post?
 
 It's in the messages table. You can sort by Unix timestamp.
Title: Re: Forum loads only a blank web-page
Post by: hkokate on June 27, 2019, 10:03:22 am
Quote from: badmonkey – It's in the messages table. You can sort by Unix timestamp.

Guess, I'm gonna be left without any solution. Deleting a few recent posts didn't help.
Title: Re: Forum loads only a blank web-page
Post by: hkokate on June 27, 2019, 10:16:29 am
As of now, I'm gonna try to move to a different host and check is the issue persists, because for all I know, I am hosting 2 ElkArte on 2 different and both went down, probably at the same time. So, it either is php7.3 issue or something wrong from the host.
Title: Re: Forum loads only a blank web-page
Post by: Spuds on June 27, 2019, 01:19:40 pm
I went to your site and tried to bring up the ssi_examples.php file and it does load but I see an error:
Code: [Select]
Notice: Undefined variable: scripturl in /home/vol8_6/epizy.com/epiz_22075773/htdocs/forum/themes/default/languages/english/Downloads.english.php on line 530
which would indicate an error in an addon, perhaps a version that is not compatable with php7.3

ssi_examples ran fine, so that indicates php is running as it should, and the database is running as it should and ElkArte is able to fetch all of the data correctly.
Title: Re: Forum loads only a blank web-page
Post by: hkokate on June 27, 2019, 01:31:39 pm
Quote from: Spuds – I went to your site and tried to bring up the ssi_examples.php file and it does load but I see an error:
Code: [Select]
Notice: Undefined variable: scripturl in /home/vol8_6/epizy.com/epiz_22075773/htdocs/forum/themes/default/languages/english/Downloads.english.php on line 530
which would indicate an error in an addon, perhaps a version that is not compatable with php7.3

ssi_examples ran fine, so that indicates php is running as it should, and the database is running as it should and ElkArte is able to fetch all of the data correctly.

How do I unistall the addons then? Will just deleting them from the folder help?
Title: Re: Forum loads only a blank web-page
Post by: Spuds on June 27, 2019, 05:23:26 pm
It really depends on if the package was all integration hooks or if it made some source edits.

I'm attaching a file that may help, or may do nothing at all TBH

Place this in your forum root directory and call it from your browser as  yourforumurl/fixp.php  ...  it should show you the packages you have installed which may help in the debug, knowing whats been added is a start.

Note that this utility is intended to help mark packages as installed or uninstalled as sometimes that status can get broken, but it does not perform any install or uninstall functions, its just a simple db cleanup tool.

One thing that it can do is remove all integration hooks from the DB.  For packages that are 100% hook based, that action effectively disables ALL those packages from loading.  You must then go to the package manager and uninstall / reinstall all packages.   So use that button with some caution.  If the defective package was partially hook based it may also help, if it was good old source edits, it will have no effect.
Title: Re: Forum loads only a blank web-page
Post by: hkokate on June 28, 2019, 04:55:54 am
Quote from: Spuds – It really depends on if the package was all integration hooks or if it made some source edits.

I'm attaching a file that may help, or may do nothing at all TBH

Place this in your forum root directory and call it from your browser as  yourforumurl/fixp.php  ...  it should show you the packages you have installed which may help in the debug, knowing whats been added is a start.

Note that this utility is intended to help mark packages as installed or uninstalled as sometimes that status can get broken, but it does not perform any install or uninstall functions, its just a simple db cleanup tool.

One thing that it can do is remove all integration hooks from the DB.  For packages that are 100% hook based, that action effectively disables ALL those packages from loading.  You must then go to the package manager and uninstall / reinstall all packages.   So use that button with some caution.  If the defective package was partially hook based it may also help, if it was good old source edits, it will have no effect.


You're a blessing, sir. There were a lot of addons, so, I just went ahead and used Remove all hooks option and that solved the issue. My forum now loads. Thanks, thanks, thanks a lot!!! I'll try the addons to see which one was the issue.
Title: Re: Forum loads only a blank web-page
Post by: hkokate on June 28, 2019, 06:07:24 am
Update: This was the add-on (most-likely) that caused the error: Global Header and Footer (https://addons.elkarte.net/feature/BKE-Elk-Global_Header_and_Footer.html). As soon as I installed it, the forum started behaving in the same way.

However, when I did the same on my other forum: https://www.teleapps.ml/index.php, the forum loads fine, but, I can't enter any board. I can see the posts from links, but, not the board.

I get this type of a page (attached image). This forum (now) has no addons installed or even in the list.

However, this isn't an issue with the forum we discussed about till now.

Title: Re: Forum loads only a blank web-page
Post by: Spuds on June 28, 2019, 12:34:54 pm
Yes the global header and footer causes a white screen on forum load with ElkArte 1.1 ... I believe I've fixed that error and have posted an update here:  https://www.elkarte.net/community/index.php?topic=2720.msg39951#msg39951
Title: Re: Forum loads only a blank web-page
Post by: hkokate on June 28, 2019, 12:40:59 pm
Quote from: Spuds – Yes the global header and footer causes a white screen on forum load with ElkArte 1.1 ... I believe I've fixed that error and have posted an update here:  https://www.elkarte.net/community/index.php?topic=2720.msg39951#msg39951

Oh, well, thanks for that. Any idea about the other issue?
Title: Re: Forum loads only a blank web-page
Post by: hkokate on June 28, 2019, 12:42:56 pm
Is there some way to like reset the forum without losing the posts and possibly the admin settings? That can possibly be a faster solution.
Title: Re: Forum loads only a blank web-page
Post by: ahrasis on June 29, 2019, 03:10:53 am
Overwrite the forum with original EA software should normally restore default EA forum free from any addons. Don't forget to delete install folder that comes with it.
Title: Re: Forum loads only a blank web-page
Post by: hkokate on June 29, 2019, 05:48:40 am
Quote from: ahrasis – Overwrite the forum with original EA software should normally restore default EA forum free from any addons. Don't forget to delete install folder that comes with it.

Do I just have to like delete all the files from my forum installation and upload the new ones (the overwrite function doesn't work very reliably in my case, might be my server's issue or my client's issue)? Even I overwrite all the files, that would also overwrite the settings (DB, SMTP config, etc.) and all, right? Do I have to delete the install folder before uploading or do I have to trigger the installation process?
Title: Re: Forum loads only a blank web-page
Post by: radu81 on June 29, 2019, 09:53:07 am
Don't do that, ahrasis said to overwrite existing files and after that delete only the folder called "install" 
Title: Re: Forum loads only a blank web-page
Post by: hkokate on June 30, 2019, 01:13:13 am
Quote from: radu81 – Don't do that, ahrasis said to overwrite existing files and after that delete only the folder called "install"

Okay, so, I uploaded all the files and chose the option to overwite, after the upload was done, I deleted the install folder and viewed my forum in browser. It still gives the same error when I try to visit a board like I mentioned before (a white page with a lot of errors in bold black).

It basically says this:

Notice: Undefined index: is_admin in /home/vol5_1/epizy.com/epiz_24035374/htdocs/sources/Security.php on line 1052

Notice: Undefined index: is_guest in /home/vol5_1/epizy.com/epiz_24035374/htdocs/sources/Load.php on line 1803

Notice: Undefined index: mod_cache in /home/vol5_1/epizy.com/epiz_24035374/htdocs/sources/Load.php on line 1809

Notice: Undefined index: username in /home/vol5_1/epizy.com/epiz_24035374/htdocs/sources/Load.php on line 1810

Notice: Undefined index: language in /home/vol5_1/epizy.com/epiz_24035374/htdocs/sources/Load.php on line 1811

Notice: Undefined index: email in /home/vol5_1/epizy.com/epiz_24035374/htdocs/sources/Load.php on line 1812

Notice: Undefined index: ignoreusers in /home/vol5_1/epizy.com/epiz_24035374/htdocs/sources/Load.php on line 1813

Notice: Undefined index: name in /home/vol5_1/epizy.com/epiz_24035374/htdocs/sources/Load.php on line 1819

Notice: Undefined index: smiley_set in /home/vol5_1/epizy.com/epiz_24035374/htdocs/sources/Load.php on line 1826

Notice: Undefined index: possibly_robot in /home/vol5_1/epizy.com/epiz_24035374/htdocs/sources/BrowserDetector.class.php on line 249

Warning: array_unshift() expects parameter 1 to be array, null given in /home/vol5_1/epizy.com/epiz_24035374/htdocs/sources/Load.php on line 1578

Notice: Undefined index: language in /home/vol5_1/epizy.com/epiz_24035374/htdocs/sources/Load.php on line 1639

Notice: Undefined index: time_offset in /home/vol5_1/epizy.com/epiz_24035374/htdocs/sources/Subs.php on line 553

Notice: Undefined index: mentions in /home/vol5_1/epizy.com/epiz_24035374/htdocs/sources/subs/UserNotification.class.php on line 58

Notice: Undefined index: time_offset in /home/vol5_1/epizy.com/epiz_24035374/htdocs/sources/Subs.php on line 439

Notice: Undefined index: time_format in /home/vol5_1/epizy.com/epiz_24035374/htdocs/sources/Subs.php on line 478

Notice: Undefined index: smiley_set in /home/vol5_1/epizy.com/epiz_24035374/htdocs/sources/subs/BBC/ParserWrapper.php on line 184

Notice: Undefined index: total_time_logged_in in /home/vol5_1/epizy.com/epiz_24035374/htdocs/themes/default/Theme.php on line 664

Notice: Undefined index: groups in /home/vol5_1/epizy.com/epiz_24035374/htdocs/sources/Security.php on line 1216

Warning: array_diff(): Expected parameter 1 to be an array, null given in /home/vol5_1/epizy.com/epiz_24035374/htdocs/sources/Security.php on line 1216

Notice: Undefined index: language in /home/vol5_1/epizy.com/epiz_24035374/htdocs/sources/subs/Exception/ElkException.class.php on line 168

Try it here: https://www.teleapps.ml/index.php?board=1.0
Title: Re: Forum loads only a blank web-page
Post by: emanuele on June 30, 2019, 03:06:38 am
@ahrasis @radu81 actually, the "overwrite doesn't really work that well: if a mod uses hooks and is broken, overwriting the elk files doesn't make any difference.
What gives you a "reset" is: rename the directory "sources" to "sources_old" (to have a quick backup just in case, that you can delete later on) and re-upload+overwrite+delete install.
This is usually enough because you are also deleting the files of the addons.
Title: Re: Forum loads only a blank web-page
Post by: emanuele on June 30, 2019, 03:08:24 am
That said, @hkokate is this series of errors the "other" problems? I guess it was caused by an addon? Do you know which one?
Title: Re: Forum loads only a blank web-page
Post by: hkokate on June 30, 2019, 03:16:39 am
Quote from: emanuele – That said, @hkokate is this series of errors the "other" problems? I guess it was caused by an addon? Do you know which one?

After I got the fixp.php to fix the blank white page, I manually uninstalled all the addons from my package browser (uninstall and delete package). So, as of now, there's no add on installed. Before the forum went to the complete white page, everything was working fine, so, I don't really know which part of the process has now triggered the new error.
Title: Re: Forum loads only a blank web-page
Post by: hkokate on June 30, 2019, 03:42:47 am
Well, I renamed sources folder to sources.old, uploaded the forum again, deleted the install folder and loaded the forum in browser. Sadly, it's still the same.
Title: Re: Forum loads only a blank web-page
Post by: emanuele on June 30, 2019, 07:44:35 am
Try not using php 7.3. Use 7.2.

Also, thanks for removing the credits page. :P
Title: Re: Forum loads only a blank web-page
Post by: hkokate on June 30, 2019, 07:55:13 am
Quote from: emanuele – Try not using php 7.3. Use 7.2.

Also, thanks for removing the credits page. :P

Well, as I had said before I don't have 7.2, so, I switched to 5.6 and yes, the problem is solved!! Thanks a lot!

And yeah, well, after all this support I've got, the credits link should be there. Thanks a lot to everyone!
Title: Re: Forum loads only a blank web-page
Post by: emanuele on June 30, 2019, 08:27:16 pm
Hang on until next week, I'll put out the patch with 7.3 support.