Blank page
Hi
Just noticed that mine now gives a blank page when going to http://www.bashys-place.com/photoplog/index.php so i just tried the upgrade and chose the 3.6 version, I have also checked the config and it is still the same (100% correct) i am totally baffled, any advice pleas? This is the error i got when using the original path that it used to be without the /usr/ Code:
Warning: Unknown(./includes/functions_forumlist.php): failed to open stream: No such file or directory in /includes/functions.php(4946) : eval()'d code on line 186 Code:
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /usr/home/bashys/domains/bashys-place.com/public_html/photoplog/functions.php(458) : eval()'d code on line 204 I also created the php file to get my full forum dir and added it. I made sure the folder images permissions are 777 I rebuilt bitfields (just in case) I checked all permissions for me and there 100% ok Not sure what else to check :( Any advice please, Regards Bashy |
Let's look at the first warning:
Code:
Warning: Unknown(./includes/functions_forumlist.php): failed to open stream: No such file or directory in /includes/functions.php(4946) : eval()'d code on line 186 Let's look at the second warning: Code:
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /usr/home/bashys/domains/bashys-place.com/public_html/photoplog/functions.php(458) : eval()'d code on line 204 Now, as to the first warning, you need to find the plugin, the one using the global_complete hook, where there is an include or require statement made for the /includes/functions_forumlist.php file and set the path using the vB DIR constant, and that should get rid of the warning. Please note that the warning is coming from another modification, not PhotoPlog, but shows up in PhotoPlog because the plugin using the global_complete hook is looking for the /includes/functions_forumlist.php file in the wrong directory when in the gallery. Once you find the plugin, please let me know the name of the modification, as this functions_forumlist.php related issue has come up a few times. However, as I currently have no idea as to what modification's plugin is apparently not setting the path to functions_forumlist.php correctly, I cannot tell anyone what plugin to edit other than to say it is a plugin looking for the functions_forumlist.php file from the global_complete hook. |
Hi Morgan
Thank you very much for a detailed analysis of my issue, thats actually one of the best support responses i have ever had, it actually explains exactly what is going on, I will go through all the products fisrt disabling them 1 by 1 as i am sure it will be a product i have installed recently, I will then report back to you... Thank you so much for your time... Regards Bashy www.bashys-place.com www.bashys-hosting.com |
!st one i tried resolved the issue of the blank page, the hack is
Forum Archive List Footer I am not too bothered with a fix as i am gonna remove it now (the acrhive hack that is) I also removed the /usr/ from the path... I can now enter Photoplog but i get this at the top of the page Code:
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /usr/home/bashys/domains/bashys-place.com/public_html/photoplog/functions.php(458) : eval()'d code on line 204 I suppose if i turn off the error reporting then the error will hide and we would be none the wiser as Photoplog appears to be working ok now :) Regards Bashy www.bashys-place.com www.bashys-hosting.com |
In the Forum Archive List Forum Footer plugin located at the global_complete hook find:
Code:
require_once('./includes/functions_forumlist.php'); Code:
require_once(DIR . '/includes/functions_forumlist.php'); |
Ah ya caught me mid editing my post lol, Yes i just put that in the post above, the /usr/ has deffo gone from the path
Code:
// try the getcwd function: http://www.php.net/manual/en/function.getcwd.php |
The edit for the forum footer archive worked well thank you very much.
|
Do you have the following for line 458 of the PhotoPlog functions.php file, and if so, do you have any modification that affects the navbar or the vB fetch_template function? When you see "eval()'d code on line 204" as part of an error message, that usually indicates that there is a problem with a plugin, line 204 of the plugin in this case, but as there is no hook on line 458 of the PhotoPlog functions.php file, the error might be coming from some modification that affects the navbar or the vB fetch_template function where in_array is used as part of the modification.
Code:
eval('$navbar = "' . fetch_template('navbar') . '";'); |
Yep, i have exactly the same Morgan, i did a search for your line to make sure it was character for character
|
Turn error reporting back on and temporarily replace this:
Code:
eval('$navbar = "' . fetch_template('navbar') . '";'); Code:
// eval('$navbar = "' . fetch_template('navbar') . '";'); If you no longer get the in_array warning, look at your navbar template. Do you use in_array in any navbar template conditional? If so, what is the conditional? |
All times are GMT. The time now is 10:17 PM. |
Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.