ravi_inspiration Posted December 20, 2004 Share Posted December 20, 2004 Hi Everyone, I have problem in register_globals configuration, please help me to fix this bug. Im getting the following error when im installed to my server FATAL ERROR: register_globals is disabled in php.ini, please enable it! Advance thanks to all Link to comment Share on other sites More sharing options...
RyanSmith Posted December 20, 2004 Share Posted December 20, 2004 Hi Everyone, I have problem in register_globals configuration, please help me to fix this bug. Im getting the following error when im installed to my server FATAL ERROR: register_globals is disabled in php.ini, please enable it! Advance thanks to all <{POST_SNAPBACK}> Open your php.ini file that you created when you install php. Search for register_globals = off and change to register_globals = on that should solve the problem. Ryan Smith osCommerce is a great piece of software with wonderful contributions. Spend some time in the contribution area. There are a lot of gems there. Link to comment Share on other sites More sharing options...
♥Vger Posted December 20, 2004 Share Posted December 20, 2004 If your website is on a shared server then you won't have access to php.ini - in which case you need to go to Contributions and install the patch that allows your site to work with register_globals set to Off in php.ini. Vger Link to comment Share on other sites More sharing options...
ravi_inspiration Posted December 20, 2004 Author Share Posted December 20, 2004 If your website is on a shared server then you won't have access to php.ini - in which case you need to go to Contributions and install the patch that allows your site to work with register_globals set to Off in php.ini. Vger <{POST_SNAPBACK}> Thanks for your reply. i had tried with that contribution files, eventhough imgetting same error. please let me know if u have any other way. First i got the following erorr : FATAL ERROR: register_globals is disabled in php.ini, please enable it! After i added ************ php_flag "register_globals" on ********* this line in our application_top file. after that i got the following error : Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in D:\Websites\vhosts\cassiopeia.us\subdomains\shopping\httpdocs\application_top.php on line 2 Warning: main(DIR_WS_LANGUAGES/FILENAME_DEFAULT): failed to open stream: No such file or directory in D:\Websites\vhosts\cassiopeia.us\subdomains\shopping\httpdocs\Index.php on line 33 Fatal error: main(): Failed opening required 'DIR_WS_LANGUAGES/FILENAME_DEFAULT' (include_path='.;./includes;./pear') in D:\Websites\vhosts\cassiopeia.us\subdomains\shopping\httpdocs\Index.php on line 33 Please help me Regards ravi_inspiration >_< Link to comment Share on other sites More sharing options...
ravi_inspiration Posted December 20, 2004 Author Share Posted December 20, 2004 Open your php.ini file that you created when you install php. Search forregister_globals = off and change to register_globals = on that should solve the problem. Ryan Smith <{POST_SNAPBACK}> Thanks for your reply, In local it works fine, but im trying in the server im getting this type of error. I think we are not able to access the php.ini file in the server. If u have any idea please help me Thank You Regards ravi_inspiration >_< Link to comment Share on other sites More sharing options...
Guest Posted December 20, 2004 Share Posted December 20, 2004 You could try this: Make an .htaccess file and put 1 of the following inside, FTP the .htaccess to the server and see what happens: 1/ php_flag register_globals 0 2/ php_flag register_globals on 3/ php_value register_globals on 4/ php_value register_globals 1 5/ php_value session.use_trans_sid 0 php_value register_globals 1 Link to comment Share on other sites More sharing options...
ravi_inspiration Posted December 20, 2004 Author Share Posted December 20, 2004 You could try this: Make an .htaccess file and put 1 of the following inside, FTP the .htaccess to the server and see what happens: 1/ php_flag register_globals 0 2/ php_flag register_globals on 3/ php_value register_globals on 4/ php_value register_globals 1 5/ php_value session.use_trans_sid 0 php_value register_globals 1 <{POST_SNAPBACK}> This is my .htaccess file # $Id: .htaccess,v 1.3 2003/06/12 10:53:20 hpdl Exp $ # # This is used with Apache WebServers # # For this to work, you must include the parameter 'Options' to # the AllowOverride configuration # # Example: # # <Directory "/usr/local/apache/htdocs"> # AllowOverride Options # </Directory> # # 'All' with also work. (This configuration is in the # apache/conf/httpd.conf file) # The following makes adjustments to the SSL protocol for Internet # Explorer browsers <IfModule mod_setenvif.c> <IfDefine SSL> SetEnvIf User-Agent ".*MSIE.*" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 </IfDefine> </IfModule> # Fix certain PHP values # (commented out by default to prevent errors occuring on certain # servers) #<IfModule mod_php4.c> # php_value session.use_trans_sid 0 # php_flag register_globals on #</IfModule> is it correct im already did this Still im gettign this error Please give me a solution Thanks a lot Regards ravi_inspiration >_< Link to comment Share on other sites More sharing options...
ravi_inspiration Posted December 21, 2004 Author Share Posted December 21, 2004 :thumbsup: Thank a lot :thumbsup: Finally i fixed my bug. http://www.oscommerce.com/community/contri...egister_globals This contribution help me to fix this bug. If you have this kind of bug please try this patch file to get sucessful output. Once again thanks to everyone. If you have any other intresting contribution please le me know that. Regards ravi_inspiration :thumbsup: Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.