After update to 2.0.16 - Blank page

Started by zolander, January 09, 2020, 01:51:07 AM

Previous topic - Next topic

zolander

Hello, I tried to update to 2.0.16 and then to 2.0.17, check was ok, no errors, installation good for both. But then nothing loaded - blank page. So I uninstall 2.0.17, then 2.0.16 - and site loads well. Then install only 2.0.16 - and site went blank again.

Also - the reason I started to update was that 2 days ago my Settings are rewritten to default values and the site was down. Yesterday I fix this, install, uninstall, and leave it working. Today - same story - the Settings are default values, no connection to the database, no other errors...

Any ideas will be highly appreciated

d3vcho

"Greeting Death as an old friend, they departed this life as equals"

m4z

Quote from: zolander on January 09, 2020, 01:51:07 AM
Also - the reason I started to update was that 2 days ago my Settings are rewritten to default values and the site was down. Yesterday I fix this, install, uninstall, and leave it working. Today - same story - the Settings are default values, no connection to the database, no other errors...

What do you mean by "default values"? There's a known DB race condition that completely empties the file (fixed in 2.0.16 IIRC), but I've never heard what you're describing. What is your hosting situation? Did you use some kind of auto-installer?
"Faith is what you have in things that don't exist."
--Homer Simpson

Es gibt hier im Forum ein deutsches Support-Board!

zolander

Quote from: d3vcho(); on January 09, 2020, 02:48:43 AM
What version of PHP are you using?

7.2.19

