Comments

bfroehle’s picture

Component: update.module » database update system
GStegemann’s picture

When I disable the FAQ_Ask module (current development snapshot) the error is not thrown.

What function, interface or hook is responsible for this?

berdir’s picture

Project: Drupal core » FAQ_Ask
Version: 7.0 » 7.x-1.x-dev
Component: database update system » Code

Moving to FAQ_Ask Module.

The issue is likely in an update function of that module. It is passing an object instead of a string as a query placeholder value.

stenjo’s picture

Is this still an issue?
A lot have been happening with the D7 version lately. This might have been overcome by now.

stenjo’s picture

Status: Active » Needs review
jlea9378’s picture

Status: Needs review » Active

Getting these errors on latest Dev release (dated 5/8/12):

Recoverable fatal error: Object of class stdClass could not be converted to string in DatabaseStatementBase->execute() (line 2136 of /var/www/html/drupal_test/includes/database/database.inc).

Recoverable fatal error: Object of class stdClass could not be converted to string in DrupalDefaultEntityController->cacheGet() (line 368 of /var/www/html/drupal_test/includes/entity.inc).

Disabling FAQ Ask makes them go away.

jlea9378’s picture

Oddly when I re-enabled FAQ Ask, the errors didn't return. Strange...

stenjo’s picture

Assigned: Unassigned » stenjo

Can I ask you to try the upgrade again, but now with the Devel module enabled?
That might give us some more clues to what is going on...

jlea9378’s picture

Ok now the errors are back again. I didn't do anything... just refreshed the page a couple hours later.

I tried clearing all caches from the AdminMenu but that didn't help.

stenjo’s picture

I'm wondering if I've understood this right:
Was this happening during upgrade or just install?
Were you enabling the module or just replacing the previous version?

jlea9378’s picture

For me, I replaced a previous dev version of 7.x and this started happening. I upgraded my site several months ago, so for me, I don't think it has anything to do with upgrading.

After replacing the old 7.x dev, I ran update.php but there were no DB updates. I cleared cache and that didn't help. I disabled FAQ Ask and the errors went away. I re-enabled the module and the errors didn't return until several hours later.

Very strange.

I think I might have had this problem on the previous dev version, but I was screwing with the module code a bit so I'm not really sure. =p

jlea9378’s picture

So far I haven't seen these errors appear again after switching to the 5/9 dev release.

stenjo’s picture

Status: Active » Fixed

I suggest we mark this as fixed for now. If it reoccurs this issue can be reopened.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

viggie’s picture

Issue summary: View changes

Have this coming up but bizarrely only in Chrome browser. In Firefox no issues. Not sure why. The message is

Recoverable fatal error: Object of class stdClass could not be converted to string in DatabaseStatementBase->execute() (line 2171 of /home/.../public_html/includes/database/database.inc).

Site runs in Drupal 7.38. Have about 46 modules - no custom-built modules. All modules were updated to latest version.

In Chrome sometimes if we refresh it goes away but comes up again on next click. Other times it doesn't go away even if refreshed. At the same time if I open the site in Firefox it opens up correctly. Never faced the issue in Firefox.

Since I Firefox is my default browser, not sure when this issue actually started. It happens on all URLs of the site.

HJulien’s picture

delete