VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Quality & Testing VirtueMart 1.1.x => Virtuemart 1.1 Development (Archiv) => Q&T Resolved => Topic started by: Ronal on January 24, 2008, 23:20:49 PM

Title: [FIXED] Errors on Joomla 1.5.0
Post by: Ronal on January 24, 2008, 23:20:49 PM
Use
- Joomla 1.5.0 download from http://joomla.org/
- com_virtuemart_1.1.0_nightly (24.01.08)

When I start installation get:
QuoteNotice: Undefined variable: option in z:\home\mysite.com\www\administrator\components\com_virtuemart\install.virtuemart.php on line 42
Then enter to the admin panel of VM and get some errors:
QuoteUpdate Log
Invalid checksum for file "the var PHP_SELF from chars like " or ' $_SERVER['PHP_SELF'] = htmlspecialchars( $_SERVER['PHP_SEL" : 39541 calculated, 0 expectedSomething went wrong with Unpacking the Archive Files
The Sample Data was installed successfully.

Warning: mysql_real_escape_string() expects parameter 2 to be resource, integer given in z:\home\mysite.com\www\libraries\joomla\database\database\mysql.php on line 193

Notice: Use of undefined constant VM_LOGFILE_ENABLED - assumed 'VM_LOGFILE_ENABLED' in z:\home\mysite.com\www\administrator\components\com_virtuemart\classes\Log\LogInit.php on line 117
[Денвер: показать возможную причину ошибки]
Notice: Use of undefined constant VM_DEBUG_IP_ENABLED - assumed 'VM_DEBUG_IP_ENABLED' in z:\home\mysite.com\www\administrator\components\com_virtuemart\classes\Log\display.php on line 119

Notice: Only variables should be assigned by reference in z:\home\mysite.com\www\components\com_virtuemart\virtuemart_parser.php on line 144
QuoteNotice: Undefined variable: VMVERSION in z:\home\mysite.com\www\administrator\components\com_virtuemart\header.php on line 571

Notice: Undefined variable: VMVERSION in z:\home\mysite.com\www\administrator\components\com_virtuemart\header.php on line 571

Notice: Undefined variable: VMVERSION in z:\home\mysite.com\www\administrator\components\com_virtuemart\header.php on line 571
QuoteWarning: mysql_real_escape_string() expects parameter 2 to be resource, integer given in z:\home\mysite.com\www\libraries\joomla\database\database\mysql.php on line 193

Notice: Use of undefined constant VM_LOGFILE_ENABLED - assumed 'VM_LOGFILE_ENABLED' in z:\home\mysite.com\www\administrator\components\com_virtuemart\classes\Log\LogInit.php on line 117
[Денвер: показать возможную причину ошибки]
Notice: Use of undefined constant VM_DEBUG_IP_ENABLED - assumed 'VM_DEBUG_IP_ENABLED' in z:\home\mysite.com\www\administrator\components\com_virtuemart\classes\Log\display.php on line 119

Notice: Only variables should be assigned by reference in z:\home\mysite.com\www\components\com_virtuemart\virtuemart_parser.php on line 144
Where are problems ?
Title: Re: Errors on Joomla 1.5.0
Post by: jenkinhill on January 25, 2008, 00:15:44 AM
Try installing Rev. 1185

http://forum.virtuemart.net/index.php?topic=31381.0
Title: Re: Errors on Joomla 1.5.0
Post by: mtk on January 25, 2008, 01:06:54 AM
Freshly installed 1186.

I can confirm this error:

Notice: Undefined variable: VMVERSION in ...\administrator\components\com_virtuemart\header.php on line 571
Title: Re: Errors on Joomla 1.5.0
Post by: mtk on January 25, 2008, 01:10:35 AM
OK, I'll refine my statement.

when entering the admin for the first time after installation (I did with sample data - in case relevant) - we get this warning.

after any move (click or even switch views), the warning is gone...


