1shoe Posted September 8, 2010 Posted September 8, 2010 Not sure what the problem is. When i open my admin area i get a message saying. Error! Unable to determine the page link! Function used: tep_href_link('', '', 'NONSSL') i am unable to use any of the options in admin, also even though when i load my site it opens ok but i am unable to access any of the pages on the site, it appears to start but the stays on the same page Any suggestions or help would be great. 1shoe
web-project Posted September 8, 2010 Posted September 8, 2010 check the configure.php file (admin version), as it sound to me that it was incorrectly setup. Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here! 8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself. Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues. Any issues with oscommerce, I am here to help you.
♥FWR Media Posted September 8, 2010 Posted September 8, 2010 Not sure what the problem is. When i open my admin area i get a message saying. Error! Unable to determine the page link! Function used: tep_href_link('', '', 'NONSSL') i am unable to use any of the options in admin, also even though when i load my site it opens ok but i am unable to access any of the pages on the site, it appears to start but the stays on the same page Any suggestions or help would be great. 1shoe The links are failing because $page is being passed through as a null value. Filenames in osCommerce are found in includes/filenames.php which could I suppose be missing .. would be very odd for it to be missing in admin too however. Either way $page is being passed as null. Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
1shoe Posted September 8, 2010 Author Posted September 8, 2010 Thanks for the quick response's Before i had a chance to check the files everything had gone back to normal late afternoon?, no idea what has been going on over the last couple of days but all seem to be working fine at the moment.i will check out the files anyway just to be sure Again many thanks
ClaireB Posted September 10, 2010 Posted September 10, 2010 Thanks for the quick response's Before i had a chance to check the files everything had gone back to normal late afternoon?, no idea what has been going on over the last couple of days but all seem to be working fine at the moment.i will check out the files anyway just to be sure Again many thanks Hi I'm having the exact same problem, site has been working fine for 3 years and today this problem. No work has been done or files changed on the site for over a month. I've restored the database but problem is still there in Admin and links not working. I've checked filenames.php and configure.php all seems ok. Any ideas would be greatly appreciated. Many thanks, Claire
Guest Posted September 15, 2010 Posted September 15, 2010 Hi I'm having the exact same problem, site has been working fine for 3 years and today this problem. No work has been done or files changed on the site for over a month. I've restored the database but problem is still there in Admin and links not working. I've checked filenames.php and configure.php all seems ok. Any ideas would be greatly appreciated. Many thanks, Claire Same here store working fine for 3 years then this happens to me after no changes at all. Have also done full restore from known good backup and still the same. Filenames.php in both store/includes and admin/includes both there and complete. How do we resolve $page passing as null???? Same, any help appreciated
♥FWR Media Posted September 16, 2010 Posted September 16, 2010 Try this in admin add a file test.php containing .. <?php include_once 'includes/application_top.php'; echo tep_href_link( FILENAME_DEFAULT ) . '<br />'; echo tep_href_link( basename( $PHP_SELF ) ) . '<br />'; include_once 'includes/application_bottom.php'; ?> Log into admin then browse to admin/test.php and post here what is output. Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
Guest Posted September 16, 2010 Posted September 16, 2010 I have quoted out the Nochex link in admin/includes/column_left which now means that I can get to the other links but I have no titles; i.e. Surname for customer says TABLE_HEADING_LASTNAME. I have checked the language files and all this is there. Any ideas why it won't show them?
ClaireB Posted September 20, 2010 Posted September 20, 2010 Try this in admin add a file test.php containing .. <?php include_once 'includes/application_top.php'; echo tep_href_link( FILENAME_DEFAULT ) . '<br />'; echo tep_href_link( basename( $PHP_SELF ) ) . '<br />'; include_once 'includes/application_bottom.php'; ?> Log into admin then browse to admin/test.php and post here what is output. Below is what is output after adding the test.php file in Admin and browsing to admin/test.php. This is the same error message as before. Many thanks. http://websiteaddress.co.uk/admin/index.php Error! Unable to determine the page link! Function used: tep_href_link('', '', 'NONSSL')
♥FWR Media Posted September 20, 2010 Posted September 20, 2010 Below is what is output after adding the test.php file in Admin and browsing to admin/test.php. This is the same error message as before. Many thanks. http://websiteaddres...admin/index.php Error! Unable to determine the page link! Function used: tep_href_link('', '', 'NONSSL') Ok good .. so it's a problem with $PHP_SELF Now change the code to the following and report back please: - <?php include_once 'includes/application_top.php'; echo tep_href_link( FILENAME_DEFAULT ) . '<br />'; echo 'PHP_SELF contains: ' . $PHP_SELF . '<br />'; echo 'basename() contains: ' . basename( $PHP_SELF ) . '<br />'; include_once 'includes/application_bottom.php'; Also please open up catalog/includes/application_top.php and see if you can find the following: - // set php_self in the local scope if (!isset($PHP_SELF)) $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF']; If you can't find it search the file for $PHP_SELF and see if you can find the code where it is being set. Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
ClaireB Posted September 20, 2010 Posted September 20, 2010 Ok good .. so it's a problem with $PHP_SELF Now change the code to the following and report back please: - <?php include_once 'includes/application_top.php'; echo tep_href_link( FILENAME_DEFAULT ) . '<br />'; echo 'PHP_SELF contains: ' . $PHP_SELF . '<br />'; echo 'basename() contains: ' . basename( $PHP_SELF ) . '<br />'; include_once 'includes/application_bottom.php'; Also please open up catalog/includes/application_top.php and see if you can find the following: - // set php_self in the local scope if (!isset($PHP_SELF)) $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF']; If you can't find it search the file for $PHP_SELF and see if you can find the code where it is being set. This is what's output now: http://xxxxx.co.uk/admin/index.php PHP_SELF contains: basename() contains: Have checked file catalog/includes/application_top.php and it contains the code.
♥FWR Media Posted September 20, 2010 Posted September 20, 2010 This is what's output now: http://xxxxx.co.uk/admin/index.php PHP_SELF contains: basename() contains: Have checked file catalog/includes/application_top.php and it contains the code. Check if register_long_arrays is set to on in php. You can either check this in the admin panel or create a new file in your shop root called info.php containing: - <?php phpinfo(); Browse to the file then search for register_long_arrays DELETE THIS FILE AFTER USE If register_long_arrays was off try adding the following to .htaccess both in the root of your site and in admin .. php_value register_long_arrays On Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
ClaireB Posted September 20, 2010 Posted September 20, 2010 Check if register_long_arrays is set to on in php. You can either check this in the admin panel or create a new file in your shop root called info.php containing: - <?php phpinfo(); Browse to the file then search for register_long_arrays DELETE THIS FILE AFTER USE If register_long_arrays was off try adding the following to .htaccess both in the root of your site and in admin .. php_value register_long_arrays On register_long_arrays was off. Having problems editing .htaccess file, sorry not done this before, tried in text editor but can't see any code in the file and also tried in file manager in my hosting but unable to edit it from there. I'm working on a Mac, can you point me in the right direction please. Thanks.
♥FWR Media Posted September 20, 2010 Posted September 20, 2010 register_long_arrays was off. Having problems editing .htaccess file, sorry not done this before, tried in text editor but can't see any code in the file and also tried in file manager in my hosting but unable to edit it from there. I'm working on a Mac, can you point me in the right direction please. Thanks. First and foremost File Manager and Define languages must be removed from your system .. they are a known security hazard .. certainly don't use them. I have no experience of Macs so don't know what's available to you but notepad++ is a recommended and free editor. For ftp you could use filezilla which is also free. Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
ClaireB Posted September 20, 2010 Posted September 20, 2010 First and foremost File Manager and Define languages must be removed from your system .. they are a known security hazard .. certainly don't use them. I have no experience of Macs so don't know what's available to you but notepad++ is a recommended and free editor. For ftp you could use filezilla which is also free. Ok, thanks. File Manager and Define languages are on the system and will be removed. The .htaccess file opens with no content/code. I've checked against another .htaccess file on a different website which opens and shows its contents/code. Is it possible the file has been accessed and had its contents deleted?
♥FWR Media Posted September 20, 2010 Posted September 20, 2010 Ok, thanks. File Manager and Define languages are on the system and will be removed. The .htaccess file opens with no content/code. I've checked against another .htaccess file on a different website which opens and shows its contents/code. Is it possible the file has been accessed and had its contents deleted? The standard osCommerce .htaccess is full of a load of "blerb" but it is all commented out so doesn't have to be there at all. I am supposing that you have no contributions installed that require .htaccess settings like seo urls etc. Try adding the suggested code to the blank .htaccess file then try to load the site. Another option is to add the following at the very top of includes/application_top.php immediately below the opening <?php ini_set( 'register_long_arrays', 'On' ); Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
ClaireB Posted September 20, 2010 Posted September 20, 2010 I've added the code to the blank .htaccess files but the site is still showing the same problems. Also added the code into includes/application_top.php register_long_arrays is still showing as off in new file info.php Thanks.
♥FWR Media Posted September 20, 2010 Posted September 20, 2010 I've added the code to the blank .htaccess files but the site is still showing the same problems. Also added the code into includes/application_top.php register_long_arrays is still showing as off in new file info.php Thanks. in info.php above the phpinfo(); add .. ini_set( 'register_long_arrays', 'On' ); Then check it to see if they are now set to on .. if they are then you just add this code to the top of the two application_top.php files as I mentioned previously. If not your host needs to tell you how to enable it. It could well be that you are able to run local php.ini files but if .htaccess didn't work and you made the changes to the correct .htaccess files then perhaps allowoverride is not allowing .htaccess commands. Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
ClaireB Posted September 20, 2010 Posted September 20, 2010 Problem solved!! With your help I added the following code to the php.ini file: register_long_arrays = on Do you think there was a possibility that the site was hacked, or was it maybe a database upgrade at the hosting company? Everything is working fine now, thank you very much for all your help Robert, really appreciated. Claire
Recommended Posts
Archived
This topic is now archived and is closed to further replies.