bhomis Posted October 7, 2005 Share Posted October 7, 2005 Hi. I am on a shared server without the ability to have register_globals enabled. I downloaded the correct version of osCommerce which doesn't need register_globals enabled. Installation went fine. I slowly began configuring it and everything was working fine for a few days. I was extremely cautious. Today, everything was working, and I went to increase the width of the box column width of the left side from 125 to 158. The only thing I touched on application_top.php was changing the figure from 125 to 158. It was the only file I touched today too. I FTPed it to my server, and got this: FATAL ERROR: register_globals is disabled in php.ini, please enable it! So I thought, okay, I'll just change it back to 125 and leave it the way it was. I did that, put on the server, and the error is still there. Why? How do I fix that? I can still get the admin page working though. If anyone can offer help, I'd greatly appreciate it. Thanks so much, Bruce Link to comment Share on other sites More sharing options...
Guest Posted October 7, 2005 Share Posted October 7, 2005 I had the same problem and was told to comment out the application_top file lines below. // check if register_globals is enabled. // since this is a temporary measure this message is hardcoded. The requirement will be removed before 2.2 is finalized. //if (function_exists('ini_get')) { //ini_get('register_globals') or exit('FATAL ERROR: register_globals is disabled in php.ini, please enable it!'); //} Hopefully this helps. Link to comment Share on other sites More sharing options...
bhomis Posted October 7, 2005 Author Share Posted October 7, 2005 Hi. Thanks. I just tried that and there was no change. Any other ideas? Thanks again, Bruce I had the same problem and was told to comment out the application_top file lines below. // check if register_globals is enabled. // since this is a temporary measure this message is hardcoded. The requirement will be removed before 2.2 is finalized. //if (function_exists('ini_get')) { //ini_get('register_globals') or exit('FATAL ERROR: register_globals is disabled in php.ini, please enable it!'); //} Hopefully this helps. Link to comment Share on other sites More sharing options...
♥Vger Posted October 7, 2005 Share Posted October 7, 2005 I downloaded the correct version of osCommerce which doesn't need register_globals enabled. There is no version of osCommerce which you can download that does not need Register Globals enabled. You can download osCommerce 2.2 MS2 and then apply the Register Globals Patch Files. Is that what you meant? Vger Link to comment Share on other sites More sharing options...
freegood Posted October 7, 2005 Share Posted October 7, 2005 Hi.I am on a shared server without the ability to have register_globals enabled. I downloaded the correct version of osCommerce which doesn't need register_globals enabled. Installation went fine. I slowly began configuring it and everything was working fine for a few days. I was extremely cautious. Today, everything was working, and I went to increase the width of the box column width of the left side from 125 to 158. The only thing I touched on application_top.php was changing the figure from 125 to 158. It was the only file I touched today too. I FTPed it to my server, and got this: FATAL ERROR: register_globals is disabled in php.ini, please enable it! So I thought, okay, I'll just change it back to 125 and leave it the way it was. I did that, put on the server, and the error is still there. Why? How do I fix that? I can still get the admin page working though. If anyone can offer help, I'd greatly appreciate it. Thanks so much, Bruce Hi Bruce; I am also new to the OsCommerce community. I have the same problem but, I solve it by loggin in to the hosting server. Under Public_html directory, it should have php.ini file or any top lever directory. Just copy that file and place it in any directory that contain PHP file. You should be get rid the error. Let me know it that help. Link to comment Share on other sites More sharing options...
bhomis Posted October 7, 2005 Author Share Posted October 7, 2005 Vger, Thanks for your reply. That is the version of osCommerce that I'm running, but I'm confused with the whole patch thing. I supposedly downloaded the patch, and all I got was another version of osCommerce. It seems as if I'd be installing the whole thing all over again. I figured the patch would be just a handful of files at most. This is the URL I have for the patch: http://www.infocuscg.com/downloads/oscomme...merce-patch.tar Here's something else. The tech support for my server sent me this reply: "Both URLs come back with a 403 forbidden error message due to a .htaccess file within the includes directory preventing all access. You can remove that .htaccess file so you will be able to test your PHP pages further." Being that they're not familiar with osCommerce, I wanted to bounce the idea off everyone here first before attempting this. If anyone could help with this whole patch thing or any other solution, I'd greatly apprecite it. Thanks again, Bruce There is no version of osCommerce which you can download that does not need Register Globals enabled. You can download osCommerce 2.2 MS2 and then apply the Register Globals Patch Files. Is that what you meant? Vger Link to comment Share on other sites More sharing options...
♥Vger Posted October 7, 2005 Share Posted October 7, 2005 I would download the official osCommerce 2.2 MS2 from www.oscommerce.com and apply the Register Globals Patch Files (link below my name). I don't know what it is that you are downloading. Vger Link to comment Share on other sites More sharing options...
bhomis Posted October 8, 2005 Author Share Posted October 8, 2005 Vger, Thanks so much. Being that I already had osCommerce installed, I did as it stated at the bottom - to install the files in the folders except those in the install folder. It seems as if everything is working properly now. If I made a mistake, please let me know. Thanks again, Bruce I would download the official osCommerce 2.2 MS2 from www.oscommerce.com and apply the Register Globals Patch Files (link below my name). I don't know what it is that you are downloading. Vger Link to comment Share on other sites More sharing options...
mikcyd Posted October 14, 2005 Share Posted October 14, 2005 I work on my desktop, and sometimes on my laptop. As I needed both working with osCommerce, only one of the two was working. Found that if I put this line, for php5: LoadModule php5_module c:/php/php5apache2.dll AddModule mod_php5.c AddType application/x-httpd-php .php inside my httpd.conf file (located under the apache folder, inside the "conf" file), it fixed the register_globals error and had the osCommerce up and running. Although this fixed my error, I had access to my "httpd.conf" file, which isn't usually accessible if you're on a ISP's server. hope this helps either way. miky Link to comment Share on other sites More sharing options...
♥Vger Posted October 14, 2005 Share Posted October 14, 2005 As you've guesssed correctly very few people here will have access to the httpd.conf file - only those with dedicated or virtual dedicated servers. Vger Link to comment Share on other sites More sharing options...
Guest Posted October 19, 2005 Share Posted October 19, 2005 Vger; ok, I have down loaded intalled 2.2 ms2 and then applied all three of the patches on the contribution pages in the order that they were presented... Actually I loaded the last one first hoping that it would do the trick, but when it did not work, I down loaded the other 2 then loaded them sequentially, in order then reloaded the last one. It still does not work. Is there a reason this patch was not included in the 2.2 ms2? Patrick Link to comment Share on other sites More sharing options...
adam1987 Posted October 19, 2005 Share Posted October 19, 2005 Hi I attempted to install oscommerce on my web server but i received the error "FATAL ERROR: register_globals is disabled in php.ini, please enable it!" So then i installed the patched version of OSC But now when i try to install the STS i receive the "FATAL ERROR: register_globals is disabled in php.ini, please enable it!" Error again. Could someone please let me know what can be done to overcome this error. Many Thanks Adam Link to comment Share on other sites More sharing options...
Guest Posted October 19, 2005 Share Posted October 19, 2005 Hi I attempted to install oscommerce on my web server but i received the error "FATAL ERROR: register_globals is disabled in php.ini, please enable it!" So then i installed the patched version of OSC But now when i try to install the STS i receive the "FATAL ERROR: register_globals is disabled in php.ini, please enable it!" Error again. Could someone please let me know what can be done to overcome this error. Many Thanks Adam You might have installed the patch wrong. You just extract the files & replace them on the live server where you found them in the extracted files. Install this patch. It worked for me! http://www.oscommerce.com/community/contri...als+Patch+Files Link to comment Share on other sites More sharing options...
adam1987 Posted October 19, 2005 Share Posted October 19, 2005 You might have installed the patch wrong. You just extract the files & replace them on the live server where you found them in the extracted files. Install this patch. It worked for me! http://www.oscommerce.com/community/contri...als+Patch+Files Do you have a patch working with STS template system ? Link to comment Share on other sites More sharing options...
adam1987 Posted October 19, 2005 Share Posted October 19, 2005 Do you have a patch working with STS template system ? The Patch works fine !!!!!!!!!!! BUT... as soon as i install the Simple Template System ..... i get that error again ! >_< Link to comment Share on other sites More sharing options...
Guest Posted July 7, 2006 Share Posted July 7, 2006 I have experienced the same problem. The register global patch things work fine with me. Link to comment Share on other sites More sharing options...
shmekera Posted October 10, 2008 Share Posted October 10, 2008 Open .htaccess (in your catalog root) and add these lines: <IfModule mod_php4.c> php_value session.use_trans_sid 0 php_value register_globals 1 </IfModule> Link to comment Share on other sites More sharing options...
Guest Posted October 10, 2008 Share Posted October 10, 2008 Timely advice. Link to comment Share on other sites More sharing options...
Kasey Carr Posted October 14, 2009 Share Posted October 14, 2009 Hi. Thanks. I just tried that and there was no change. Any other ideas? Thanks again, Bruce Hey I had the same problem. Which was resolved when I also commented my application.php file and my application_top.pho file in my admin directory Link to comment Share on other sites More sharing options...
wrangler Posted January 14, 2010 Share Posted January 14, 2010 Hey I had the same problem. Which was resolved when I also commented my application.php file and my application_top.pho file in my admin directory I confirm this too. I have commented out these lines if (function_exists('ini_get')) { ini_get('register_globals') or exit('Server Requirement Error: register_globals is disabled in your PHP configuration. This can be enabled in your php.ini configuration file or in the .htaccess file in your catalog directory.'); } in /admin/includes/application_top.php and /includes/application_top.php and the site is now working well. Hope this helps someone. Link to comment Share on other sites More sharing options...
wrangler Posted January 14, 2010 Share Posted January 14, 2010 I confirm this too. I have commented out these lines if (function_exists('ini_get')) { ini_get('register_globals') or exit('Server Requirement Error: register_globals is disabled in your PHP configuration. This can be enabled in your php.ini configuration file or in the .htaccess file in your catalog directory.'); } in /admin/includes/application_top.php and /includes/application_top.php and the site is now working well. Hope this helps someone. Ha, i spoke too soon. After commenting out the above files, the first page of the site looked normal but when I clicked on any link there was an error something about the language files. I solved this problem after I installed the Vger's Register Globals patch file Patch File. This has solved the problem. Link to comment Share on other sites More sharing options...
Guest Posted January 26, 2010 Share Posted January 26, 2010 I coudnt find aplication.php file where it is located? I modfied application_top.php file but same message coming. Link to comment Share on other sites More sharing options...
mifzal.mufthi Posted March 6, 2010 Share Posted March 6, 2010 I confirm this too. I have commented out these lines if (function_exists('ini_get')) { ini_get('register_globals') or exit('Server Requirement Error: register_globals is disabled in your PHP configuration. This can be enabled in your php.ini configuration file or in the .htaccess file in your catalog directory.'); } in /admin/includes/application_top.php and /includes/application_top.php and the site is now working well. Hope this helps someone. What do you mean by commenting out? Even I am having this issue register_global Link to comment Share on other sites More sharing options...
eddlinux Posted March 26, 2010 Share Posted March 26, 2010 Suggest from shmekara was great...here it is : Open .htaccess (in your catalog root) and add these lines: <IfModule mod_php4.c> php_value session.use_trans_sid 0 php_value register_globals 1 </IfModule> It works! Thank you Edd :thumbsup: Link to comment Share on other sites More sharing options...
Guest Posted May 8, 2010 Share Posted May 8, 2010 I had the same problem and was told to comment out the application_top file lines below. // check if register_globals is enabled. // since this is a temporary measure this message is hardcoded. The requirement will be removed before 2.2 is finalized. //if (function_exists('ini_get')) { //ini_get('register_globals') or exit('FATAL ERROR: register_globals is disabled in php.ini, please enable it!'); //} Hopefully this helps. I changed my application_top file to the above: // Check if register_globals is enabled. // Since this is a temporary measure this message is hardcoded. The requirement will be removed before 2.2 is finalized. // if (function_exists('ini_get')) { // ini_get('register_globals') or exit('Server Requirement Error: register_globals is disabled in your PHP configuration. This can be enabled in your php.ini configuration file or in the .htaccess file in your catalog directory.'); // } Now I get the following error when I try to access my store url: Warning: require(includes/configure.php) [function.require]: failed to open stream: No such file or directory in /home/glittergirljo/coderedhead.net/Store/admin/includes/application_top.php on line 29 Fatal error: require() [function.require]: Failed opening required 'includes/configure.php' (include_path='.:/usr/local/php5/lib/php:/usr/local/lib/php') in /home/glittergirljo/coderedhead.net/Store/admin/includes/application_top.php on line 29 Line 29 of the php file is this: require('includes/configure.php'); Please help! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.