Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




error on saving a post

UserPost

4:00 am
December 2, 2010


dave41

New Member

posts 1

1

I am getting the following error when someone apart from the administrator attempts to safe a draft on my site:

Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /content/Hosting/i/r/xxxxxx/web/home/wp-includes/wp-db.php on line 785

Warning: Cannot modify header information - headers already sent by (output started at /content/Hosting/i/r/irishenergynews.com/web/home/wp-includes/wp-db.php:785) in /content/Hosting/i/r/xxxxxxxx/web/home/wp-includes/classes.php on line 1601

I have not changed any settings in role scoper and have the newest version.

Maybe it is a conflict with another plugin?

8:31 am
December 2, 2010


Kevin

Admin

posts 2503

2

What WP version are you running?

Can you generate some diagnostic info for me?

1. Add the following line to wp-config.php, before the "stop editing" line:

define( 'RS_DEBUG', true );

2. Add the following code to function _real_escape in wp-includes/wp-db.php:

add:

if ( is_array( $string ) ) {
   if ( function_exists( 'agp_bt_die' ) )
      agp_bt_die();	
}

right after:

function _real_escape( $string ) {

 
3. Let me know:

  • The contents of the array passed into _real_escape
  • The class/file and function/line responsible for each call in the stack

About the Agapetry forum

Currently Online:

16 Guests

Maximum Online: 150

Forums:

Groups: 2

Forums: 7

Topics: 1246

Posts: 5654

Members:

There are 1257 members

There are 1 guests


Kevin has made 2503 posts

Top Posters:

metal450 - 178

Ragnar - 108

YikYak - 70

whiteorb - 49

Daisy - 35

Administrator: Kevin | Moderators: Kevin