News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Forum index completely blank!

Started by budiulik, March 05, 2019, 10:13:31 AM

Previous topic - Next topic

budiulik

Hello everyone,
I tried searching the forum for a similar issue but I didn't find any working solution.

I changed a few settings in the admin panel (Optimus SEO settings and changed a few paths to https).

After that, the index page (and I think any front-end page of my forum) is completely blank! If I try to inspect the page source code, it's completely empty.

The admin panel is working fine, though, except for a strange behaviour: when I change a random setting and I click on the SAVE button, the page reloads and the setting is shown with the previous value. I am not sure whether it has not been saved, or a cached version of the admin page is shown instead of the actual one. The error log does not report any error when this issue occurs.

I tried the following with no luck:

1) tried repair_settings
2) tried to clear the cache folder
3) tried to restore a backup from the Package/backups folder of a few days ago
4) tried to restore the robots.txt file
5) tried to restore the default theme
6) tried to uninstall Optimus mod

The forum is still working through Tapatalk!

I think there are corrupted data in the database ... I don't know what else it might be!

Any suggestion or hint is very much welcome!

I am not allowed to post the forum URL yet...

Thanks in advance

Looking

What does your error log say?

By the way, Tapatalk is iffy and can be a security hole.

Kindred

what you describe is NOT "corrupt data in the database"

What you describe is a critical failure in php at the server/file level.

"tried repair_settings"  -- ok... WHAT did you try? WHAT happened? WHAT did you set/change?

"changed a few paths to https"  did you CHANGE *ALL* paths to https?
Did you do a forced redirect in htaccess to force people to bounce to the https version?

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

budiulik

@Looking the error log says nothing! If I clear the error log and then load the home page, nothing Is added to the log.

@Kindred I tried to restore all the settings. Including switching all the paths to https as it was recommended. Nothing changed though.
No I didn't do a forced redirect to the https version.
Any idea? The back end is being displayed, in all of its parts.


Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

budiulik

I mean the SMF administration panel

drewactual

you likely have a php error in your template.index or this optimus thing, whatever it interjects.  can you turn the optimus thing off in your admin section?

budiulik

Yes, I uninstalled Optimus mod but I still get the same situation.
I also switched to the default theme but nothing changed.

drewactual

i wager it didn't 'all' uninstall. 

post up your index.template?

budiulik

Quote from: drewactual on March 06, 2019, 07:55:19 AM
i wager it didn't 'all' uninstall. 

post up your index.template?

I guess you're right: the issue has something to do with Optimus....

I made a bunch of tests in the last couple hours, so I restored a backup where Optimus is still installed. I tried to uninstall it and - boom! Even the admin panel is now blank. This has never happened before...

Anyway, I restored the backup WITH Optimus and in attachment you can find the DEFAULT index.template.php

I also found out that it I'm logged out, I get an error 503 when trying to display the forum index. If I'm logged in (I open the url of the admin panel and log in), the index simply looks blank.
If you want to give it a try, the forum url is https://forum.livornosoftair.it/index.php [nofollow] ... you'll see a blank page (or error 503) but if you open the url https://forum.livornosoftair.it/index.php?action=admin [nofollow] you shoul see the admin login screen.

drewactual

how about your board.index now?

.... there isn't anything wrong with the index.template you posted.  because you can get into forum when board.index isn't called, it makes me wonder......

budiulik

In attachment the default board index template...  :(

drewactual

there is nothing out of place there, either. 

open your SSI.php, and see if this is present:

$hooks = array(
'integrate_pre_include' => '$sourcedir/Optimus/Class-Optimus.php',
'integrate_pre_load'    => 'Optimus::hooks'
);


if it is, comment it out and see what happens. 

i'm not certain Optimus is your issue. 

budiulik

I can't even find the $hooks array definition in SSI.php! Wtf? Is this OK?

Anyway there's one more test I could perform: trying to use the Remove all hooks function in repair_settings.php and see what happens.

drewactual

well, there you have it.

look for this:

'integrate_pre_include' => '$sourcedir/Optimus/Class-Optimus.php',
'integrate_pre_load'    => 'Optimus::hooks'


are they present?

Arantor

You know that hook definitions aren't in actual SMF files, right? They are loaded from plugin installs into the database...

budiulik

Quote from: drewactual on March 06, 2019, 11:05:05 AM
well, there you have it.

look for this:

'integrate_pre_include' => '$sourcedir/Optimus/Class-Optimus.php',
'integrate_pre_load'    => 'Optimus::hooks'


are they present?
no they aren't! I guess the hooks are messed up...

by the way the remove all hooks function did the charm!!! What now? I can see that the mods are still "installed", but are they working? What should I do now?

Quote from: Arantor on March 06, 2019, 11:11:47 AM
You know that hook definitions aren't in actual SMF files, right? They are loaded from plugin installs into the database...

No I didn't know that. I am not into SMF programming, I am just good to mess things up :-)

Is there a way to remove a single hook directly from the database (e.g. the Optimus hook) without using the "remove all hooks function" in repair_settings.php?

Arantor

Now some of your mods won't be working but you have no way of knowing what's broken. Guess it's time to uninstall and reinstall all your mods.

Also the comment about hooks was directed at the suggestion to go look in SMF core code for hook definitions, they won't be there, that's the point of hooks.

budiulik

Quote from: Arantor on March 06, 2019, 11:16:48 AM
Now some of your mods won't be working but you have no way of knowing what's broken. Guess it's time to uninstall and reinstall all your mods.

Also the comment about hooks was directed at the suggestion to go look in SMF core code for hook definitions, they won't be there, that's the point of hooks.

OK, thank you very much... I suspected that was some database issue from the beginning but I didn't know where to start looking from.

One last thing: if there's a way to selectively remove a hook, that would be the best solution! If not, I'm going to uninstall and install all of my mods again.

drewactual

i didn't know optimus used hooks until i looked at the package itself.   i was asking about templates before i knew that seeking to see if there was codes added to the templates by the mod.  the other question was about the SSI interjection, which if it's there and asking for files that no longer exist...........

Advertisement: