chep Posted March 10, 2007 Share Posted March 10, 2007 FATAL ERROR: register_globals is disabled in php.ini, please enable it! Hi, Is there any workaround for this on installation? I don't have access to php.ini. Thanks, -Chep Link to comment Share on other sites More sharing options...
jasonabc Posted March 10, 2007 Share Posted March 10, 2007 there are several contributions that can help. Jason My Contributions: Paypal Payflow PRO | Rollover Category Images | Authorize.net Invoice Number Fix Link to comment Share on other sites More sharing options...
FIMBLE Posted March 10, 2007 Share Posted March 10, 2007 there are several contributions that can help. Hello There If you add # php_value register_globals 1 to your .htaccess in your Public_html folder That should sort out your problems Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions Link to comment Share on other sites More sharing options...
DarrenDunnage Posted March 10, 2007 Share Posted March 10, 2007 I am have the exact problems i am using xampp i have changed the php.ini and it wont work, i have just dded that line to my .htaccess in the moved it to the htdocs file and still no luck !! Please help !! Thanks Link to comment Share on other sites More sharing options...
DarrenDunnage Posted March 10, 2007 Share Posted March 10, 2007 I am have the exact problems i am using xampp i have changed the php.ini and it wont work, i have just added that line to my .htaccess in the moved it to the htdocs file and still no luck !! I have also restarted my computer !! Please help !! Thanks Link to comment Share on other sites More sharing options...
carlwenrich Posted March 11, 2007 Share Posted March 11, 2007 I have the same problem, and I enabled register_globals in php.ini and about half a dozen .htaccess files. It still doesn't work. Link to comment Share on other sites More sharing options...
Guest Posted March 11, 2007 Share Posted March 11, 2007 I am have the exact problems i am using xampp i have changed the php.ini and it wont work, i have just added that line to my .htaccess in the moved it to the htdocs file and still no luck !! I have also restarted my computer !! Please help !! Thanks What I did was make a php.txt file and dropped it in the root directory of your catalog and /admin/. Just make the txt file with notepad and put this in it...register_globals = On Upload it to your folders and rename it php.ini. This should fix the problem. Cheers Link to comment Share on other sites More sharing options...
tkasis Posted March 20, 2007 Share Posted March 20, 2007 What I did was make a php.txt file and dropped it in the root directory of your catalog and /admin/. Just make the txt file with notepad and put this in it...register_globals = On Upload it to your folders and rename it php.ini. This should fix the problem. Cheers I was going through all the same problems and found that I could not use .htaccess for PHP directives on my hosting service. So this is what I did to make it work. I created a php.ini with only one line as Xen did register_globals = on I saved the file in both my catalog (in my case osc) and osc/admin directories and it worked. Make sure when creating the file that you save it in a "Unicode - ASCII Escaped" format instead of the any of the utfs or DOS as the Apache server won't understand it otherwise. Alternately you could clean up the line returns in your ftp client's editor. I guess just using UNIX Terminators in the text editor would make it work okay also. Hope this helps someone. Tom Link to comment Share on other sites More sharing options...
bronzbabe Posted March 20, 2007 Share Posted March 20, 2007 I was going through all the same problems and found that I could not use .htaccess for PHP directives on my hosting service. So this is what I did to make it work. I created a php.ini with only one line as Xen did register_globals = on I saved the file in both my catalog (in my case osc) and osc/admin directories and it worked. Make sure when creating the file that you save it in a "Unicode - ASCII Escaped" format instead of the any of the utfs or DOS as the Apache server won't understand it otherwise. Alternately you could clean up the line returns in your ftp client's editor. I guess just using UNIX Terminators in the text editor would make it work okay also. Hope this helps someone. Tom This fix worked for me too! I accessed the File Manager in my site's Control panel, then navigated to my catalog (cart/ and cart/admin directories) and it worked list a dream. Thanks so much for all the great information in this forum Deb Link to comment Share on other sites More sharing options...
karinha Posted March 20, 2007 Share Posted March 20, 2007 I was going through all the same problems and found that I could not use .htaccess for PHP directives on my hosting service. So this is what I did to make it work. I created a php.ini with only one line as Xen did register_globals = on I saved the file in both my catalog (in my case osc) and osc/admin directories and it worked. Make sure when creating the file that you save it in a "Unicode - ASCII Escaped" format instead of the any of the utfs or DOS as the Apache server won't understand it otherwise. Alternately you could clean up the line returns in your ftp client's editor. I guess just using UNIX Terminators in the text editor would make it work okay also. Hope this helps someone. Tom I tried that(php.ini with register_globals = on in the catalog and its admin directory), I tried the .htaccess with: php_flag register_globals on (it is in my catalog directory) and I enabled the register_globals in the php.ini in my PHP folder. I still get the error that my register_globals are disabled. I am working on my windows XP, versions i installed: PHP5, MYSQL5, Apache 2 and oscommerce2.2. I am at the end of my nerves! Please help!!!! :'( Maybe there is just a stupid little thing somewhere but I don't get it. Link to comment Share on other sites More sharing options...
usernamenone Posted March 21, 2007 Share Posted March 21, 2007 http://www.oscommerce.com/community/contributions,2097 Link to comment Share on other sites More sharing options...
tkasis Posted March 21, 2007 Share Posted March 21, 2007 I tried that(php.ini with register_globals = on in the catalog and its admin directory), I tried the .htaccess with: php_flag register_globals on (it is in my catalog directory) and I enabled the register_globals in the php.ini in my PHP folder. I still get the error that my register_globals are disabled. I am working on my windows XP, versions i installed: PHP5, MYSQL5, Apache 2 and oscommerce2.2. I am at the end of my nerves! Please help!!!! :'( Maybe there is just a stupid little thing somewhere but I don't get it. I also was at the end of my nerves. Tried all the suggestions and nothing worked until I dug in and found that I was saving in utf-8 with DOS terminators. Finally after playing around I found that my solution above worked both on my local server and hosting service. Did you make sure you used UNIX terminators and save as a UNIX (Linux) file? Not the Microsoft format as it leaves garbage characters at the beginning and end of the lines of code like this "register_globals = On". I used UltraEdit to create the php.ini file because it can save the file in the UNIX format. They have a trial version on their site. I saved my php.ini file in "Unicode - ASCII Escaped" format with Line Terminator setting to "UNIX Terminators - LF". If you have a FTP client that allows you to edit on the server, you could open up the file and clean up any of the garbage characters. You could also SSH (if you have that functionality on your server) and create or modify the file that way. Hope this helps you as it did me. Link to comment Share on other sites More sharing options...
karinha Posted March 21, 2007 Share Posted March 21, 2007 I also was at the end of my nerves. Tried all the suggestions and nothing worked until I dug in and found that I was saving in utf-8 with DOS terminators. Finally after playing around I found that my solution above worked both on my local server and hosting service. Did you make sure you used UNIX terminators and save as a UNIX (Linux) file? Not the Microsoft format as it leaves garbage characters at the beginning and end of the lines of code like this "register_globals = On". I used UltraEdit to create the php.ini file because it can save the file in the UNIX format. They have a trial version on their site. I saved my php.ini file in "Unicode - ASCII Escaped" format with Line Terminator setting to "UNIX Terminators - LF". If you have a FTP client that allows you to edit on the server, you could open up the file and clean up any of the garbage characters. You could also SSH (if you have that functionality on your server) and create or modify the file that way. Hope this helps you as it did me. Thanks a lot for your response. I saved it in Unicode in my Notepad - didn't work. I don't really understand the "Unix Terminator -LF"thing...Sorry I am unfortunately not very experienced in that field: it's the first time I try to get something like this in place and I encounter all the problems you could possibly have... :blink: In terms of ftp, for the moment I only develop it on my machanie, but I'll might change my strategy... Link to comment Share on other sites More sharing options...
karinha Posted March 21, 2007 Share Posted March 21, 2007 I also was at the end of my nerves. Tried all the suggestions and nothing worked until I dug in and found that I was saving in utf-8 with DOS terminators. Finally after playing around I found that my solution above worked both on my local server and hosting service. Did you make sure you used UNIX terminators and save as a UNIX (Linux) file? Not the Microsoft format as it leaves garbage characters at the beginning and end of the lines of code like this "register_globals = On". I used UltraEdit to create the php.ini file because it can save the file in the UNIX format. They have a trial version on their site. I saved my php.ini file in "Unicode - ASCII Escaped" format with Line Terminator setting to "UNIX Terminators - LF". If you have a FTP client that allows you to edit on the server, you could open up the file and clean up any of the garbage characters. You could also SSH (if you have that functionality on your server) and create or modify the file that way. Hope this helps you as it did me. Thanks a lot for your response. I saved it in Unicode in my Notepad - didn't work. I don't really understand the "Unix Terminator -LF"thing...Sorry I am unfortunately not very experienced in that field: it's the first time I try to get something like this in place and I encounter all the problems you could possibly have... :blink: In terms of ftp, for the moment I only develop it on my machanie, but I'll might change my strategy... Link to comment Share on other sites More sharing options...
tkasis Posted March 23, 2007 Share Posted March 23, 2007 Thanks a lot for your response. I saved it in Unicode in my Notepad - didn't work. I don't really understand the "Unix Terminator -LF"thing...Sorry I am unfortunately not very experienced in that field: it's the first time I try to get something like this in place and I encounter all the problems you could possibly have... :blink: In terms of ftp, for the moment I only develop it on my machanie, but I'll might change my strategy... Here. Try mine. http://www.tkasis.com/php/ Right mouse on php.ini and "Save Target As..." in Internet Explorer or "Save Link As.." in Firefox. If that doesn't work, I wish you luck. Tom Link to comment Share on other sites More sharing options...
usernamenone Posted March 23, 2007 Share Posted March 23, 2007 Did you shut down your server and restart it after making changes to the ini file? It is a must. I have the same problem, and I enabled register_globals in php.ini and about half a dozen .htaccess files. It still doesn't work. Link to comment Share on other sites More sharing options...
karinha Posted March 23, 2007 Share Posted March 23, 2007 Did you shut down your server and restart it after making changes to the ini file? It is a must. Thanks a lot! Problem is solved; I just gave up on the test development - too much trouble. Everything works fine now with .htaccess, just like in my book. :lol: Well i just hope it will continue that way. Thanks a lot again for your effort to help me! :thumbsup: karinha Link to comment Share on other sites More sharing options...
thugpolice Posted March 23, 2007 Share Posted March 23, 2007 Did you shut down your server and restart it after making changes to the ini file? It is a must. Fixed my problem also, thank you! :thumbsup: Link to comment Share on other sites More sharing options...
wynner Posted March 23, 2007 Share Posted March 23, 2007 I have a related problem. I uploaded an .htaccess file to my Admin directory and a htpasswd file. I broke my site. It gives me this error. 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. I use an ISP to host the site. Is there a fix? Thanks for your time Wynn Link to comment Share on other sites More sharing options...
karinha Posted March 23, 2007 Share Posted March 23, 2007 Not that I know a whole lot about it, but did you try all the options? Did you try the .htaccess file with: "php_flag register_globals on" in your catalog directory? Link to comment Share on other sites More sharing options...
wynner Posted March 24, 2007 Share Posted March 24, 2007 Not that I know a whole lot about it, but did you try all the options? Did you try the .htaccess file with: "php_flag register_globals on" in your catalog directory? I have a php.ini file in catalog/ and also admin/. It says on one line, "php_flag register_globals = on"and I saved them in Unicode. It still gives me the following error, "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." I tried all of the suggestions made before my problem. None are working for me. The customer needs this fixed before Monday. I am at the mercy of the OScommerce gurus. Wynn Link to comment Share on other sites More sharing options...
usernamenone Posted March 25, 2007 Share Posted March 25, 2007 Just answered this in another thread. http://www.oscommerce.com/community/contributions,2097 Link to comment Share on other sites More sharing options...
weever Posted March 25, 2007 Share Posted March 25, 2007 I have a php.ini file in catalog/ and also admin/. It says on one line, "php_flag register_globals = on"and I saved them in Unicode. It still gives me the following error, "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." I tried all of the suggestions made before my problem. None are working for me. The customer needs this fixed before Monday. I am at the mercy of the OScommerce gurus. Wynn In my control panel I created a new File in CATALOG and ADMIN and called them php.ini as text files and then I opened each one and typed in register_globals = On; and saved that and it solved the problem for me after installing through Fantastico. I hope this helps all the best. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.