google-code-export / wordpress-web-service

Automatically exported from code.google.com/p/wordpress-web-service
2 stars 1 forks source link

strlen() expects parameter 1 to be string #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Just installed plugin
2. Click on Homepage
3. ERROR: Warning: strlen() expects parameter 1 to be string, array given in 
/data/web/virtuals/35111/virtual/www/domains/cestujlevne.com/wp-content/plugins/
wordpress-web-service/wordpress-web-service.php on line 61

Its displayed after the WP header - error text and after that is original 
webpage.

What version of the product are you using? On what operating system?
0.0.2.2.

Original issue reported on code.google.com by eiselt....@gmail.com on 31 May 2013 at 3:23

GoogleCodeExporter commented 9 years ago

Original comment by 0x1010...@gmail.com on 21 Jun 2013 at 1:45

GoogleCodeExporter commented 9 years ago
I am facing the same issue.. Awaiting a response. 

Version 0.2.1

Original comment by utpal.n....@gmail.com on 17 Jul 2013 at 6:29

GoogleCodeExporter commented 9 years ago
Did anyone figure this out?  I am having the same problem.

Original comment by BenRossM...@gmail.com on 13 Aug 2013 at 5:04

GoogleCodeExporter commented 9 years ago
This fix work for me, 

Code:
if(strlen($val) >= 5 && substr($val, 0, 5) == "/wpws") {

Fix:
if(!is_array($val) && strlen($val) >= 5 && substr($val, 0, 5) == "/wpws") {

i hope it help

Original comment by rodrigo....@gmail.com on 4 Sep 2013 at 12:18

GoogleCodeExporter commented 9 years ago

Original comment by 0x1010...@gmail.com on 24 Oct 2013 at 4:25