So I guess, the problem comes from the version.php file (strange way to instantiate the class)
Title: Re: Errors on Joomla 1.5.0
Post by: gregdev on January 25, 2008, 08:26:50 AM
Yes, I see it now. I missed the other $VMVERSION error. It was lower down on the screen. I'll look at it tomorrow (unless someone else gets it first).

Greg
Title: Re: Errors on Joomla 1.5.0
Post by: Ronal on January 25, 2008, 10:55:26 AM
I down the latest version from http://forum.virtuemart.net/index.php?topic=31381.0
Install process was successful, but when I click "Install SAMPLE DATA >>" get some errors:
QuoteWarning: mysql_real_escape_string() expects parameter 2 to be resource, integer given in z:\home\mera.by\www\libraries\joomla\database\database\mysql.php on line 193

Notice: Only variables should be assigned by reference in z:\home\mera.by\www\components\com_virtuemart\virtuemart_parser.php on line 144
Title: Re: Errors on Joomla 1.5.0
Post by: mtk on January 25, 2008, 11:23:21 AM
You first warning has nothing to do here...
Do a simple forum search...
Title: Re: Errors on Joomla 1.5.0
Post by: Ronal on January 25, 2008, 12:40:07 PM
I install PHP5 and all errors have disappeared.
Thanks developers for your work!

ps: Whether errors for PHP4 will be corrected??
Title: Re: Errors on Joomla 1.5.0
Post by: gregdev on January 25, 2008, 19:48:42 PM
The $VMVERSION error should be fixed in SVN rev. 1187.

Greg
Title: Re: Errors on Joomla 1.5.0
Post by: gregdev on January 25, 2008, 19:51:30 PM
QuoteNotice: Only variables should be assigned by reference in z:\home\mera.by\www\components\com_virtuemart\virtuemart_parser.php on line 144

This notice is cleaned up too in rev. 1187. Please test other areas of the store to ensure this particular fix didn't break anything else.

Greg
Title: Re: Errors on Joomla 1.5.0
Post by: aravot on January 26, 2008, 03:59:46 AM
Everyone could you please try rev 1189 to see if it is fixed, see my signature for download link.
Title: Re: Errors on Joomla 1.5.0
Post by: Ronal on January 26, 2008, 10:07:51 AM
Thanks for your support, now I shall start to test and I shall inform result.
Title: Re: Errors on Joomla 1.5.0
Post by: masih on January 26, 2008, 10:22:24 AM
ERROR

i downlad the last version : 1.1.0 beta3

i create a storeadmin account . but .
when i login in site and click on ADMIN in virtuemart module .i redirect to :
http://127.0.0.1:8080/?page=store.index&pshop_mode=admin&option=com_virtuemart&Itemid=1
but my site is in http://127.0.0.1:8080/joomla/

i think it is an error in localhost server

can you fix it ? please ?

thanks for new version of this component .
Title: Re: Errors on Joomla 1.5.0
Post by: aravot on January 26, 2008, 10:29:09 AM
masih, please don't hijack the thread your issue is different, try installing on a remote server, see if the problem persists
Title: Re: Errors on Joomla 1.5.0
Post by: mtk on January 26, 2008, 11:24:50 AM
I can confirm that the $VMVERSION warning is gone...
Title: Re: Errors on Joomla 1.5.0
Post by: Ronal on January 26, 2008, 11:33:34 AM
Has installed latest version and has received in the admin panel
QuoteWarning: mysql_real_escape_string() expects parameter 2 to be resource, integer given in z:\home\mera.by\www\libraries\joomla\database\database\mysql.php on line 193
The given message appears constantly at surfing in the administrator of the panel

ps: Apache/1.3.33 (Win32) PHP/4.4.4
Title: Re: Errors on Joomla 1.5.0
Post by: mtk on January 26, 2008, 11:40:21 AM
This was already posted in this topic, which is not relevant... (simple search)
http://forum.virtuemart.net/index.php?topic=35393.0#quickreply
Title: Re: Errors on Joomla 1.5.0
Post by: aravot on January 26, 2008, 20:48:37 PM
Fixed in build 1192