Title: Critical PHP error
Last modified: February 27, 2025

---

# Critical PHP error

 *  Resolved [Ward](https://wordpress.org/support/users/yward/)
 * (@yward)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/critical-php-error-2/)
 * 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 5 replies - 1 through 5 (of 5 total)

 *  Plugin Support [Anca](https://wordpress.org/support/users/ancavictoria/)
 * (@ancavictoria)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/critical-php-error-2/#post-18339087)
 * 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](https://wordpress.org/support/users/yward/)
 * (@yward)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/critical-php-error-2/#post-18340008)
 * I can confirm the issue comes from a conflict with the plugin:
 * [SQLite Object Cache – WordPress plugin | WordPress.org](https://wordpress.org/plugins/sqlite-object-cache/)
 * 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.
 *  [OllieJones](https://wordpress.org/support/users/olliejones/)
 * (@olliejones)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/critical-php-error-2/#post-18341158)
 * Author of [SQLite Object Cache](https://wordpress.org/plugins/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](https://wordpress.org/support/users/yward/)
 * (@yward)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/critical-php-error-2/#post-18347270)
 * 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.
 *  Plugin Support [Anca](https://wordpress.org/support/users/ancavictoria/)
 * (@ancavictoria)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/critical-php-error-2/#post-18381006)
 * Hello [@yward](https://wordpress.org/support/users/yward/)
 * Thank you once again for reporting this to us!
 * The issue has been resolved in the latest TranslatePress – Multilingual 2.9.9
   update.
 * After updating, the problem should no longer occur.
 * Kind regards,
 * Anca

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Critical PHP error’ is closed to new replies.

 * ![](https://ps.w.org/translatepress-multilingual/assets/icon.svg?rev=3166541)
 * [TranslatePress - Translate Multilingual sites with AI Translation](https://wordpress.org/plugins/translatepress-multilingual/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/translatepress-multilingual/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/translatepress-multilingual/)
 * [Active Topics](https://wordpress.org/support/plugin/translatepress-multilingual/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/translatepress-multilingual/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/translatepress-multilingual/reviews/)

 * 5 replies
 * 5 participants
 * Last reply from: [Anca](https://wordpress.org/support/users/ancavictoria/)
 * Last activity: [1 year, 2 months ago](https://wordpress.org/support/topic/critical-php-error-2/#post-18381006)
 * Status: resolved