Closed (fixed)
Project:
Wordpress Import
Version:
6.x-1.0
Component:
Code
Priority:
Critical
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
21 Feb 2009 at 07:27 UTC
Updated:
20 Mar 2009 at 11:40 UTC
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
Comment #1
yrocq commentedIt'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, ...)
Comment #2
avpadernoIt 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.
Comment #3
Howard Owens commentedOK, 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
Comment #4
Howard Owens commentedOK, never mind that last error ... changed PHP.ini
But module doesn't seem to be able to handle my 8 mb XML file
Comment #5
avpadernoAt 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).
Comment #6
ongola_boy commentedI 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.
Comment #7
avpaderno