I requested changed ini file to track all errors, nothing is reported, no sql error
And nothing is shown on the site - like home page is empty :(

zolander

Quote from: m4z on January 09, 2020, 02:58:20 AM
Quote from: zolander on January 09, 2020, 01:51:07 AM
Also - the reason I started to update was that 2 days ago my Settings are rewritten to default values and the site was down. Yesterday I fix this, install, uninstall, and leave it working. Today - same story - the Settings are default values, no connection to the database, no other errors...

What do you mean by "default values"? There's a known DB race condition that completely empties the file (fixed in 2.0.16 IIRC)

Default values for Settings file - like this:
$mbname
Default value: 'My Community' etc.

what is that known condition?

Is it possible that this update depends on ssl or something security connected that the site is not configured to use?


m4z

We had multiple reports like this one: https://www.simplemachines.org/community/index.php?topic=570818.0

Can't find the most detailed one, because people don't write useful subjects...
"Faith is what you have in things that don't exist."
--Homer Simpson

Es gibt hier im Forum ein deutsches Support-Board!

Diego Andrés

Blank page could be the mysterious cache bug, never heard of the settings.php rewritten either.
Have you checked you error log file when the site goes down?

SMF Tricks - Free & Premium Responsive Themes for SMF.

zolander

Quote from: Diego Andrés on January 09, 2020, 04:25:28 AM
Blank page could be the mysterious cache bug, never heard of the settings.php rewritten either.
Have you checked you error log file when the site goes down?

yes, nothing

Now I tried to figured out what is going on and found the index page exits here
if (empty($board) && empty($topic))
      {
             require_once($sourcedir . '/BoardIndex.php');         
         return 'BoardIndex';
      }

is it ok? I am not very acknowledged with php code

zolander

hmm I now remember I've tried to run the site with GDPR module once (may be a year ago), it required ssl and I removed it.Now I check the db settings table and find this:
gpdr_last_agreementdate     1532552059
gpdr_last_privacydate     1532552059
gpdr_clear_memberinfo     1
gpdr_enable_privacy_policy     1
gpdr_force_privacy_agree     1
gpdr_force_agreement_agree     1
gpdr_allow_export_userdata     1
force_gdpr     
requirePolicyAgreement     1

Could it be the reason for 2.0.16 not working? (I do not see module GDPR installed in admin, only in database)

Antes

Check your panel/server's error_log maybe something there ?

zolander

After uninstall of update 2.0.16-log file is full of deprecated function createFunction and similar. Now I have to find a fix for this

The best solution for me is to update to 2.0.17, but why nothing is loaded-nobody tells

m4z

If you don't show us the exact error messages, it's very hard to guess what your exact problem could be.
"Faith is what you have in things that don't exist."
--Homer Simpson

Es gibt hier im Forum ein deutsches Support-Board!

zolander

#12
Quote from: m4z on January 09, 2020, 02:07:32 PM
If you don't show us the exact error messages, it's very hard to guess what your exact problem could be.

Ok, please tell me the exact steps to enable some kind of special error logging. Now I have php.ini configured to show all errors and before seconds (I just installed the update 2.0.16 again) the error file was full of deprecated function errors. Now - nothing. No error output file created at all.  But! The admin page is loaded - no problems. If you log out - empty page - you can check by yourself [removed]

Illori

if it is a complete blank page, then check your server error log.

if the file is blank then check with your host to make sure errors are being logged.

Antes

As I stated above, your control panel should have a special section called "error_log", if you are using self-managed VPS/Server, you can find your error_logs under logs respected folders.

m4z

Quote from: zolander on January 09, 2020, 01:08:56 PM
After uninstall of update 2.0.16-log file is full of deprecated function createFunction and similar. Now I have to find a fix for this

The best solution for me is to update to 2.0.17, but why nothing is loaded-nobody tells

This would also be a good start. Please don't summarize, but give us the full error messages (of course, remove any confidential information if you need to): In which file and on which line is the error occuring, etc.
"Faith is what you have in things that don't exist."
--Homer Simpson

Es gibt hier im Forum ein deutsches Support-Board!

Antes

Quote from: m4z on January 09, 2020, 04:17:01 PM
Quote from: zolander on January 09, 2020, 01:08:56 PM
After uninstall of update 2.0.16-log file is full of deprecated function createFunction and similar. Now I have to find a fix for this

The best solution for me is to update to 2.0.17, but why nothing is loaded-nobody tells

This would also be a good start. Please don't summarize, but give us the full error messages (of course, remove any confidential information if you need to): In which file and on which line is the error occuring, etc.

Those errors probably happening due to php version is ahead for SMF 2.0.15

zolander

last update:

1. new install 2.0.17
2.loaded page without theme - but loaded!
3.change the db and db user in settings of the fresh install to the old ones
4.refresh page - blank (no errors)
5.return settings to the new db
6.refresh page - blank
7.delete data from sessions table - refresh - page loaded (no template)
8.return database path to the old one - delete sessions from db table - refresh page - blank - no errors

so my suggestions so far:
option 1 - templates
option 2 - php version?
option 3 - some strange security issue

note: all the time the admin section is loaded ok, looks ok, works ok

what am going to do tomorrow - new install, new database - will not change any paths - and if it is broken again - than I am done - return to the previous 2.0.15, with all the previous problems I had

p.s. you, guys, don't believe me there are no errors - I can see the source code too - I see all the if/else/etc.. - believe it or not - no errors
view page source - blank - nothing is loaded. I even broke page on purpose - and error appears.

zolander

Quote from: Antes on January 09, 2020, 04:14:07 PM
As I stated above, your control panel should have a special section called "error_log", if you are using self-managed VPS/Server, you can find your error_logs under logs respected folders.

cpanel has "Errors" - empty, today I have requested php.ini file - configure it to all, and it shows errors after uninstall of 2.0.16
I installed it again - no errors, not a single one even from deprecated functions (as before). log_errors in the database - empty

Sir Osis of Liver

The aforementioned race condition that wipes Settings.php happens rarely, and for it to happen twice on same forum couple days apart is very unusual (like winning the lottery twice).  Has nothing to do with deprecated errors, that's due to incompatible php version.  Can you get the forum working in 2.0.15?
When in Emor, do as the Snamors.
                              - D. Lister

Advertisement: