Warning sql message

Jorge Campo - January 6, 2009 - 09:59
Project:Plugin Manager
Version:6.x-1.7
Component:Miscellaneous
Category:bug report
Priority:normal
Assigned:Unassigned
Status:postponed (maintainer needs more info)
Description

Every time I upgrade a module or install a new theme or module I get this message:

warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /home/MYWEBPAGE/public_html/includes/database.mysql.inc on line 321.

if I install more than one module I get the message as many times as modules or themes I install.

Other than that, the modules or themes seem to be installed properly and the message stating so is presented with the above.

Thanks in advance for your help.

#1

JoshuaRogers - January 8, 2009 - 14:11
Category:support request» bug report
Status:active» postponed (maintainer needs more info)

Does this happen on any other page of your site(s)?

#2

Jorge Campo - January 8, 2009 - 17:10

Hi Joshua,

No, it does not happen with other pages (unless I have not seeing it yet).

Only with plugin manager after installing or updating modules or themes.

#3

Jorge Campo - January 18, 2009 - 11:13
Status:postponed (maintainer needs more info)» active

I installed the newest version and I still get this message (recently it was with a theme update).

I am changing the status to only "active".

#4

JoshuaRogers - January 25, 2009 - 08:34

Does it appear all the way through the install process? Which pages of the plugin manager does it show up on and which does it not appear on?

#5

Jorge Campo - January 25, 2009 - 09:50

No, only in one page: The one after installing by ftp and the password (the outcome).

If there are more than one update or module installation it outcomes the error as many times as updates or new modules are installed.

Example:

Install

  • A drupal install was automatically located on ftp at public_html/sites/all/modules.
  • Successfully installed barcode.View README.txt

warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /home/autismoa/public_html/includes/database.mysql.inc on line 321.

Note: the more items you select, the longer the installation will take, potentially causing it to time out.

Now you're done. Unless it is stated otherwise above, your modules and/or themes should be properly installed now. So what should you do now?

If you installed new modules, you can enable them here.

If you installed new themes, you can select them here.

#6

Dave Reid - February 7, 2009 - 19:47
Status:active» postponed (maintainer needs more info)

Are you still having this problem on the latest version of plugin manager (6.x-1.9)?

#7

Jorge Campo - February 13, 2009 - 18:09

Hi Dave,

yes I do still get that message every time I do the procedure.

Thanks.

#8

Jorge Campo - May 31, 2009 - 06:31

Still getting the same message.
I cannot replicate this issue in other drupal installations.

#9

Jorge Campo - September 20, 2009 - 12:17

I do not know how but the message dissapeared.

Currently I have a new one very similar stating:

warning: preg_match() expects parameter 2 to be string, array given in /home2/MY_WEB/public_html/includes/bootstrap.inc on line 777.

#10

travis.hill - October 20, 2009 - 19:19

I'm getting the same message, only AFTER installing via ftp.

It should be noted that installations are successful.

#11

tiato - October 31, 2009 - 18:47

I am getting this message with Plugin Manager 1.10 when using the same process. I provide FTP login credentials and Continue to step 2 and I see a white screen with:

Fatal error: Maximum execution time of 30 seconds exceeded in /home/www/public_html/includes/module.inc on line 449

If I refresh I will see a message with some plugins installed successfully but even if they are installed they do not clear from the list so my list just get's larger everytime I try to update. Anyway to manually clear the modules to install?

#12

tiato - November 3, 2009 - 21:46

Problem Solved! Uninstalled Plugin Manager and are now manually updating our modules!

Thanks for all the help developer, this works great!

#13

JoshuaRogers - November 4, 2009 - 02:41

Hmm... Nice sarcasm. It in no way gives me enough information to help you, but it was still amusing.

I do not have this issue on my test setup. I have not been able to produce this issue. Without a list of steps telling me how to reproduce the error, I will never have enough information to be able to fix it.

I really would love to fix this issue. Without more information though, I'm afraid that this is not possible.

Thanks tiato! ;)

#14

tiato - November 9, 2009 - 19:16

To be honest I think maybe there was an initial timeout that caused the install queue to "stick" - for lack of a better term. More updates just increased the list instead of decreased. Where is the install queue stored on the DB? I can provide the table view for you to see if there's any irregularities or if there's a manual way to clear the install queue without breaking the plugin manager I can see if the issue disappears when the install queue is cleared.

As to steps I simply try and update via FTP, I provide my credentials and go to Next Step. After a couple seconds I see this error. It is worth noting however that some of the modules are successfully update but the number seems to vary between 5 - 8 modules.

I am not trying to update that many modules, but it keeps trying to install the "stuck" modules from the install queue, even if successful.

Glad you enjoyed the humor but I am willing to debug for you to see if I can help you replicate or isolate the issue. Let me know what you need I'm very comfortable with Drupal. :)

 
 

Drupal is a registered trademark of Dries Buytaert.