I'm getting this error when I try to activate the module

Parse error: syntax error, unexpected '=', expecting ')' in /.../public_html/modules/wordpress_import/wordpress_import.module on line 77

I also tried the dev version hoping it was fixed.

This is a new Drupal install.

Comments

yrocq’s picture

Status: Active » Postponed (maintainer needs more info)

It's very strange. It seems that your PHP version doesn't support optional arguments. Could you tell me more about your environment ? (Operating system, PHP version, ...)

avpaderno’s picture

Assigned: Howard Owens » Unassigned

It seems so, as I checked the syntax of the file with PHP 5.2 (and PHP 4) on Mac OS X, and I didn't get any errors.

Howard Owens’s picture

OK, I didn't realize my host allowed me to update PHP version on my own, and that was issue.

Now getting this error trying to import

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 262144 bytes) in /home/howardow/public_html/includes/common.inc on line 781

Howard Owens’s picture

OK, never mind that last error ... changed PHP.ini

But module doesn't seem to be able to handle my 8 mb XML file

avpaderno’s picture

Category: bug » support
Status: Postponed (maintainer needs more info) » Fixed

At the end, this was not a bug of the module.

I am changing the category, and setting this report like fixed (as it has been found the solution for the problem).

ongola_boy’s picture

Assigned: Unassigned » ongola_boy

I just want to confirm that it should be an issue with an older version of PHP. I got exactly the same issue while using PHP 4.4.9 (i have not checked the requirements of the module, i was wrong i know). Now i use PHP 5.2.6 and it works fine.

avpaderno’s picture

Assigned: ongola_boy » Unassigned

Status: Fixed » Closed (fixed)

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