Hi,
Sounds like the cache data is broken. I barely imagined it would occur but you got that. So I rewrote some code that deals with caches.
Please try the development version and let me know if it works or not.
Thread Starter
Rahul
(@rahulrulez)
Hi,
Thank you for such a prompt reply.
I tried installing development version. Cleared Settings as well as Cache..
Now I am getting this error..
Fatal error: Cannot use string offset as an array in /home/r/a/rapidc/www/tst/wp-content/plugins/fetch-tweets/class/FetchTweets_Fetch_.php on line 569
That line is reached when the Twitter API returns an error. I intentionally sent a request to make the Twitter API return an error but I don’t get that PHP error message.
Are you modifying the plugin’s code?
Thread Starter
Rahul
(@rahulrulez)
^ Nope, I am not.. Plugin is intact.. I don’t know what’s wrong 🙁
My consumer key and tokens are correct, I rechecked.
Just before the line that causing the PHP error, there is a conditional statement that checks whether the subject variable is an array and has necessary keys. So I suppose it’s impossible to get that message unless the code is modified.
I added an additional condition to that line to check the type and updated the development version. Please try it.
Thread Starter
Rahul
(@rahulrulez)
I am not editing the plugin. I tried the new development version. It returned me the same error..
Fatal error: Cannot use string offset as an array in /home/r/a/rapidc/www/tst/wp-content/plugins/fetch-tweets/class/FetchTweets_Fetch_.php on line 573
Isn’t it line 574?
Can you post the entire output including the error table elements? It may have a table row indicating Variables in local scope (#1) etc. The snapshot would be helpful.
Thread Starter
Rahul
(@rahulrulez)
Nope.. I get only this error..
Fatal error: Cannot use string offset as an array in /home/r/a/rapidc/www/tst/wp-content/plugins/fetch-tweets/class/FetchTweets_Fetch_.php on line 573
Nothing else..
Screenshot here : http://i.imgur.com/Hwdopdr.png
Okay, that indicates you got the result as non-array.
What I can think of now is that it could be due to some other plugins or themes are using the same Twitter library with the same name.
I renamed the library name and updated the development version. Please try it again and let me know what happens then.
[Edit] When I posted this, some files were not updated. They were fixed by now.
Thread Starter
Rahul
(@rahulrulez)
New error pops now
Fatal error: Unsupported operand types in /home/r/a/rapidc/www/tst/wp-content/plugins/fetch-tweets/class/FetchTweets_Fetch_.php on line 344
Don’t know what’s wrong! 🙁
Thread Starter
Rahul
(@rahulrulez)
Fixed it.. Some other plugin was conflicting names i believe
Glad that it was fixed.
Which plugin was it by the way? I maybe able to make it fixed even when the other plugin is activated.