This topic has 22 replies, 2 voices, and was last updated 9 years by sedmorders.

  • Author
  • #75741
     sedmorders
    Participant

    When I try to add a new posts within the admin panel, I get the following error on the server:

    PHP Warning: Illegal string offset ‘url’ in httpdocs\wp-content\themes\kleo\kleo-framework\metaboxes\init.php on line 423

    I am using the following:
    1. WP 4.3
    2. Kleo 3.0.7
    3. PHP 5.5.28
    4. TinyMCE Advanced editor.

    Will this be fixed in the next Kleo update and when will that update be released?

    #75742
     sedmorders
    Participant

    Disabling TinyMCE Advanced does not fix the problem.

    #75745
     sedmorders
    Participant

    The same problem also happens when I try to add a new page.

    #75746
     sedmorders
    Participant

    The content of line 423 in the error says the following:

    $image_url = $meta[‘url’];

    #75767
     sedmorders
    Participant

    The problem continues even after backtracking to Kleo 3.0.5

    #75771
     sedmorders
    Participant

    Lowering php version from 5.5.28 to 5.4.44 doesn’t solve the problem.

    #75786
     sedmorders
    Participant

    The problem appears to be PHP related.
    1. It appears when running php versions 5.5.28 and 5.4.44
    2. It disappears with php version 5.3.29

    Kleo theme needs to be rewritten to support the two latest php versions, which are:
    5.5.28
    5.6.12

    It doesn’t currently work with EITHER. I have therefore backtracked my servers to 5.3.29 until SeventhQueen does this.

    Please notify me when you have done this and what version of Kleo supports 5.5.28 and 5.6.12.

    #75820
     sedmorders
    Participant

    On my server, php 5.5.28 is considerably faster than the 5.3.29 that I am FORCED to run currently because of kleo incompatibility.

    Seventhqueen: Please consider making this a high priority update to kleo. It will considerably speed up the site for many users including me.

    Thanks.

    #75831
     Andrei
    Moderator

    When you say that our theme needs to be rewritten, to what are you referring to ?
    We’re developing and testing it on several php versions and there are no issues with it, but yes, we’re recommending using at least php v5.4.

    Also the “error” that you reported above is just a NOTICE and doesn’t have any impact at any level, if you turn off your wp_debug you won’t see it anymore.

    Looking forward to hear back from you.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #75854
     sedmorders
    Participant

    Andrei

    1. The error above causes a 500 error whenever I try to edit pages or posts. I can’t edit either because of it because I can’t get past the 500 error it produces.
    2. How do you turn off wp_debug? I’ll try it.

    #75857
     Andrei
    Moderator

    Well, I’m absolutely sure that your 500 errors are generated by something else.
    Please restore your site in the point where you encounter this issue then provide me ftp and admin credentials and I’ll give a closer look to help you fix this issue.

    Cheers

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #75859
     sedmorders
    Participant

    WP_DEBUG is set to “false” in my wp-config.php file. Your proposed remedy would not eliminate the error and allow me to edit pages or posts.

    At least on my server, Kleo 3.0.7 doesn’t work with php versions above 5.3.9.

    When I say the theme needs to be rewritten, the php code in the offending file needs to be updated to conform with the changed php syntax conventions of versions 5.4.4 and above.

    Lastly, please delete or sanitize the url in the lead post to protect my identity. Your system won’t let me edit my own posts.

    Thanks.

    #75860
     sedmorders
    Participant

    How do I send you admin credentials privately? You have disabled private messaging on this site.

    #75862
     Andrei
    Moderator

    Here you have the php file attached which fixes that small notice, so if you still get 500 errors, please understand that they are produced by something else.

    File to be replaced with the attached file: “wp-content/themes/kleo/kleo-framework/metaboxes/init.php”

    Cheers

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    Attachments:
    You must be logged in to view attached files.
    #75865
     sedmorders
    Participant

    1. I have upgraded the site from php version 5.3.29 to 5.5.28.
    2. I logged in locally to the server so I could see the error messages. That’s what you have to do on a windows server.
    3. I did not install your init_php file.
    4. The exact same error recurs. It IS being caused by Kleo. Here is the error again:

    PHP Warning: Illegal string offset ‘url’ in C:\Inetpub\vhosts\zzz.org\httpdocs\wp-content\themes\kleo\kleo-framework\metaboxes\init.php on line 423

    5. I have created a temporary admin ftp and wordpress accounts for you to use to troubleshoot.
    6. All I need is a place to send the credentials.
    7. I would like to avoid the bandaid fix you proposed, because I don’t want to have to customize the theme on every server. Instead, I want the theme code updated to prevent this problem for everyone.
    8. Thanks for sanitizing the url in the lead post. Your support has been great so far.

    Please advise.

    #75867
     Andrei
    Moderator

    I have just provided you an attachment in my last post with the file to replace to fix this issue.
    Please do that and let me know if you still encounter any issues.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #75871
     sedmorders
    Participant

    The file you provided fixes the problem. I can edit POSTS as well as PAGES without the error.

    Thanks!

    When will this fix get incorporated into the Kleo theme? I don’t want to have to keep customizing the theme every time I update it or rebuild my server. It needlessly adds complexity.

    #75872
     Andrei
    Moderator

    It will automatically be included in the next released version.
    Cheers

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #75874
     sedmorders
    Participant

    Any idea when Kleo 3.0.8 is coming out?

    #75875
     Andrei
    Moderator

    Next week or even earlier, I can’t provide an exact date.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #75876
     sedmorders
    Participant

    After upgrading to php 5.5.28, my two Kleo sites runs MUCH faster now. TWICE as fast.

    Great support. Thanks for a great theme.

    #75877
     Andrei
    Moderator

    I’m glad I could help. Cheers

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #77239
     sedmorders
    Participant

    Just a follow-up after the release of 3.0.8.

    IT FIXES THE PROBLEM PERMANENTLY so I don’t need to edit individual files anymore.

    Thanks for GREAT service. Hopefully your future testing will test the next release on all versions of PHP, and especially the latest, so that we don’t have to be uncompensated and involuntary Guinea Pigs and beta testers anymore.

    🙂

Viewing 23 posts - 1 through 23 (of 23 total)

The forum ‘Bugs & Issues’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?