There is a blank section or a partly blank page


A blank page, now what?


A blank page in the script means something went not perfect, it can be a programming error, a database flaw, anything between your computer and the server...

Fortunately we have debug mode, this little switch will tell us what is happening, if its capable of. Please keep in mind that there are errors that would not allow your server to display even an error message, if this is the case you would do best to contact your hosting company.

First, we dont want to show our problems toe everybody, since we can enable debug mode just for us lets find our IP address. For this article's purpose we will pretend its 192.168.0.1.

Now, open up a light file editor (MS Word is not a good choice) like Gedit or Notepad and place the following there:


PHP:
<?php
if ($_SERVER['REMOTE_ADDR'] == '127.0.0.1' /* this helps if your site is in your own computer*/
|| $_SERVER['REMOTE_ADDR'] == '192.168.0.1')
{
    
// Enable debug
    
define('PHPFOX_DEBUG'true);

    
// Debug level
    
define('PHPFOX_DEBUG_LEVEL'3);

    
// Log error messages to XML flat file within the cache folder
    
define('PHPFOX_LOG_ERROR'true);
    
    
// Force browsers to re-cache static files on each page refresh
    
define('PHPFOX_NO_CSS_CACHE'true);

    
// Force templates re-cache on each page refresh
    
define('PHPFOX_NO_TEMPLATE_CACHE'true);
}
?>

The first command (Enable debug) is exactly that, telling the script to enable debug, the second one tells which level, level 3 is the highest and it will consume the most resources, but its good for debugging mysql queries as well, lower valid numbers are 2 and 1.

Save that file as dev.sett.php and upload it to the /include/setting folder
Refresh your browser and you should see what the script has to say. It will be a rather confusing message if you're not familiar but heres a tip, if you see a line like this:


eval()'ed

Then its talking about a plugin. For more generic cases the message will be more specific (like "cant connect to database").

If the problem is caused by a plugin, you can disable it by going to your phpmyadmin, look for the table phpfox_plugin and disable it by changing the value of the is_active column to 0.

If this wasnt helpful please submit a support ticket providing FTP access, we will gladly fix the problem.




Comments
Only verified clients can post comments on our community. If you have any questions feel free to contact us here.
holyboom wrote at January 9, 2012, 7:53 pm
0 Votes

hy,
work with 127.0.0.1 or localhost

holyboom
asentertainment wrote at April 6, 2011, 11:24 pm
0 Votes

I believe there may be something wrong with your code. When I use it, the admincp and website just display the contents of the dev.sett.php on the top part of the website. This was with phpfox 2.0.7.

However, using the following guide worked perfect for me:
- http://www.phpfox.com/kb/article/138/enabling-debu...

Update:
I believe it is because the code needed to be enclosed in php open and closing tags Smile

Last Update on April 6, 2011, 11:48 pm by asentertainment
asentertainment
envisionworld.net wrote at March 18, 2011, 9:38 am
0 Votes

I fixed this issue.. it was related to session save path and set is_active column to 0. Now I am getting following errors:


Notice: Undefined index: userid - file/cache/template_frontend_default_template_template.html.php.php (17)
0 file/cache/template_frontend_default_template_template.html.php.php : 17 Phpfox_Error::errorHandler(8, "Undefined index: userid", "file/cache/template_frontend_default_template_template.html.php.php", 17, Array(1))
1 include/library/phpfox/template/template.class.php : 1784 require("file/cache/template_frontend_default_template_temp late.html.php.php")
2 include/library/phpfox/template/template.class.php : 1258 Phpfox_Template->_getFromCache("theme/frontend/default/temp late/template.html.php")
3 include/library/phpfox/phpfox/phpfox.class.php : 890 Phpfox_Template->getLayout("template")
4 index.php : 44 Phpfox::run()

Could you please suggest over here or you want me to send an ftp credentials to support?

envisionworld.net
envisionworld.net wrote at March 15, 2011, 1:18 pm
0 Votes

Hello, I am facing the same blank section problem. I have enabled debug and getting following errors:

Warning: session_start() <function.session-start>: open(/var/lib/php/session/sess_g6mufbb1n49sudc5aeaaloqv55, O_RDWR) failed: Permission denied (13) - include/library/phpfox/session/handler/default.class.php (21)
1 include/library/phpfox/session/handler/default.class.php : 21 session_start()
2 include/init.inc.php : 98 Phpfox_Session_Handler_Default->init()
3 index.php : 41 require("include/init.inc.php")

Could you please suggest where exactly I need to do changes.

envisionworld.net