• Hi,

    I’m using the Pinnacle free theme and I imported the Demo Version 1 using Kadence Importer Plugin. After installing everything looks fine, but I’m seeing several of the following errors on one of my posts under “Latest Post”:

    Warning: Illegal string offset ‘file’ in /home2/wadggs0ab6mc/public_html/wp-content/themes/pinnacle/lib/custom.php on line 29

    It’s 6 of the same error with a variance on the line (eg. line 26, 27, 28 etc.).
    This is the page: thelittlebookoftravels.com
    under the “Cambridge Experience” post. How can I remove these errors and why are they only happening to that specific post?

    Thanks!

Viewing 15 replies - 1 through 15 (of 19 total)
  • Hey,
    Seems that image isn’t correctly pulling the files meta. Try this first in your jetpack settings try turning off “photon”

    Ben
    Kadence Themes

    Thread Starter amiiil

    (@amiiil)

    Hi Ben,

    I disabled “photon” in jetpack, but it looks like the error is still there.

    Thread Starter amiiil

    (@amiiil)

    Now I’m also receiving the following error for my Adventures: Osaka post (http://thelittlebookoftravels.com/2016/10/09/adventures-osaka/)

    Fatal error: Maximum execution time of 30 seconds exceeded in /home2/wadggs0ab6mc/public_html/wp-includes/class-wp-image-editor-gd.php on line 190

    hannah

    (@hannahritner)

    Hi amiiil,
    Sounds like your php memory needs to be increased. See here- https://docs.woothemes.com/document/increasing-the-wordpress-memory-limit/
    Or try contacting your host as they should be able to help you increase this.

    Hannah

    Thread Starter amiiil

    (@amiiil)

    Hi,

    I had my host increase the php memory. But I’m still seeing the error:

    Warning: Illegal string offset ‘file’ in /home2/wadggs0ab6mc/public_html/wp-content/themes/pinnacle/lib/custom.php on line 29

    under my Latest Posts on the home page?

    hannah

    (@hannahritner)

    Try deactivating your plugins one by one till this goes away. Let me know if it stays.

    Hannah

    Thread Starter amiiil

    (@amiiil)

    Hi Hannah,

    I just tried the method you suggested but am still seeing the error.
    If it’s a plugin problem, would it be helpful to provide you with a list of plugins I have currently?

    Thanks!

    hannah

    (@hannahritner)

    So you deactivated all your plugins and the error did not go away, correct? That would indicate it not being a plugin error, which then makes me wonder if your server is blocking something. Have you tried contacting your host?

    Hannah

    Thread Starter amiiil

    (@amiiil)

    Yes, I deactivated all the plugins, but the error is still there. I have contacted my host multiple times regarding this error and they insist that it should not be a plugin error, and that it is something that only the theme developer can fix. Can you see if there are any other fixes?

    Thanks!

    hannah

    (@hannahritner)

    What version of the theme are you using? Are you on the latest version of wordpress?

    Hannah

    Thread Starter amiiil

    (@amiiil)

    I’m using the Pinnacle theme version 1.4.5 and WordPress 4.6.1

    Thread Starter amiiil

    (@amiiil)

    I talked to my host again and this is what they said:

    Definitely a piece of the coding that causes this. Here’s the piece of code causing the issue:

    $image_meta = get_post_meta( $id, ‘_wp_attachment_metadata’, true );
    // If possible add in our images on the fly sizes
    $ext = substr($image_meta[‘file’], strrpos($image_meta[‘file’], “.”));

    And an explanation of the error, in case that helps: stackoverflow.com/questions/9869150/illegal-string-offset-warning-php

    The dev can use this information to fix the coding of their file to not throw out this error anymore however. The entire file that the error is coming from, and indeed almost all wordpress files, are written in php. I’d provide them the above info, they should be able to look at the issue based on that. They should be able to look at it based on the error you gave me above, it’s a standard file for their theme.

    Thread Starter amiiil

    (@amiiil)

    Hi, now I’m also seeing another problem where the menu on the header is appearing three times in three different rows. My host says that “It appears that the Pinnacle theme is not fully compatible with the latest version of WordPress and PHP.”

    Anything fixes you can do would be greatly appreciated. Thanks!

    hannah

    (@hannahritner)

    So sorry for the delay. I haven’t heard of these errors from anyone else, but I will make sure the theme developer looks into this for you asap. Thanks for your patience!

    Hannah

    Ok, well first you can see on the demo this isn’t an issue, it’s using the latest version of wordpress and php.

    Can you tell me what version of wordpress you are using and what version of php so I can recreate this and try to get the error.

    The code above pulls meta content for an image thats a wordpress function. If your image doesn’t have meta content have you tried reuploading it?

    I supposed if you had a low memory issue before then when you uploaded your images wordpress wasn’t able to write the meta content… that could be your issue with the images.

    In terms of your menu, you define and decide what goes into the menu in your apperance > menus page. Right now your menu has tons of items and thus it can’t all fit into the header. You can either go to apperance > menu and clean uo your menu so that it only shows 4-5 items or create a new menu and only add 4-5 items then assign that new menu to your primary menu position.

    Ben
    Kadence Themes

Viewing 15 replies - 1 through 15 (of 19 total)

The topic ‘Warning error on single blog post’ is closed to new replies.