Hi,

I am running WAMP2 in my Win & PC.

PHP version 5.4.3
Apache 2.2.22
MySQL 5.5.24
WAMPSERVER 2.2
Views version 6.x-2.16

But below warning message showing:

warning: Creating default object from empty value in C:\wamp\www\drupal-6.26\modules\taxonomy\taxonomy.pages.inc on line 33.

Comments

leszek.hanusz’s picture

I had the same problem when I upgraded to php 5.4

It is a bug in the taxonomy module and can be corrected by adding
$current = new stdClass();
in the line before the one causing the problem.

asdxasdx’s picture

thank you so much!

asdxasdx’s picture

it may help for others:

Drupal 6.33
MySQL database 5.5.38
PHP 5.4.4-14+deb7u12
Apache/2.2.22 (Debian)

TimmyT’s picture

had the same problem, and has been fixed by adding that line, needs to be reported to the dev-guys

RStrydom’s picture

I had the same problem when I upgraded to php 5.4

The Fix worked for me.

I have rolled it into a patch on #996124-3: taxonomy_term_page() - Error: Creating default object from empty value taxonomy.pages.inc

studiozut’s picture

Same issue here, fixed with the suggestion above.
Drupal 6.32 on PHP 5.2.17.

eduarrulho’s picture

GOOD! 
It worked for me.
Drupal 6.38 / PHP: 5.6.40 / MySQL 5.5.5
Thank you!