• Resolved amylavonne

    (@amylavonne)


    New error today pasted below. I can consistently make it happen when I use the Admin Columns plugin to edit columns for Pages posttype. The error appears when I save my new settings in Admin Columns. I do NOT get the error when I edit columns for Posts posttype.

    The error is new, it wasn’t happening yesterday. I have had Postman installed for weeks without issue. Same for MemberMouse. I didn’t add any new plugins in the last 24 hours.

    parameter 1 to be string, array given in /home1/litigau1/public_html/litigationsupportgurublueprint/wp-content/plugins/postman-smtp/Postman/PostmanUtils.php on line 67

    Warning: substr() expects parameter 1 to be string, array given in /home1/litigau1/public_html/litigationsupportgurublueprint/wp-content/plugins/postman-smtp/Postman/PostmanUtils.php on line 67

    Warning: Cannot modify header information – headers already sent by (output started at /home1/litigau1/public_html/litigationsupportgurublueprint/wp-content/plugins/postman-smtp/Postman/PostmanUtils.php:67) in /home1/litigau1/public_html/litigationsupportgurublueprint/wp-content/plugins/membermouse/includes/init.php(234) : eval()’d code on line 107

    Warning: Cannot modify header information – headers already sent by (output started at /home1/litigau1/public_html/litigationsupportgurublueprint/wp-content/plugins/postman-smtp/Postman/PostmanUtils.php:67) in /home1/litigau1/public_html/litigationsupportgurublueprint/wp-content/plugins/membermouse/includes/init.php(234) : eval()’d code on line 107

    Warning: substr() expects parameter 1 to be string, array given in /home1/litigau1/public_html/litigationsupportgurublueprint/wp-content/plugins/postman-smtp/Postman/PostmanUtils.php on line 67

    https://www.ads-software.com/plugins/postman-smtp/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jason Hendriks

    (@jasonhendriks)

    PostmanUtils.php on line 67 parses the global $_REQUEST variable to retrieve the current page name. Normally the variable returned is a String.

    substr ( $_REQUEST ['page'], 0, strlen ( 'postman' ) )

    From your output, it appears that the Admin Columns plugin is modifying the $_REQUEST[‘page’] variable to be an Array instead of a String, hence the warning (this is only a warning, not an error).

    I’ll install the plugin and see if I can come up with an alternate method of querying the current page that is compatible with Admin Columns.

    Thread Starter amylavonne

    (@amylavonne)

    Thanks so much for the quick reply. A warning sounds better than an error. Ha! Since so many people use Admin Columns, it will help to come up with a fix if you can. Thanks!

    Plugin Author Jason Hendriks

    (@jasonhendriks)

    The Admin Columns plugin is modifying the WordPress special variable ‘page’. They shouldn’t do that. Postman expects it to be there.

    Bug the author to get it fixed.

    Cheers!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error at PostmanUtils.php line 67’ is closed to new replies.