•Warning: Creating default object from empty value in librivox_import_feeds_importer_default() (line 390 of C:\ . . . sites\all\modules\librivox_import\librivox_import.module).

Note that I basically used the EXPORT of a feeds importer in module code that I am developing, and PHP 5.4 complained right at the beginning of that export code:

$feeds_importer->disabled = FALSE;

When this is set TRUE (disabled) after installation of the importer, the error goes away, but when it is turned back on, the error reappears.

I have noticed on the web that the same error appears in other programs like WordPress when they get a PHP upgrade.

Webmatrix upgraded my php to v 5.4

C:\Program Files (x86)\iis express\PHP\v5.4\php.ini

I fixed the error as explained here:

http://www.trash-factor.com/content/php-error-creating-default-object-em...

I added "$feeds_importer = new stdClass();" to to top of the importer export code that I was using. So it may be that you want to add this to the EXPORT:

$feeds_importer = new stdClass(); // <-- explicitly declare the object??
$feeds_importer->disabled = TRUE;

PHP 5.4 may be more strict about this than earlier PHP versions?

You might want to add the explicit declaration to the EXPORT.

Comments

pkosenko’s picture

I will need to delete this. I see that it was a copy and paste error on my part.

Export actually has the declaration, but my copy and past missed it.

I will try to DELETE this bug report. It makes no sense now.

pkosenko’s picture

Status: Active » Closed (fixed)

This seems to have been the result of a bad copy and paste on my part. The class declaration IS indeed at the beginning of the feeds export. My bad. I am closing the "bug" report ASAP.