News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

White board on Index but other sites works ok

Started by swo0p, July 23, 2020, 09:27:59 PM

Previous topic - Next topic

swo0p

Hi there,

I need Your help because i have no idea what to do

OK, if i am opening the main site of forum https://forum.toyotaklub.org.pl/ you can see white page, but if You would like to go directly to some post or board: https://forum.toyotaklub.org.pl/index.php?board=13.0 everything works ok

It is the some, doesn't matter if is new script or old one.
It came suddenly without my intervention

When I've add error_reporting(E_ALL); at the beginning of index.php it shows:

QuoteDeprecated: Function create_function() is deprecated in /home/mierzejewski/ftp/www/tkp/forum/Sources/Subs.php on line 1088

Deprecated: Function create_function() is deprecated in /home/mierzejewski/ftp/www/tkp/forum/Sources/Subs.php on line 1130

Deprecated: Function create_function() is deprecated in /home/mierzejewski/ftp/www/tkp/forum/Sources/Subs.php on line 1179

Deprecated: Function create_function() is deprecated in /home/mierzejewski/ftp/www/tkp/forum/Sources/Subs.php on line 1195

Deprecated: Function create_function() is deprecated in /home/mierzejewski/ftp/www/tkp/forum/Sources/Subs.php on line 1214

Deprecated: Function create_function() is deprecated in /home/mierzejewski/ftp/www/tkp/forum/Sources/Subs.php on line 1225

Deprecated: Function create_function() is deprecated in /home/mierzejewski/ftp/www/tkp/forum/Sources/Subs.php on line 1299

Deprecated: Function create_function() is deprecated in /home/mierzejewski/ftp/www/tkp/forum/Sources/Subs.php on line 1310

Deprecated: Function create_function() is deprecated in /home/mierzejewski/ftp/www/tkp/forum/Sources/Subs.php on line 1485

Deprecated: Function create_function() is deprecated in /home/mierzejewski/ftp/www/tkp/forum/Sources/Subs.php on line 1510

Deprecated: Function create_function() is deprecated in /home/mierzejewski/ftp/www/tkp/forum/Sources/Subs.php on line 1547

Deprecated: Function create_function() is deprecated in /home/mierzejewski/ftp/www/tkp/forum/Sources/Subs.php on line 1578

Deprecated: Function create_function() is deprecated in /home/mierzejewski/ftp/www/tkp/forum/Sources/Subs.php on line 1589

Can You help me? I have no idea what to do

Br

Pawel

Sir Osis of Liver

ìNot on my computer, can't do much with this crappy touchscreen, but your host may have upgraded to php 7.4.  Go into cpanel, see if you have option to select php version, downgrade to 7.2.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

swo0p

It was 7.3 and now:
Quote
PHP verion: 7.2
display_errors: off
magic_quotes_gpc: off
register_globals: off
safe_mode: off
oPcache: ON
ionCube: off
phpShield: off

swo0p

additional informations:

https://forum.toyotaklub.org.pl/index.php - not working
https://forum.toyotaklub.org.pl/index.php#c9 - not working
https://forum.toyotaklub.org.pl/index.php?topic=44641.0 - working

and the index.php file is brand new, from new downloaded script

and:

Quote[Fri Jul 24 10:37:45.004469 2020] [:error] [pid 12392:tid 140531303921408] [client 157.55.39.146:23791] [client 157.55.39.146] ModSecurity: Access denied with code 403 (phase 2). Operator EQ matched 0 at REQUEST_HEADERS. [file "/usr/share/waf/02_Global_Generic.conf"] [line "47"] [id "211180"] [rev "3"] [msg "COMODO WAF: Session Fixation: SessionID Parameter Name with No Referer||||2"] [data "Matched Data: phpsessid found within REQUEST_HEADERS: 0"] [severity "CRITICAL"] [tag "CWAF"] [tag "Generic"] [hostname "forum.toyotaklub.org.pl"] [uri "/index.php"]

a10

^^^  [client 157.55.39.146] ModSecurity: Access denied with code 403 (phase 2)

Get the host to disable their faulty, ridiculous and unreliable ModSecurity, or find a new host.
2.0.19, php 8.0.23, MariaDB 10.5.15. Mods: Contact Page, Like Posts, Responsive Curve, Search Focus Dropdown, Add Join Date to Post.

