• Resolved dskn

    (@dskn)


    Hello,

    when I try to upgrade customizr to version >= 3.3.2 the article contents fail to load (only the title shows up).

    All versions up to and including 3.3.1 work fine.

    The following entries are thrown in the error log:

    PHP Catchable fatal error: Object of class WP_Error could not be converted to string in /var/lib/wordpress/wp-content/themes/customizr/inc/parts/class-content-post_metas.php on line 369

    Do you know which change introduced with version 3.3.2 could cause this?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello,
    do you use a child-theme?
    Do you have anything in your child-theme which refers to post metas, or even copied parent files in your child-theme?
    Anyway last Customizr live version is 3.3.23

    3.3.2 was released in Febrauray…
    That’s the line 369 in class-content-post_metas.php 3.3.2
    https://github.com/Nikeo/customizr/blob/v3.3.2/inc/parts/class-content-post_metas.php#L369

    A comment, so cannot see how it can throw that error :/

    Thread Starter dskn

    (@dskn)

    Hi,

    no, I don’t use a child theme.

    I know that 3.3.23 is the latest version, but all versions >= 3.3.2 show the same erronous behaviour (and error log output) while all version <= 3.3.1 do not. That’s why I referenced version 3.3.2 which introduced a change that does not work correctly with my wp instance.

    Sorry for the wrong line number (copy&paste error), the actual line referenced in the error log is 360

    Which wp version are you running?

    Thread Starter dskn

    (@dskn)

    I’m running wp version 3.6.1 (i.e the package available in Debian wheezy)

    Mmm looks like this:
    get_term_link( $term -> term_id , $term -> taxonomy ),
    returns a WP_ERROR in that version. mmm
    So if you’re familiar with the code go in
    customizr/parts/inc/class-content-post_metas.php
    look around that line you said (it might depend on the theme’s version), but still in the function tc_meta_term_view()
    and replace that line with:
    get_term_link($term),

    though a better check on if that function returns WP_ERROR might be needed.
    Hope this helps.

    Thread Starter dskn

    (@dskn)

    great, this did the trick!

    thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘empty articles when upgrading to customizr version >= 3.3.2’ is closed to new replies.