I have been working on getting a photo gallery going on my site and installed imageapi. The site doesn't display at all now, even using direct url's to sub pages. Instead I get the following error:

Parse error: syntax error, unexpected T_ARRAY, expecting '&' or T_VARIABLE or T_CONST in /home/birv2/public_html/drupal6/sites/all/modules/imageapi-6.x-1.6/imageapi/imageapi.module on line 161

I have been googling and reading for the parts of 2 days now. It seems that I am running PHP <5.0, though my cpanel says it is 5.2. From all I've read, I believe that is the problem. However, since I can't open any of the site, I can't get to my modules admin page to disable the module.

Would just deleting the folder help?

TIA,
Bob

Comments

matkeane’s picture

Hi,

If you have access to the database, you can find the module in the system table and set the 'status' column to 0 (zero) to disable it. That might be enough to get you back into your site.

bob_irving’s picture

Great idea!

But database is gone. :(

I had cron jobs set up to email backups to my email but can't access the email. I've sent an APB to my host to see whether they have a backup. They advertise that they back up every day. We'll see.

Thanks for the advice.