sypher Posted July 3, 2004 Posted July 3, 2004 Hey. I was doing a test install of oscommerce on my webhost but got this error Warning: main(includes/application_top.php): failed to open stream: Permission denied in /home/nfsypher/public_html/catalog/index.php on line 13 Fatal error: main(): Failed opening required 'includes/application_top.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/nfsypher/public_html/catalog/index.php on line 13 If anyone can help me out would be appreciated :)
Perfect_edge13 Posted July 6, 2004 Posted July 6, 2004 Hey, i had the same issue, i'v been ripping my hair out this week cause its been frustrating me so much. I eventually took a good look at my application_top.php file though and found the solution to my issue, hopefully this works for you as well. Alright try this - 1) Open your application_top.php file which is in the following directory - NameOfYourShoppingCart/includes in my case shop/includes 2) Scroll down about 35 lines until you see code that looks like this - require('includes/configure.php'); if (strlen(DB_SERVER) < 1) { if (is_dir('Some default directory name')) { header('Location: 'Some default directory name'/index.php'); } 3) Replace the red text with the name of the folder your index.php file is in for me it looks like this - // include server parameters require('includes/configure.php'); if (strlen(DB_SERVER) < 1) { if (is_dir('shop')) { header('Location: shop/index.php'); } } Alright i hope that works for you, let me know. Peace out. B)
Perfect_edge13 Posted July 6, 2004 Posted July 6, 2004 Damn nevermind its not working again for me :( It worked for like one day then stopped i dont know whats up. rrrrr, ill post if i find a solution cause aparently mine didnt do anything
Recommended Posts
Archived
This topic is now archived and is closed to further replies.