I recieved the following error on 7018 when I attempted to upgrade metatag.

I was upgrading from Beta 7 to Beta 9.

An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: http://localhost/update.php?op=selection&token=GMyhOtp8C-ZgVSSyY1p-pZcJF... StatusText: OK ResponseText: ( ! ) Fatal error: Class name must be a valid object or a string in C:\wamp\www\includes\common.inc on line 7837 Call Stack #TimeMemoryFunctionLocation 10.0014507760{main}( )..\update.php:0 25.616653449768_batch_page( )..\update.php:498 35.617453454432_batch_do( )..\batch.inc:80 45.617453454432_batch_process( )..\batch.inc:161 55.619753542824call_user_func_array ( )..\batch.inc:284 65.619753542848update_do_one( )..\batch.inc:284 75.619753543032metatag_update_7018( )..\update.inc:963 85.628554009680entity_load( )..\metatag.install:1104 95.628554009712entity_get_controller( )..\common.inc:7804

Thoughts on where this error may be coming from?

Comments

DamienMcKenna’s picture

DamienMcKenna’s picture

Status: Active » Postponed (maintainer needs more info)

The weird thing is that line 1104 of metatag.install in beta9 is the following:

    $conditions = array();

Could you please try updating to the latest -dev release and let me know if the problem reoccurs? Thanks.

DamienMcKenna’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

No follow-up in over five months. If the problem still exists with the latest dev release please reopen the issue. Thanks.

gcb’s picture

Status: Closed (cannot reproduce) » Active

I think this might occur when you have a metatag which references a non-existent entity. I discovered the same error after uninstalling ubercart, which had some metatags for uc_product entities. Then I updated metatag and this error kept getting thrown until I manually deleted those entries from the metatag table.

DamienMcKenna’s picture

@gcb: That's useful to know, so I'll have to check each entity_load() call to make sure it's not assuming the entity loaded correctly.