News:

Looking for documentation? Take a look on our wiki

Main Menu

Strange J!1.5 Warning

Started by mtk, January 14, 2008, 12:53:05 PM

Previous topic - Next topic

mtk

I'm having a strange J!1.5 warning, which I only have with an online installation.
(I have uploaded my offline, XAMPP, files & DB)

The warning appears only when I'm in option=com_virtuemart (both legacy ON or OFF)
[cdoe]
Warning: mysql_real_escape_string() expects parameter 2 to be resource, integer given in .../libraries/joomla/database/database/mysql.php on line 193


mtk

#1
Sorry, here are my details:


Database Version:    5.0.37-standard
Database Collation: utf8_general_ci
PHP Version: 4.4.7
Web Server: Apache/1.3.39 (Unix) mod_ssl/2.8.30 OpenSSL/0.9.8b PHP/4.4.7 mod_perl/1.29 FrontPage/5.0.2.2510

Joomla: Latest SVN
VM: Nightly Build 1157

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum


mtk

I've echoed the input for the 'getEscapde' function on line 191:
function getEscaped( $text, $extra = false )
Text = 0
Resource = 62
the number 62 is obviously not an object... :)

The question is, who & when calls this function, so I could back-trace it some more...




aravot

Need to make sure  ;)

I couldn't replicate, like jenkinhill said it could be php4 issue which I don't have, hopefully someone with php4 can verify this.




greyroo

I have the same error displayed at the top of the admin pages. Any Ideas

Warning: mysql_real_escape_string() expects parameter 2 to be resource, integer given in /home/hsphere/local/home/inov8/inov8design.info/libraries/joomla/database/database/mysql.php on line 190

 
PHP 4.4.7
Database 4.0.27
Joomla 1.5RC4
VM 1.1 Nightly Build Complete Package (downloaded 17/1/2008)
web server Apache/1.3.37 (Unix) mod_ssl/2.8.28 OpenSSL/0.9.7c FrontPage/5.0.2.2635 PHP/4.4.7 mod_throttle/3.1.2


Cheers
Allan

Michael Thomsen

#13
Update: just tried today's build: VirtueMart 1.1 Nightly Build [20080121]. Now getting the following warning:
Warning: zip_entry_read() [function.zip-entry-read]: The bytes parameter must greater then zero in /home2/anchorh/public_html/solarenergydirectnew/libraries/joomla/filesystem/archive/zip.php on line 239

same problem here with:
VirtueMart 1.1 Nightly Build [20080119].
joomla 1.5  RC4
Php 5.2.1
MySQL version     5.0.27-standard
Apache version     1.3.37 (Unix)

cheers
Michael

aravot

I can not replicate this tried all combinations.

Site Offline /VM online
Site online /VM offline
Site Offline /VM offline