I'm not sure where to go with this. I migrated a working Drupal website onto Quickstart, the same way I've done many times to my windows machine and to my production linux server, but only the home page works and shows the errors below. Other pages give the apache not found page.
using phpmyadmin, I've tried a fresh export of the DB, and I've tried an export I used a few days ago that I know is good. I've tried importing all the tables but the cache and search tables, then importing only the create procedures for the cache and search. I used FireFTP to move in the files (doubt that matters, but I've never used Fire before).
I set up the virtual host for this site's folder, and tested that with simple html pages, works fine.
I changed the name on the Badbehavior module to clear the errors, but the site still didn't function, all but the home page giving apache not found page...
Can anyone point me in the right direction? I'm confused.
Notice: Undefined offset: 1 in /home/quickstart/websites/doberman.dev/sites/all/modules/contrib/badbehavior/bad-behavior/functions.inc.php on line 47 Call Stack: 0.0011 336136 1. {main}() /home/quickstart/websites/doberman.dev/index.php:0 0.0039 565764 2. drupal_bootstrap() /home/quickstart/websites/doberman.dev/index.php:16 0.0386 937940 3. _drupal_bootstrap() /home/quickstart/websites/doberman.dev/includes/bootstrap.inc:1091 0.0613 1196388 4. bootstrap_invoke_all() /home/quickstart/websites/doberman.dev/includes/bootstrap.inc:1156 0.0645 1397264 5. module_invoke() /home/quickstart/websites/doberman.dev/includes/bootstrap.inc:664 0.0645 1397740 6. call_user_func_array() /home/quickstart/websites/doberman.dev/includes/module.inc:462 0.0645 1397932 7. badbehavior_boot() /home/quickstart/websites/doberman.dev/includes/module.inc:0 0.0661 1493352 8. bb2_start() /home/quickstart/websites/doberman.dev/sites/all/modules/contrib/badbehavior/badbehavior.module:225 0.0669 1505392 9. bb2_whitelist() /home/quickstart/websites/doberman.dev/sites/all/modules/contrib/badbehavior/bad-behavior/core.inc.php:135 0.0669 1506444 10. match_cidr() /home/quickstart/websites/doberman.dev/sites/all/modules/contrib/badbehavior/bad-behavior/whitelist.inc.php:47 Notice: Undefined offset: 1 in /home/quickstart/websites/doberman.dev/sites/all/modules/contrib/badbehavior/bad-behavior/functions.inc.php on line 47 Call Stack: 0.0011 336136 1. {main}() /home/quickstart/websites/doberman.dev/index.php:0 0.0039 565764 2. drupal_bootstrap() /home/quickstart/websites/doberman.dev/index.php:16 0.0386 937940 3. _drupal_bootstrap() /home/quickstart/websites/doberman.dev/includes/bootstrap.inc:1091 0.0613 1196388 4. bootstrap_invoke_all() /home/quickstart/websites/doberman.dev/includes/bootstrap.inc:1156 0.0645 1397264 5. module_invoke() /home/quickstart/websites/doberman.dev/includes/bootstrap.inc:664 0.0645 1397740 6. call_user_func_array() /home/quickstart/websites/doberman.dev/includes/module.inc:462 0.0645 1397932 7. badbehavior_boot() /home/quickstart/websites/doberman.dev/includes/module.inc:0 0.0661 1493352 8. bb2_start() /home/quickstart/websites/doberman.dev/sites/all/modules/contrib/badbehavior/badbehavior.module:225 0.0669 1505392 9. bb2_whitelist() /home/quickstart/websites/doberman.dev/sites/all/modules/contrib/badbehavior/bad-behavior/core.inc.php:135 0.0676 1506444 10. match_cidr() /home/quickstart/websites/doberman.dev/sites/all/modules/contrib/badbehavior/bad-behavior/whitelist.inc.php:47
Comments
Comment #1
Benj commentedI pointed the site at example.dev's database, and saw the same issue. So I purged all the files, installed Filezilla with the click of a button, and reloaded the files. The sit now functions, but good glory were there ever a lot of errors - and still are. I've been looking them up. PHP 5.3 seems to be the issue, a little more strict apparently. I'm using php5.2 on everything else.
Also, I'm having to make folders writeable. My other servers seem to do that themselves. Why is that?
Comment #2
MichaelCole commentedHi Horse,
Have you looked into starting/joining a local Drupal User Group? You might find this a good way to get more help. Also, have you upgraded to QS 0.8?
To your post, looks like many issues here:
1) PHP 5.3 notices.
You can turn these off using the error reporting in php.ini. Try googling "php and E_NOTICE"
These notices should be ON for development, as they indicate bugs and/or poor quality code. If you find them in a module, log an issue-bug in the modules queue.
2) FireFTP vs Filezilla.
I don't use FTP for this, I use shared folders. Look at the readme.txt in the "vbox-shared" folder on the desktop for how to set this up.
3) Making folders writable
I don't understand this. Google "drupal file permissions" for more info on how to set this up. In my experience, I haven't had trouble with this in Quickstart.
4) Apache 404 errors.
Not sure what to say here. Check your apache config by reviewing the previous issue and/or the example.dev virtualhost file.
Comment #3
Benj commentedNot a local group. I started getting involved with a few modules, and joined the forum improvements groups.drupal. But my dev environment was just so horrible and slow (XAMPP) I decided I needed to take a few months away from actual development in order to learn Linux, Apache, and a good IDE.
Yes, I installed QS 0.8.
I've found the errors I'm getting are from three modules. Two have already added fixes to subsequent versions, and one I reported myself.
I was loading these files from a remote server. Is FTP the best way to do that? I tried using Nautilus, but it only moved a few hundred kb then just stopped, both times I tried. I can update a remote file easily enough with Nautilus, but moving files - it doesn't seem to like it.
The apache not-found problem must have been from a missing file. I purged the whole directory and reloaded them, and things started working again.
Thanks Michael
Comment #4
MichaelCole commentedOk, great. Glad you're making progress - Mike