Plugins causing “rawurlencode() expects parameter 1” error
-
Folks,
I hope someone can give me a pointer that might help with this problem. I am using a couple of plug ins on my site and they are both kicking up the same error.
The first plugin is WP-Email 2.04 found here https://www.lesterchan.net/portfolio/programming.php
my example is here – https://www.bravecreatures.com/blog/index.php/2006/reviews/film-reviews/childhood-memories/email/The second plugin is Flickr Photo Gallery found here https://www.tantannoodles.com/toolkit/photo-album/
my example is here – https://www.bravecreatures.com/blog/index.php/flickralbums/Both are causing the following error across the top of the page:
“Warning: rawurlencode() expects parameter 1 to be string, array given in /home/bravecreatures/blog/wp-includes/classes.php on line 1651”Looking into the classes.php the line in question is
$this->query_string .= $wpvar . '=' . rawurlencode($this->query_vars[$wpvar]);
Which is part of the following function
function build_query_string() {
$this->query_string = '';foreach ($this->public_query_vars as $wpvar) {
if (isset($this->query_vars[$wpvar]) && '' != $this->query_vars[$wpvar]) {
$this->query_string .= (strlen($this->query_string) < 1) ? '' : '&';
$this->query_string .= $wpvar . '=' . rawurlencode($this->query_vars[$wpvar]);
}
}This is beyond my level of programming skill to unravel, and I have spoken to Lester Chan re WP-Email and he is stumped so I hoped someone here might help.
Some things I have tried:
1/ I changed the Theme and the problem still showed up in the Default WP theme
2/ I deactivated all the other plugins and the problem still showed up
3/ The problem doesnt show up in the default, un themed version of the display pages, but once I modify theme to include my theme details (Mallow for reference found here – https://www.somefoolwitha.com/mallow/) the problem occursthe standard includes in the default implimentations (that work) look like this:
<?php
get_header();
?>The themed version that causes the problem looks like this
<?php // get header ?>
<?php include "header.php"; ?>
<?php // get get my custom functions ?>
<?php include "myfunctions.php"; ?>
I included the extra include, well because I cant tell what the problem is
4/ When I remove the vairious theme includes – sidebar, topbar, footer etc, the problem disappears when I remove the include for the header.php
To be honest, the pages still work but there is this annoying strip across the top, but I would really like to fix it if I can.
- The topic ‘Plugins causing “rawurlencode() expects parameter 1” error’ is closed to new replies.