Administration Panel Login Trouble - register_globals
Previous  Top  Next

Everything seemed to go ok with install.php, but instead of redirecting to the login page after running install.php, a page can't be found error appears or the page is redirected to the site's index file.

See also: Administration Panel Login Trouble - ashoppath and ashopurl

In versions earlier than 6.3.3, the '$ashoppath' variable is set in admin/config.inc.php. In these versions, it is likely that the admin login page will appear, but when attempting to login the login screen will appear without any error message.

In version from 6.3.3 an newer, all of the preferences except the database settings are stored within the database table 'preferences'. The 'ashopurl' is set automatically by install.php. If the ashopurl is set to "http://" the URL lookup did not work. The most likely cause of this malfunction is that register_globals is set to off in the server's PHP configuration.

Check the php.ini file setting "register_globals by running the script phpinfo.php on the server. This must be set to On for AShop to function correctly. If it is set to off, ask you server administrator or hosting technical support to turn it on.

To view the php.ini settings, create a text file with the following code, name it phpinfo.php, upload it to a public directory on the server, and call it from a browser.

<?php

// Show all information, defaults to INFO_ALL
phpinfo();

// Show just the module information.
// phpinfo(8) yields identical results.
// phpinfo(INFO_MODULES);

?>

In versions from 3.6.3 up, the 'ashopurl' value must then be set by running install.php again, or by entering it into the database via a program such as phpMyAdmin, or from a shell command line.