leveera Posted April 26, 2008 Posted April 26, 2008 Support for Register Globals Easy please Register globals easy Quote
leveera Posted April 26, 2008 Author Posted April 26, 2008 Function fine in general but I suggest that a result of the contribution application for my 2.2M2 is a lost of ability to open folders in Tools-File manager Anybody have the same? Sergei Quote
Dennisra Posted April 26, 2008 Posted April 26, 2008 Has anyone been able to get "Who's Online Enhancement" the cart contents working after installing this contribution? http://www.oscommerce.com/community/contri...ons,824/page,72 Quote
Guest Posted April 28, 2008 Posted April 28, 2008 (edited) hi, I installed, but when I go to www.mysite.com/catalog, I get: Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'nobody'@'localhost' (using password: NO) in /home/mysite/public_html/catalog/includes/functions/database.php on line 19 Unable to connect to database server! and in the admin, I get: Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'mysql'@'localhost' (using password: NO) in /home/mysite/public_html/catalog/admin/includes/functions/database.php on line 19 Unable to connect to database server! I did do the quote at the end of the instructions for the db. Edit: sorry, line 19 on both says: $$link = mysql_connect($server, $username, $password); Edited April 28, 2008 by coolfly Quote
tanicos Posted May 2, 2008 Posted May 2, 2008 this is what i get after trying to validate <br /> <b>Warning</b>: extract(): First argument should be an array in <b>/...../includes/application_top.php</b> on line <b>223</b><br /> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> and it can't find my doctype even it's added right... Quote
leveera Posted May 5, 2008 Author Posted May 5, 2008 Function fine in general butI suggest that a result of the contribution application for my 2.2M2 is a lost of ability to open folders in Tools-File manager Anybody have the same? Sergei Finally tested it on my local server by playing with register_globals setting ON and OFF In OFF mode it has following bugs: 1. Don't support multilanguage admin. You will have admin in Windows default language only 2. No open folder function in Admin ->Tools -> File manager Quote
leveera Posted May 6, 2008 Author Posted May 6, 2008 Finally tested it on my local server by playing with register_globals setting ON and OFFIn OFF mode it has following bugs: 1. Don't support multilanguage admin. You will have admin in Windows default language only 2. No open folder function in Admin ->Tools -> File manager Problem #3 No support customer shoping cart contents review in Admin -> Tools -> Who is online Quote
IrOnGaTe Posted May 9, 2008 Posted May 9, 2008 this is what i get after trying to validate <br /> <b>Warning</b>: extract(): First argument should be an array in .... i have the same problem! anyone an idea? PHP Warning: extract() [<a href='function.extract'>function.extract</a>]: First argument should be an array in /srv/www/includes/application_top.php on line 251 // Register Globals MOD - if (!ini_get("register_globals")) { if (version_compare(phpversion(), "4.1.0", "<") === true) { if (isset($HTTP_SESSION_VARS)) $_SESSION &= $HTTP_SESSION_VARS; } extract($_SESSION, EXTR_SKIP); <--- 251 } Quote
MrE03 Posted May 10, 2008 Posted May 10, 2008 i have the same problem! anyone an idea? // Register Globals MOD - if (!ini_get("register_globals")) { if (version_compare(phpversion(), "4.1.0", "<") === true) { if (isset($HTTP_SESSION_VARS)) $_SESSION &= $HTTP_SESSION_VARS; } extract($_SESSION, EXTR_SKIP); <--- 251 } i have the exact same problem, Warning: extract() [function.extract]: First argument should be an array in /home/***/public_html/includes/application_top.php on line 226 and on the bottom of my page: Warning: Invalid argument supplied for foreach() in /home/***/public_html/includes/functions/sessions.php on line 142 anyone figure this problem out? Quote
chris1234 Posted May 19, 2008 Posted May 19, 2008 I have an oscommerce v2.2 rc1 running on a server that only supports SSL with php 5 and registered globals off So I just installed the globals easy contribution, but i still get an error This is the error before the contrib: 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. And this is the error after the installation of the contrib: FATAL ERROR: register_globals is disabled in php.ini, please enable it! Can someone help me get it working? Quote
IrOnGaTe Posted May 20, 2008 Posted May 20, 2008 I have an oscommerce v2.2 rc1 running on a server that only supports SSL with php 5 and registered globals off So I just installed the globals easy contribution, but i still get an error This is the error before the contrib: 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. And this is the error after the installation of the contrib: FATAL ERROR: register_globals is disabled in php.ini, please enable it! Can someone help me get it working? Hi chris1234, shure that you have installed this contrib right? It's sounds for me like an installation error (forgoten step), because osC told you that "register globals is off" - wih these contrib this error message is disabled. Try again and read step by step the instruction! in original application_top is this code: <- That is what you have forgoten if (function_exists('ini_get')) { // Register Globals MOD - 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.'); } change it to /* // Register Globals MOD - // 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')) { // Register Globals MOD - 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.'); } */ Quote
chris1234 Posted May 20, 2008 Posted May 20, 2008 Hmm strange, i checked it and i did not forgot that, it was commented out. I will try again (for the third time or something) and let you know how this attempt went Quote
MrE03 Posted May 20, 2008 Posted May 20, 2008 (edited) QUOTE (IrOnGaTe @ May 9 2008, 02:34 PM) i have the same problem! anyone an idea? CODE // Register Globals MOD - if (!ini_get("register_globals")) { if (version_compare(phpversion(), "4.1.0", "<") === true) { if (isset($HTTP_SESSION_VARS)) $_SESSION &= $HTTP_SESSION_VARS; } extract($_SESSION, EXTR_SKIP); <--- 251 } i have the exact same problem, CODE Warning: extract() [function.extract]: First argument should be an array in /home/***/public_html/includes/application_top.php on line 226 and on the bottom of my page: CODE Warning: Invalid argument supplied for foreach() in /home/***/public_html/includes/functions/sessions.php on line 142 so no one notices this problem? it does disappear, but the error does still show up every once in a while Edited May 20, 2008 by MrE03 Quote
kunal247 Posted May 21, 2008 Posted May 21, 2008 Hi, I have just added this contribution and added to the .htaccess a code as requested by my host to switch to PHP5 added to .htaccess: Action php5-script /interpreters/php5-script AddHandler php5-script .php my site is coming up blank when i go to the website address. Nothing seems to be coming up at all. Can some one pls help!! Quote
kunal247 Posted May 21, 2008 Posted May 21, 2008 Hi,I have just added this contribution and added to the .htaccess a code as requested by my host to switch to PHP5 added to .htaccess: Action php5-script /interpreters/php5-script AddHandler php5-script .php my site is coming up blank when i go to the website address. Nothing seems to be coming up at all. Can some one pls help!! The full .htaccess file reads as: Action php5-script /interpreters/php5-script AddHandler php5-script .php Options +SymlinksIfOwnerMatch RewriteEngine on RewriteBase / RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING} RewriteRule ^(.*)-m-(.*).html$ index.php?manufacturers_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-pi-(.*).html$ popup_image.php?pID=$2&%{QUERY_STRING} RewriteRule ^(.*)-t-(.*).html$ articles.php?tPath=$2&%{QUERY_STRING} RewriteRule ^(.*)-a-(.*).html$ article_info.php?articles_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-pr-(.*).html$ product_reviews.php?products_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-pri-(.*).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-i-(.*).html$ information.php?info_id=$2&%{QUERY_STRING} It has been suggested that Code placed in a .htaccess file does have to be ordered in a particular way, but I'm no expert on that !! Can some one pls help with this! Quote
leveera Posted May 22, 2008 Author Posted May 22, 2008 I have an oscommerce v2.2 rc1 running on a server that only supports SSL with php 5 and registered globals off So I just installed the globals easy contribution, but i still get an error This is the error before the contrib: 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. And this is the error after the installation of the contrib: FATAL ERROR: register_globals is disabled in php.ini, please enable it! Can someone help me get it working? I suggested this contribution is for 2.2MS2 only I have RC1 shop nicely working with register_globals OFF without any modification Sergei Quote
kunal247 Posted May 23, 2008 Posted May 23, 2008 I have an oscommerce v2.2 rc1 running on a server that only supports SSL with php 5 and registered globals off So I just installed the globals easy contribution, but i still get an error This is the error before the contrib: 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. And this is the error after the installation of the contrib: FATAL ERROR: register_globals is disabled in php.ini, please enable it! Can someone help me get it working? Hi Did you get this fixed? I have also installed this contribution 3 times now but still getting the same error msg: FATAL ERROR: register_globals is disabled in php.ini, please enable it! can some one pls help!! Quote
chris1234 Posted May 25, 2008 Posted May 25, 2008 Hi, Unfortunately I did not get it fixed yet leveera, how did you get RC1 to work with globals off, because mine just gives this error when unmodified.. :blink: What kind of operating system does your hosting have? The company where I have things hosted is on a windows OS. Quote
leveera Posted May 26, 2008 Author Posted May 26, 2008 Hi,Unfortunately I did not get it fixed yet leveera, how did you get RC1 to work with globals off, because mine just gives this error when unmodified.. :blink: What kind of operating system does your hosting have? The company where I have things hosted is on a windows OS. I didn't apply this contribution to RC1. For me, It is fine in OFF mode by default. My hoster has Linux 2.6.18-53.1.19.el5 OS Quote
jan64 Posted June 2, 2008 Posted June 2, 2008 Hi, i use oscommerce-2.2ms2-060817. i have installed with my provider the contri. 1: it is now impossible to register as a new customer, it brings you back to the register page again and again. and 2: after you click on the button to pay your order, it ends in a blanco page. anyone the same problem or solution? regards, Jan Quote Dreams can come true, if you help them a littlebit
moddy Posted June 3, 2008 Posted June 3, 2008 Hello, I was forced to implement this MOD on a osCommerce 2.2-MS2 installation, because my hosting migrated from PHP4 to PHP5 ans so the register_globals didn't function anymore. I implemented all the changes securely in all mentioned files (only not the install file, which didn't exist anymore). Everything looks fine in the frond-end, after changing the security settings of configure.php However I'm not able anymore to login to the back-end, with the normally used admin ID and password. Anyone also experienced this problem? Any thoughts about this, how to resolve? A shop without back-end is useless! Thanks in advance, Moddy Quote
jan64 Posted June 3, 2008 Posted June 3, 2008 Hi, i use oscommerce-2.2ms2-060817. i have installed with my provider the contri. 1: it is now impossible to register as a new customer, it brings you back to the register page again and again. and 2: after you click on the button to pay your order, it ends in a blanco page. anyone the same problem or solution? regards, Jan We have found the solution to problem one: Contribution "human confirmation_V1.2" was the problem. Something to do with a security loop. Disabled this contri and the customers can register again. The second problem was a few lines of code ( i thought i wrote it myself, but i'm not sure) that send email to the admin, in case of not returning after paying with paypal and ideal. Disabled this function and the customers can pay. this works for me, maybe for somebody to. regards, Jan Quote Dreams can come true, if you help them a littlebit
ChronicLogic Posted June 3, 2008 Posted June 3, 2008 I have a similar problem as Moddy, the admin section not working at all. It just comes up as a blank page. The rest of the cart seems to be working. I also did not have the install folder to make any changes in. Any ideas? Thanks! Quote
kunal247 Posted June 4, 2008 Posted June 4, 2008 I have a similar problem as Moddy, the admin section not working at all. It just comes up as a blank page. The rest of the cart seems to be working. I also did not have the install folder to make any changes in. Any ideas? Thanks! I too am having the same problem on my site when i switch to PHP5. is there a fix for this out there? can anyone help!! Quote
digibiz08 Posted June 4, 2008 Posted June 4, 2008 Hi, I bought an oscommerce template and installed to my website. After installation, I received the error like FATAL ERROR: register_globals is disabled in php.ini, please enable it! So, i configure it using and following the the contributions i downloaded from here. It is okay, then i clicked my domain address and i was redirected to oscommerce install page with 2 options in there like INSTALL or UPGRADE. So I chooses INSTALL and checked both "Import Catalog Database" and "Automatic Configuration" and CONTINUE. But as I clicked continue, it just stays on that page (STEP 2), it never continues to the next step? i dont know why? It stays in step 2 , i cannot continue my installation, could you please advise me what to do next please? It stays here http://www.example.com/install/install.php?step=2 and stopped And also if I typed http://www.example.com/admin/, This error message appears Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'mysql'@'localhost' (using password: NO) in /home/xxxxxxx/public_html/admin/includes/functions/database.php on line 19 Unable to connect to database server! Please advise. Thank you Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.