Getting this error: Warning: array_push() expects parameter 1 to be array, null
-
Hi. I am getting this error message: Warning: array_push() expects parameter 1 to be array, null given in /home/angelrun/public_html/wp-content/plugins/thinktwit/thinktwit.php on line 2294
Any suggestions to help would be great! Thank you.
-
I’m also getting this error, plus this other below.
Warning: array_push() expects parameter 1 to be array, null given in /home/XXXX/public_html/wp-content/plugins/thinktwit/thinktwit.php on line 2294
Warning: array_unique() expects parameter 1 to be array, null given in /home/XXXX/public_html/wp-content/plugins/thinktwit/thinktwit.php on line 2297
There have been no recent tweets.Hi both,
This usually happens when some key required data is missing. Please could you turn on debug mode and let me know the output so that I can try to replicate the issue?
Can you also confirm that you have entered your API username and password in Settings? And can you also please check your error_log for issues?
Thanks.
I have entered my API Consumer Key and Secret Key into the Dashboard settings under Settings/ThinkTwit. Also, I added my twitter user name to the widget itself under General Settings, as well as a few hashtags I want to capture if tweeted. I don’t see a place to enter a password.
I turned on debug mode and the result is very long, but appears to be mostly the settings I selected in the widget’s General Settings. I can send a screen capture; it doesn’t seem to be copyable.
I will check the error_log if I can find it.
Thanks!
Hi Echofoxtrot,
Please contact me at http://www.thepicketts.org/contact/ and send me your log info and debug info so that I can help you resolve this issue.
In the meantime please also remove the hashtags so it’s just your Twitter handle and see if there is output. If still no output then please try a Twitter handle which you are 100% sure has had recent tweets and then check again.
Thanks.
Oh hang on, are you getting output or am I confusing myself? Is it just the error you are getting which you are trying to resolve?
I have the same problem:
TweetsWarning: array_push() expects parameter 1 to be array, null given in /home/murviclu/public_html/w/wp-content/plugins/thinktwit/thinktwit.php on line 2294
Warning: array_unique() expects parameter 1 to be array, null given in /home/murviclu/public_html/w/wp-content/plugins/thinktwit/thinktwit.php on line 2297
There have been no recent tweets.Hi all,
I’ve not been able to replicate your issue – if you experience this again please can you look in your code at the referenced line and copy and paste it here please? Alternatively, please contact me at http://www.thepicketts.org/contact/ and I will be happy to do a live debugging session with you on Hangouts or Skype.
Thanks.
This issue has been resolved in the newest version, as kindly confirmed by echofoxtrot. It will be released shortly, just waiting for translation.
Huge thanks to Stephen Pickett for the conscientious attention to the issue and quick responses to my requests! An example for all plugin developers!
This is one totally cool plugin.
The topic ‘Getting this error: Warning: array_push() expects parameter 1 to be array, null’ is closed to new replies.