By 84rryg33 on
Hi I have set up my mySQL database as detailed in the set up tutorial. However when i try and run the installer i get the following errors. Can anyone help?
Warning: array_keys() [function.array-keys]: The first argument should be an array in C:\wamp\www\drupal-6.6\includes\theme.maintenance.inc on line 217
Warning: Invalid argument supplied for foreach() in C:\wamp\www\drupal-6.6\includes\theme.maintenance.inc on line 217
Fatal error: Call to undefined function phptemplate_get_ie_styles() in C:\wamp\www\drupal-6.6\themes\garland\maintenance-page.tpl.php on line 23
thanks
Barry.
Comments
Not a problem with Drupal 5.12
I just downloaded Drupal 5.12 to see if i still get the error. when i run that version there is no problem. However I would like to use version 6.6 so any advice welcome.
Thanks
Problem solved
OK, So i redownloaded version 6.6 and all is working fine now. Not too sure what the issue was but problem solved itself.
Barry.
hi
I have got the same problem... and the same error massage. So. You think i should just download and unpack everything again and that will solve my problem with drupal 6.6 installation?
same issue
my error:
Warning: array_keys() [function.array-keys]: The first argument should be an array in /var/www/html/includes/theme.maintenance.inc on line 217
Warning: Invalid argument supplied for foreach() in /var/www/html/includes/theme.maintenance.inc on line 217
Warning: include(./themes/garland/maintenance-page.tpl.php) [function.include]: failed to open stream: No such file or directory in /var/www/html/includes/theme.inc on line 979
Warning: include() [function.include]: Failed opening './themes/garland/maintenance-page.tpl.php' for inclusion (include_path='.:/php/includes:/usr/share/php') in /var/www/html/includes/theme.inc on line 979
and the page automatically goes to: mysite/install.php?profile=default
Me Too
I am having the same issue. I posted my own topic on this, before I noticed this one.
I tried to re-upload the files, and I still got the same errors.
Can anyone offer a solution?
Thanks,
Matthew
Stumped?
Good Afternoon,
With all the expertise here, I would think someone could help us solve this problem.
Or is it an indication of something too serious to solve?
Matthew
Same Error - My Resolution
Just a note, I was having exact same errors mentioned above.
I was able to resolve by just grabbing the drupal tarball directly to the server, extracting locally on the server & moving in to place. (as opposed to FTPing stuff up to server).
Guessing that either the extraction software on my local system, or something in the FTP upload got it boinkered up.
Just extract directly on server if you have SSH access.
Still No Luck
Genbushi,
I tried your suggestions, and still no luck. More errors...
I'm uninstalling Drupal and looking elsewhere for a CMS.
If it's this much trouble just installing Drupal, and getting help for such a simple problem, I can't go any further with this. For me, one of the most important aspects of a CMS is the help
available when one has trouble. The silence here speaks volumes.
Thanks,
Matthew
Matthew, What errors did you
Matthew,
What errors did you get after extracting directly on server, and placing files in webroot ?
Did you create empty settings.php file, and make sure the .htaccess file was in place?
Typically I find Drupal one of the easiest installs in CMS land. It's likely something easily fixed.
The issue in this thread was the very first time I encountered an install error, and honestly was kinda taken by surprise.... but after checking a few things and then taking the other method it was fine. I haven't spent the time to determine what the root cause (whether it's bad extraction on my local workstation, or something getting messed up via SFTP upload).
UPDATED: Just out of curiosity, did you try a download from a mirror to try with too:
http://ftp.osuosl.org/pub/drupal/files/projects/drupal-6.6.tar.gz
Don't get discouraged ... give it a chance
Matthew, I'm just starting out with Drupal also, and unfortunetly I find that web development config issues eat up a lot of time no matter what system you use.
I think the other posters are on to something...I suspect this is an FTP transfer issue, where something is being transferred in ASCII mode in a way that invokes this issue. Perhaps the Drupal source code could be altered to be immune to this issue.
Anyway, I've been having some other config issues, and I tried FTP'ing the contents of my drupal installation directory from my server to my laptop, and then I re-uploaded it to a new directory on the server. That's when I started getting this issue.
Tonight I'll try uploading my original files (the exact files I uploaded to the server in the first place, which did work).
Hopefully this will give you enough info to figure out your issue. If you are able to upload the Drupal distro as a single tar or zip file and then unpack it on the server, maybe you'll avoid this issue.
solve the problem by
solve the problem by including the template.php into maintainace.tpl.php.
DOne the same code in maintainace.tpl.php but found another problem
Fatal error: require_once() [function.require]: Failed opening required 'template.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/test.org/htdocs/themes/garland/maintenance-page.tpl.php on line 14
Any one have some suggestions?
Some Possible Solutions?
1. Make sure if you are using a theme like Garland that you have the core files still intact & the directory "themes" within the root drupal install (where the "includes, misc, modules, profiles" etc... are).
2. If you are using Garland as your default theme and are using it for your custom theme, make sure you still have garland in your themes folder.
3. If using a live server - Make sure you have the "themes" folder uploaded! A simple problem, but can be frustrating for beginners. A problem you may see will be one involved with this issue.