Post by dsimi » Fri Mar 20, 2009 11:10 pm

Hello,

I have installed opencart in my localhost to check for a site. When I regisiter a new account, Iam getting the following error in anytime. But I refresh the browser the user account is creating.

Notice: Undefined variable: from in C:\xampp\htdocs\open cart\upload\system\library\mail.php on line 122

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\open cart\upload\system\library\mail.php on line 124

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\open cart\upload\system\library\mail.php:122) in C:\xampp\htdocs\open cart\upload\system\engine\controller.php on line 23

Help me to remove the error. Thanks.

Newbie

Posts

Joined
Fri Mar 20, 2009 10:31 pm

Post by fido-x » Sat Mar 21, 2009 12:58 am

Change line 122 in "system/library/mail.php" from:

Code: Select all

ini_set('sendmail_from', $from);
to

Code: Select all

ini_set('sendmail_from', $this->from);

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by Daniel » Sat Mar 21, 2009 6:20 am

Just done anopther release with this fix in and the download fix.

User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by dsimi » Mon Mar 23, 2009 7:25 pm

Thanks to Daniel and fido-x. I downloaded latest version and upload into my server. Afer i installed i got some of the following error

Notice: Undefined index: HTTP_USER_AGENT in /home/shop/public_html/demo/upload/system/library/request.php on line 15

I got approximately 12 lines like above line
defined index: SERVER_PORT, HTTP_ACCEPT_CHARSET , DOCUMENT_ROOT REQUEST_URI etc. How to clear the error. And also got magic quotes gpc and registrar global error when i installed. How to set the registral global and magic quote on/off.

Newbie

Posts

Joined
Fri Mar 20, 2009 10:31 pm

Post by hm2k » Mon Mar 23, 2009 8:58 pm

You'll need to use the $_SERVER version, for example: $_SERVER['HTTP_USER_AGENT'] instead of $HTTP_USER_AGENT.

User avatar
Global Moderator

Posts

Joined
Tue Mar 11, 2008 9:06 am
Location - UK

Post by Daniel » Mon Mar 23, 2009 9:15 pm

What server are you using apache or windows?

User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by dsimi » Mon Mar 23, 2009 9:44 pm

I couldn't find $HTTP_USER_AGENT] . Iam getting the following error.

Notice: Undefined index: PATH in /home/shop/public_html/demo/upload/system/library/request.php on line 15

Warning: Cannot modify header information - headers already sent by (output started at /home/shop/public_html/demo/upload/system/library/request.php:15) in /home/shop/public_html/demo/upload/system/library/language.php on line 49

Warning: Cannot modify header information - headers already sent by (output started at /home/shop/public_html/demo/upload/system/library/request.php:15) in /home/shop/public_html/demo/upload/system/library/currency.php on line 44

Warning: Cannot modify header information - headers already sent by (output started at /home/shop/public_html/demo/upload/system/library/request.php:15) in /home/shop/public_html/demo/upload/system/library/response.php on line 65

Newbie

Posts

Joined
Fri Mar 20, 2009 10:31 pm

Post by dsimi » Mon Mar 23, 2009 9:52 pm

Iam using apache web server.

Newbie

Posts

Joined
Fri Mar 20, 2009 10:31 pm

Post by Daniel » Mon Mar 23, 2009 10:07 pm

there is a quick fix for this which is to turn off registered globals.

I will look into another fix tonight.

Most of thye recent problems have been caused by registered globals.

User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by dsimi » Mon Mar 23, 2009 10:55 pm

I did try to register global off function. I write register_globals = Off in the name php.ini and submit the file into my root cgi-bin. But I got the same error. How do i off the register global function?.

Newbie

Posts

Joined
Fri Mar 20, 2009 10:31 pm

Post by Daniel » Tue Mar 24, 2009 3:06 am

dsimi can you give me access to your server?

Please PM your web address FTP and admin details.

User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by Daniel » Tue Mar 24, 2009 5:19 am

nevermind.

I thinkk I have a 100% working fix. Just testing then I should be able to release tonight.

User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by Daniel » Tue Mar 24, 2009 7:19 pm

have u tried the latest version does it work?

User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by dsimi » Tue Mar 24, 2009 10:53 pm

I couldn't register_globals off function. My server php configuration is just display that "Data Handling - register_globals - You should do your best to write your scripts so that they do not require register_globals to be on; Using form variables as globals can easily lead to possible security problems, if the code is not very well thought of. - On" . Should i contact my hosting provider for that or can i off the function own?.

Newbie

Posts

Joined
Fri Mar 20, 2009 10:31 pm

Post by Daniel » Wed Mar 25, 2009 12:06 am

Tyr the latest version i have uploaded. It should fix all problems with globals.

But yes try to have your host swtich it off for you.

User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by Tanvir » Thu Jul 07, 2011 3:32 pm

Warning: require_once(C:\xampp\htdocs\opencart\upload/system/startup.php) [function.require-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\OpenCart v1.5.0.5\upload\admin\index.php on line 15

Fatal error: require_once() [function.require]: Failed opening required 'C:\xampp\htdocs\opencart\upload/system/startup.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\OpenCart v1.5.0.5\upload\admin\index.php on line 15

pls help me to remove error show .thanks

Newbie

Posts

Joined
Thu Jul 07, 2011 3:28 pm
Who is online

Users browsing this forum: Amazon [Bot] and 17 guests