Viewing 9 replies - 1 through 9 (of 9 total)
  • 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

    Thread Starter tjeknikkendk

    (@tjeknikkendk)

    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

    Thread Starter tjeknikkendk

    (@tjeknikkendk)

    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

    Thread Starter tjeknikkendk

    (@tjeknikkendk)

    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

    Thread Starter tjeknikkendk

    (@tjeknikkendk)

    Now I see this error:

    [05-Feb-2015 07:17:13] PHP Notice: Undefined offset: 0 in /home/www/bilmesse-brugtmarked.dk/wp-content/themes/duena/functions.php on line 727

    [05-Feb-2015 07:17:13] PHP Catchable fatal error: Object of class WP_Error could not be converted to string in /home/www/bilmesse-brugtmarked.dk/wp-content/themes/duena/functions.php on line 729

    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

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Catchable fatal error – functions.php on line 729’ is closed to new replies.