VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: tobe on June 20, 2014, 22:08:53 PM

Title: error_log when creating a user
Post by: tobe on June 20, 2014, 22:08:53 PM
Hello, fresh install of VirtueMart2.6.6_Joomla_2.5.20-Stable-Full_Package.zip, installed sample data, add product ot cart, and user registered to order a product, error_log generated:

[20-Jun-2014 22:02:54 Europe/Madrid] PHP Notice:  Undefined property: VirtuemartViewUser::$orderDetails in /home/arquitai/public_html/tienda/components/com_virtuemart/helpers/shopfunctionsf.php on line 353
[20-Jun-2014 22:02:54 Europe/Madrid] PHP Notice:  Trying to get property of non-object in /home/arquitai/public_html/tienda/components/com_virtuemart/helpers/shopfunctionsf.php on line 353
[20-Jun-2014 22:02:54 Europe/Madrid] PHP Notice:  Undefined property: VirtuemartViewUser::$orderDetails in /home/arquitai/public_html/tienda/components/com_virtuemart/helpers/shopfunctionsf.php on line 354
[20-Jun-2014 22:02:54 Europe/Madrid] PHP Notice:  Trying to get property of non-object in /home/arquitai/public_html/tienda/components/com_virtuemart/helpers/shopfunctionsf.php on line 354
[20-Jun-2014 22:02:54 Europe/Madrid] PHP Notice:  Undefined property: VirtuemartViewUser::$orderDetails in /home/arquitai/public_html/tienda/components/com_virtuemart/helpers/shopfunctionsf.php on line 354
[20-Jun-2014 22:02:54 Europe/Madrid] PHP Notice:  Trying to get property of non-object in /home/arquitai/public_html/tienda/components/com_virtuemart/helpers/shopfunctionsf.php on line 354

It doesn't happen in version 2.6.0, it happens in version 2.6.4 and 2.6.6 . Please fix it . Thanks
Title: Re: error_log when creating a user
Post by: jenkinhill on June 20, 2014, 23:15:00 PM
To turn off PHP notices. http://forum.virtuemart.net/index.php?topic=102555.0
Title: Re: error_log when creating a user
Post by: Milbo on June 21, 2014, 02:46:46 AM
The lines mentioned in the notices

$replyTo[0] = $view->orderDetails['details']['BT']->email;
$replyTo[1] = $view->orderDetails['details']['BT']->first_name.' '.$view->orderDetails['details']['BT']->last_name;


This is really strange.
Title: Re: error_log when creating a user
Post by: tobe on June 21, 2014, 13:03:52 PM
Quote from: Milbo on June 21, 2014, 02:46:46 AM
The lines mentioned in the notices

$replyTo[0] = $view->orderDetails['details']['BT']->email;
$replyTo[1] = $view->orderDetails['details']['BT']->first_name.' '.$view->orderDetails['details']['BT']->last_name;


This is really strange.

Hosting company told me they couldn't turn off error_log, guess it is a shared server, and to not be lazy and try to fix it, so error would not acumulate with time. And if i install other extension i wouldn't see if it generates more errors, so not the best solution to stay error-blind..
Title: Re: error_log when creating a user
Post by: Milbo on June 22, 2014, 15:08:55 PM
I just did the same and checked my error log, no report.
Title: Re: error_log when creating a user
Post by: Milbo on June 22, 2014, 17:57:20 PM
What are your email settings?
Title: Re: error_log when creating a user
Post by: tobe on June 23, 2014, 00:14:25 AM
hello:

mailer: php mail
from email: xxxx@xxx.com
from name: prueba
sendmail path: /usr/sbin/sendmail
smtp authentication: yes
smtp security: no
smtp port: 25
smtp username: xxxx
smtp password: xxxxxxx
smtp server: smtp.xxxx.com

What are yours?

i also have this error when  a user is created:
[23-Jun-2014 00:06:23 Europe/Berlin] PHP Warning:  is_readable() [<a href='function.is-readable'>function.is-readable</a>]: open_basedir restriction in effect. File(/dev/urandom) is not within the allowed path(s): (/home2/architon:/usr/lib/php:/usr/local/lib/php:/tmp) in /home2/architon/public_html/libraries/phpass/PasswordHash.php on line 51

I have had to go back to 2.0.26 to not have more errors when a user is created in virtuemart.
Title: Re: error_log when creating a user
Post by: Milbo on June 23, 2014, 09:37:35 AM
and your other email settings? I just wonder maybe I just do not sent emails if a user registers.
Title: Re: error_log when creating a user
Post by: tobe on June 23, 2014, 16:13:40 PM
hello,  what other mails settings? where do i find them? thanks
Title: Re: error_log when creating a user
Post by: Milbo on June 23, 2014, 20:17:08 PM
sent email for registration, the joomla settings. and the vm settings.
Title: Re: error_log when creating a user
Post by: tobe on June 24, 2014, 21:13:30 PM
I will prefer to give you login data in a test subdomain when i need to upgrade to 2.6.0 . Thanks.