• Resolved reitwagen

    (@reitwagen)


    After updating the Responsive theme to version 5.0.9, the site breaks with the following error:

    An error of type E_PARSE was caused in line 51 of the file /home/tgkeigckuwrp/public_html/wp-content/themes/responsive/core/includes/customizer/settings/class-responsive-content-header-typography-customizer.php. Error message: syntax error, unexpected ‘)’

    Looking at the class-responsive-content-header-typography-customizer.php file, line 51 reads:

    responsive_separator_control( $wp_customize, 'breadcrumb', $breadcrumb_separator_label, 'responsive_breadcrumb', 105, );

    This is true of other versions downloaded as a package, but the TracBrowser indicates that this is introduced in version 5.0.9 where versions 5.0.8 and earlier (that I’ve checked) show the following code:

    responsive_separator_control( $wp_customize, 'breadcrumb', $breadcrumb_separator_label, 'responsive_breadcrumb', 105, 'responsive_active_breadcrumb' );

    Replacing just that line with the reverted code does not fix the site.

    Any help would be appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hii @reitwagen

    We tried replicating the issue on our test sites using the latest Responsive Theme version 5.0.9, but we were unable to reproduce the issue.

    Could you please let us know the PHP version of your site?

    Additionally, please try replacing the problematic line of code with the code provided below. If it works, kindly let us know.

    responsive_separator_control( $wp_customize, 'breadcrumb', $breadcrumb_separator_label, 'responsive_breadcrumb', 105 );

    Best Regards

    Maheswar

    Thread Starter reitwagen

    (@reitwagen)

    It was still broken for me with the errant comma removed, but I found an additional errant comma on line 198 of file responsive/core/includes/customizer/settings/class-responsive-footer-layout-customizer.php. Removing the commas in both files fixed the theme for me. This site is hosted by GoDaddy using the CloudLinux “Hardened” PHP version 5.6.40, which cannot be updated by me.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.