Query string preservation throws a PHP notice for arrays
-
I’m getting a notice in debug mode when I try to use arrays in my query string arguments, e.g.
?cat[]=1&cat[]=2:Notice: Array to string conversion in /home/public_html/wp-content/plugins/quick-pagepost-redirect-plugin/page_post_redirect_plugin.php on line 1347This is in the query-string preservation section of the code: the $_GET variable properly converts it to a PHP array as expected, but the code that follows (line 1347) isn’t prepared to handle arrays so it chokes when you try to recreate the query string.
I’m working on a fix for this right now which (if successful) I’ll post shortly – but just wanted to bring this to your attention.
https://wordpress.org/plugins/quick-pagepost-redirect-plugin/
The topic ‘Query string preservation throws a PHP notice for arrays’ is closed to new replies.