swo0p

The strange thing is, that this sites listed above is not working only when i am logged out. When someone is logged in all links and pages works as usually

Arantor

Anything in the error log (both SMF and hosting account)?

Sir Osis of Liver

You may have the option to disable mod_security in cPanel -> Security. 
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

swo0p

Quote from: Arantor on July 24, 2020, 09:02:18 AM
Anything in the error log (both SMF and hosting account)?

The only one error from SMF:
Quotehttps://forum.toyotaklub.org.pl/index.php?topic=46250.0
2: Invalid argument supplied for foreach()
File: /home/mierzejewski/ftp/www/tkp/forum/Sources/Load.php
Line: 1285

and from hosting:
Quote[Sun Jul 26 19:44:12.799035 2020] [:error] [pid 14967:tid 139946358347520] [client 40.77.188.95:50059] [client 40.77.188.95] ModSecurity: Access denied with code 403 (phase 2). Operator EQ matched 0 at REQUEST_HEADERS. [file "/usr/share/waf/02_Global_Generic.conf"] [line "47"] [id "211180"] [rev "3"] [msg "COMODO WAF: Session Fixation: SessionID Parameter Name with No Referer||||2"] [data "Matched Data: phpsessid found within REQUEST_HEADERS: 0"] [severity "CRITICAL"] [tag "CWAF"] [tag "Generic"] [hostname "forum.toyotaklub.org.pl"] [uri "/index.php"]


Quote from: Sir Osis of Liver on July 24, 2020, 01:29:06 PM
You may have the option to disable mod_security in cPanel -> Security.

Yes it was disabling all security stuff

swo0p

Update: by now I've made downgrade to script 2.15 and everything works fine

swo0p

Update: I've just upload a newest SMF script and also created a new DB uploud backup of current DB to the server and ... its the some :(

Have no idea :(

PS. And I have also a lot of "engl" directories and IDN why

Sir Osis of Liver

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

a10

^^^ It's on 2.0.15

What I'd do if .17 update troubles persist is to keep .15 running as it is ftm, set up a complete and working copy of the files\db somewhere on the server (or even other host). Do the .17 update \ research \ experiments there. Then when all fixed, implement solution to the live forum.
2.0.19, php 8.0.23, MariaDB 10.5.15. Mods: Contact Page, Like Posts, Responsive Curve, Search Focus Dropdown, Add Join Date to Post.

swo0p

Quote from: a10 on July 27, 2020, 04:31:39 AM
^^^ It's on 2.0.15

What I'd do if .17 update troubles persist is to keep .15 running as it is ftm, set up a complete and working copy of the files\db somewhere on the server (or even other host). Do the .17 update \ research \ experiments there. Then when all fixed, implement solution to the live forum.

The problem is, I've just upload newest, clean SMF script and made a copy od DB and ... its the same. Index not working but all other sites works ok. Index works also ok, after login

Sir Osis of Liver

Does clean .17 install load normally with new (empty) database?
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

swo0p

Quote from: Sir Osis of Liver on July 27, 2020, 12:29:41 PM
Does clean .17 install load normally with new (empty) database?

Clean installation works ok, so do You think that problem is inside DB?

Arantor

I think we're back to your mods being at fault rather than the content of the database...

Sir Osis of Liver

If I understand correctly, he's either connected clean install to prod db or imported dump to new install, in either case problem seems to be caused by db, probably by a mod.  Usual solution is to upload clean files but that won't work here.  Would have to uninstall mods from prod install, starting with most recent.

Quote from: swo0p on July 23, 2020, 09:27:59 PM

It came suddenly without my intervention


^ This isn't good. :P
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

swo0p

ok, lets me to be clear:
1. Clean, newes SMF script + clean DB = works ok
2. Clean, newes SMF script + old DB (backup) = do not work
3. Old 2.15 script + clean DB = works ok
4. Old 2.15 script + old DB (backup) = do not work

Add: I have delete all mods and still the same :(

swo0p

some news: seems to be working. I have just change language from polish to English and everything works ...

How it can be?

Advertisement: