Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

I did it again: I messed up my Admin Panel : Warning + Fatal Error.


TheGameMen

Recommended Posts

Hi,

 

Yes i did it again, i messed up my Admin Panel.. Dude im scared now.

I made a backup but i cant restore it becouse i get this error:

 

Warning: main(includes/languages//webshop/catalog/admin/includes.php): failed to open stream: No such file or directory in /home/dejavu-it.nl/public_html/catalog/hju67fj34/includes/application_top.php on line 130

Warning: main(includes/languages//webshop/catalog/admin/includes.php): failed to open stream: No such file or directory in /home/dejavu-it.nl/public_html/catalog/hju67fj34/includes/application_top.php on line 130

Fatal error: main(): Failed opening required 'includes/languages//webshop/catalog/admin/includes.php' (include_path='.:/usr/share/php:/usr/lib/php4/pear') in /home/dejavu-it.nl/public_html/catalog/hju67fj34/includes/application_top.php on line 130

 

:o :o

 

Help pleeaase ?

 

Freek :blink:

Link to comment
Share on other sites

Make sure the lines ~110-134 in admin/includes/application_top.php look like this:

 

if (!tep_session_is_registered('language') || isset($HTTP_GET_VARS['language'])) {

if (!tep_session_is_registered('language')) {

tep_session_register('language');

tep_session_register('languages_id');

}

 

include(DIR_WS_CLASSES . 'language.php');

$lng = new language();

 

if (isset($HTTP_GET_VARS['language']) && tep_not_null($HTTP_GET_VARS['language'])) {

$lng->set_language($HTTP_GET_VARS['language']);

} else {

$lng->get_browser_language();

}

 

$language = $lng->language['directory'];

$languages_id = $lng->language['id'];

}

 

// include the language translations

require(DIR_WS_LANGUAGES . $language . '.php');

$current_page = basename($PHP_SELF);

if (file_exists(DIR_WS_LANGUAGES . $language . '/' . $current_page)) {

include(DIR_WS_LANGUAGES . $language . '/' . $current_page);

}

Contributions

 

Discount Coupon Codes

Donations

Link to comment
Share on other sites

Well okay now i get this error: ( Before i got another one and i needed to add include_path='.:/usr/share/php:/usr/lib/php4/pear' on line 13 on index.php in admin ,i solved that ) but this one i dont know what to do

 

Parse error: parse error, unexpected '=' in /home/dejavu-it.nl/public_html/catalog/hju67fj34/index.php on line 14p

 

THANK YOU !

 

Freek

Link to comment
Share on other sites

include_path='.:/usr/share/php:/usr/lib/php4/pear' on line 13 on index.php in admin

 

 

How exactly did you add "include_path='.:/usr/share/php:/usr/lib/php4/pear" on line 13 in index.php??? I suspect this is your problem. I don't think this line does what you think it does... post the first 25 lines of index.php.

Contributions

 

Discount Coupon Codes

Donations

Link to comment
Share on other sites

Hi,

 

Okay, ( im sorry because i dont have much experience with PHP , i only know some very very easy basic things... im good with html though )

 

First 25 lines of index.php founded in admin/

 

<?php
/*
 $Id: index.php,v 1.19 2003/06/27 09:38:31 dgw_ Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

 require('includes/application_top.php');
include_path='.:/usr/share/php:/usr/lib/php4/pear'
 $cat = array(array('title' => BOX_HEADING_CONFIGURATION,
				 'image' => 'configuration.gif',
				 'href' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=1'),
				 'children' => array(array('title' => BOX_CONFIGURATION_MYSTORE, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=1')),
									 array('title' => BOX_CONFIGURATION_LOGGING, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=10')),
									 array('title' => BOX_CONFIGURATION_CACHE, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=11')))),
		   array('title' => BOX_HEADING_MODULES,
				 'image' => 'modules.gif',
				 'href' => tep_href_link(FILENAME_MODULES, 'selected_box=modules&set=payment'),
				 'children' => array(array('title' => BOX_MODULES_PAYMENT, 'link' => tep_href_link(FILENAME_MODULES, 'selected_box=modules&set=payment')),
									 array('title' => BOX_MODULES_SHIPPING, 'link' => tep_href_link(FILENAME_MODULES, 'selected_box=modules&set=shipping')))),
		   array('title' => BOX_HEADING_CATALOG,

 

Thanks a bunch,

 

Freek

Link to comment
Share on other sites

Ok,

 

But now i get this error:

 

Fatal error: main(): Failed opening required 'includes/application_top.php' (include_path='.:/usr/share/php:/usr/lib/php4/pear') in /home/dejavu-it.nl/public_html/catalog/hju67fj34/index.php on line 13

 

Will it ever stop !?

 

Thanks,

 

Freek

Link to comment
Share on other sites

Yeeeeeey it worked YOU ARE DA MAN !

 

Only 1 question: I f*cked everything up by installing the following "mod"

www.dejavu-it.nl/EZ_Price_Updater1.zip

 

I follwed EXACTLY every step but i think something went wrong , becouse im in confusion: I have 2 admin folders on my webserver :S :S

My real actual admin folder is hju6 etc , i changed it becouse i did not know how to add a password to the webshop.. so i changed the directory name and something in a PHP file..

 

Could you please "rewrite" / "modificate" the install.txt so that i can understand how to do it before my webshop crashes again

 

Thank you very much

 

Freek

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...