Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Aiheen aloitti: Knitter - heinäkuu 08, 2011, 08:22:06 AP

Otsikko: Yet another blank page problem
Kirjoitti: Knitter - heinäkuu 08, 2011, 08:22:06 AP
Hi,

I've been trying to move a from from on hosting to another and have been facing the problem with blank pages on the new hosting. I don't know exactly what MODs are installed and version is 1.1.14.

What I've done:

Currently I'm finishing uploading some themes to the Themes folder, the default theme is already there. The symptoms are strange: there is no error in the logs, there is no PHP error show in the browser, browser receives a 200OK header but no data is received (there is no output to the browser).

Any suggestions? I would like to have the forum restored before attempting to upgrade to a newer version as this is a forum that had problems in the old hosting and I'm trying to restore it to a working state as fast as I can.

EDIT: forgot the link to the forum, may be useful, www.g7electronica.com/forum
Otsikko: Re: Yet another blank page problem
Kirjoitti: Knitter - heinäkuu 08, 2011, 11:18:09 AP
After some digging around I found that the reloadSettings function in index.php was causing the problems, I don't yet know why but something in that function is blowing up the forum. Most likely some settings that are dependent on the old hosting configuration.

I'll be looking at the table to find if any of the settings is causing the problem.
Otsikko: Re: Yet another blank page problem
Kirjoitti: Knitter - heinäkuu 08, 2011, 11:56:10 AP
My heart is bleeding, I want to punch someone...

After a few minutes commenting code in SMF's Load.php file I found that loading settings from the database was causing a segmentation fault :o, after a few more moments fiddling with the database I manage to determine that the values contained in the table smf_settings were to blame. I no know exactly what value was causing the problem, I don't know why but that's going to be a different problem.

For anyone curious enough, the following string that I copied from the smf_settings table was causing a segmentation fault:
Lainaa]Prezados clientes, a nossa webloja de produtos de electrónica fica em www.g7electronica.net

Setting that to an empty string shows the forum without problems, nice way to spend a day.