• Resolved Ward

    (@yward)


    Environment: multisite latest WP version (activation done on individual sites), latest TranslatePress version.

    The plugin renders my website unusable. it was working until recently, I have tried downgrading, different version, disabling plugins, changing themes and nothing helps.

    Error:

    PHP Fatal error: Uncaught Error: __clone method called on non-object in /wp-content/plugins/translatepress-multilingual/includes/class-url-converter.php:428 Stack trace: #0 /wp-content/plugins/translatepress-multilingual/includes/class-url-converter.php(183): TRP_Url_Converter->get_url_for_language() #1 /wp-includes/class-wp-hook.php(322): TRP_Url_Converter->add_hreflang_to_head() #2 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #3 /wp-includes/plugin.php(517): WP_Hook->do_action() #4 /wp-includes/general-template.php(3064): do_action() #5 /wp-content/themes/sometheme/header.php(14): wp_head() #6 /wp-includes/template.php(810): require_once('…') #7 /wp-includes/template.php(745): load_template() #8 /wp-includes/general-template.php(48): locate_template() #9 /wp-content/themes/sometheme/woocommerce/archive-product.php(95): get_header() #10 /wp-includes/template-loader.php(106): include('…') #11 /wp-blog-header.php(19): require_once('…') #12 /index.php(17): require('…') #13 {main} thrown in /wp-content/plugins/translatepress-multilingual/includes/class-url-converter.php on line 428

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Anca

    (@ancavictoria)

    Hello,

    Thank you for reporting this to us!

    I have notified the development team, and it will be resolved shortly.

    Could you please let me know if WP_CACHE is set to false and if TRP_DEBUG is set to true?
    If so, until we resolve the issue, you can try to set WP_CACHE to true and TRP_DEBUG to false to prevent the error from appearing.

    I will notify you as soon as the fix is available.

    Kind regards,

    Anca

    Thread Starter Ward

    (@yward)

    I can confirm the issue comes from a conflict with the plugin:

    SQLite Object Cache – WordPress plugin | www.remarpro.com

    Disabling the plugin and removing the file .ht.object-cache.sqlite from wp-content folder fixes the issue. This occurs with the latest version of both plugins 1.5.1 for sqlite and 2.9.5 for translatepress.

    I am not sure which plugin introduced the functionality breaking change.

    Author of SQLite Object Cache here. There are a couple of possibilities. It’s possible the persistent cache is getting an unexpected cache miss and returning false.

    It’s also possible the cache’s object deserialization is broken. By default the cache uses igbinary serialization. You can force it to use serialize / unserialize instead by putting this in wp-config.php. Make this change while the cache plugin is deactivated.

    define( 'WP_SQLITE_OBJECT_CACHE_SERIALIZE', true );

    Thread Starter Ward

    (@yward)

    The issue is caused by an update to SQLite Object cache plugin, reverting back to 1.4.1 version of said plugin and flushing cache resolves it.
    Will close this issue and follow up on SQLite plugin’s page.

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