I have PHP 5.2.4 with CUrl support enabled on the server and I get the exact same parse error as in this thread http://drupal.org/node/186101 during install. I also duplicated this on a fresh install of the lateset Drupal last night on a separate server. I saw the posting about PHP 4.x.x so I'm posting a new issue since that one is apparently closed.

Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/mystuff/modules/aggregation/aggregation.install on line 248

How do I get this installed? I need pictures in my feeds and the Aggregator just doesn't cut it.

Comments

jaks1970’s picture

Apparently my host has both installed requiring a call to php5 in the htaccess file. Once I did that the install went through but now on the settings page for aggregation I get the following fatal error.

Fatal error: Call to undefined function image_get_sizes() in /home/myinfo/public_html/modules/aggregation/aggregation.module on line 109

Any idea what is causing this?

Ashraf Amayreh’s picture

Ok, I'm a little puzzled here, you have the image module enabled?

Could you try disabling the image module and enabling it and see if the error is gone?

If it's still present, then please attach a zipped file of the image module.

Ashraf Amayreh’s picture

Assigned: Unassigned » Ashraf Amayreh
Status: Active » Fixed

Ok, it was a typo, just download the new release and the problem should be gone. Please re-open this issue if it's not.

Ashraf Amayreh’s picture

Status: Fixed » Closed (fixed)

Forgot to close...

jaks1970’s picture

Will try it out and let you know.

Thanks
Jon

Cooki-1’s picture

Version: 5.x-4.1 » 5.x-4.3

I have PHP 5.2.4, no image modules, cURL enabled
can not install Aggregation 5.x-4.2 and 4.3

have no error and no install confirmation but only blank screen

Ashraf Amayreh’s picture

Status: Closed (fixed) » Postponed (maintainer needs more info)

Try to raise the memory limit in your php.ini file, restart apache, and see if that makes a difference when you install.

Also, sure this doesn't happen with any other module installation?

Cooki-1’s picture

from my server:
Language Options asp_tags Allow ASP-style < % % > tags. Off
File Uploads file_uploads Whether to allow HTTP file uploads. On
Paths and Directories include_path Windows: "\path1;\path2" c:\php\includes" .:/php/includes
Resource Limits max_execution_time Maximum execution time of each script, in seconds 30
Resource Limits max_input_time Maximum amount of time each script may spend parsing request data 60
Resource Limits memory_limit Maximum amount of memory a script may consume (128MB) 128M
Data Handling register_globals You should do your best to write your scripts so that they do not require register_globals to be on; Using form variables as globals can easily lead to possible security problems, if the code is not very well thought of. On
Language Options safe_mode Off
main session.save_path where MODE is the octal representation of the mode. Note that this does not overwrite the process's umask. /tmp/sesje
File Uploads upload_max_filesize Maximum allowed size for uploaded files. 2M
main zend_optimizer.version 3.3.0a

i had similar blank screen during mass_contact module instalation (and while sent mass messages) but instaltion process was succesful

Ashraf Amayreh’s picture

Your memory limit seems to be quite high, 128 MB. But still, try to raise that to something like 192, restart, and see if you get the problem. You should be able to do that in the php.ini file.

Let me know what happens. Usually white screens occur when the memory limit is exhausted.

z.stolar’s picture

I get this error message during install:
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in home/cparadis/www/drupal/sites/all/modules/aggregation/aggregation.install on line 248

it seems that the db_query returns NULL or something like that...

I did a fresh install, didn't have aggregator2 installed before, if it matters.

ijulie’s picture

could you explain how to insert the call to php5 in htaccess? I'm having the same issue and I want to see if this will fix it in my case. thanks!