While there are similar reports the others are not the same error as this and a different version.

Clean install - when going to rebuild cache on the module configuration page I get the following error:

An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /batch?id=13&op=do StatusText: Internal Server Error ResponseText: PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')) ) subquery' at line 1: SELECT COUNT(*) AS expression FROM (SELECT 1 AS expression FROM {node} node WHERE (type IN ()) ) subquery; Array ( ) in content_complete_rebuild_cache() (line 73 of /var/www/vhosts/XXX/httpdocs/sites/all/modules/content_complete/content_complete.admin.inc).

Comments

POVYLAZZZ’s picture

I am getting the same error. I also get a warning in the bottom Content edit page saying:

Note that you need to rebuild your cache after changing those values.

And this message have a warning signs menace for a background.
This is a nice module hope it is an easy fix. Good luck ;)

adshill’s picture

For info - I just did another rebuild and there was no problems. Could it be that this has happened because there were no nodes in the system?

pvhee’s picture

Status: Active » Closed (cannot reproduce)

Could not reproduce this error.

quinns’s picture

I've found you have to enable at least one content type before rebuilding the cache.

okeedoak’s picture

Enabling at least one content type is the key. Would be nice if the rebuild functionality checked for that.