Hey there tjeknikkendk,
Hope you’re well! π
Can you post the whole code in functions.php via pastebin.com? ( don’t post it here – it is against the rules to post long lines of code )
This way I can help you much better. Looking forward for your reply! π
Best Regards,
Calvin
http://pastebin.com/zFtP9QdM
Here you go – hope it’s what you need.
Thank you for your very fast and enthusiastic response!
Hey there tjeknikkendk,
Hope you’re well! π
Thanks for pasting the whole functions.php code π
I can’t see any violation on that line of code ( tested it on my install – no error ).
Can you still remember the changes you made before that error occured?
Looking forward for your reply! π
Take care,
Calvin
I really don’t get it either. The only thing I did was upload new photos, and adding them to a gallery on a page. Makes absolutely no sense that that’d break the “logic”. π
Hello tjeknikkendk,
Hope you’re well! π
Try disabling all plugins temporarily, to see that this is not a plugin conflict.
If still not solve, maybe re-installing of theme ( if no custom modification made ) will be a good try. Can you give it a try?
Looking forward for your reply! π
Take care,
Calvin
I’ve tried disabling plugins to no avail.
I just don’t get why I can’t check a log file or something – seems contraintuitive that it isn’t logged anywhere π
Hi tjeknikkendk,
This is just a guess, but maybe the problem is that your hosting provider have updated something like their PHP version?
Can you ask them if they have updated anything soon?
Also which version of PHP are you using?
Additionally you can enable WP_DEBUG to see if we can catch something more there.
To do this, you will need to open the file wp-config.php located in the directory where WordPress is installed and then locate the line with the code
define('WP_DEBUG', false);
and change it to
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
That will save the log in a file called debug.log and located in your
wp-content directory. Also it will not trow errors on the site pages, as this might be bad option if you have visitors on this site.
Then play around with the site for a while and upload the file to some file sharing site, or just post the contents somewhere like http://pastebin.com/
Thanks,
Ivan
Hey there tjeknikkendk,
Hope you’re well! π
The culprit maybe in the line 725 – 727. When the author declared this variable
$cat = $cat[0]
He/she was assuming that $cat will always be an array.
I can see the theme is not hosted on ww.wp.xz.cn. Can you upload the one you have( zip it) and then share the download link here?
Looking forward for your reply! π
Take care,
Calvin