AJAX Scroller: php error when creating Twitter feed
- Healthdox
- Topic Author
- Offline
- New Member
Less
More
- Thank you received: 0
12 years 4 months ago #6670
by Healthdox
Hi everyone,
Running into a weird issue with AJAX Scroller. When I create a Twitter feed it seems to run fine for a few minutes. Then all of a sudden it breaks the entire page and gives me this error (replaced my url/file name with 'example'):
Warning: simplexml_load_file(Invalid consumer key/secret in configuration) [function.simplexml-load-file]: failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request in /home/example/public_html/modules/mod_ajaxscroller/helpers/twitter.php on line 153
Fatal error: Call to a member function asXML() on a non-object in /home/example/public_html/modules/mod_ajaxscroller/helpers/twitter.php on line 154
I should also point out that "[function.simplexml-load-file]" is a link that comes up as www.example.com/function.simplexml-load-file when I click on it, but gives me a 404 error that looks like this:
Not Found
The requested URL /function.simplexml-load-file was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I looked at the lines referenced and compared them with the original .zip file I saved locally, and they are identical so I'm not exactly sure what is causing the issue. I tried the uninstall/reinstall with no luck. I also tried changing the number of tweets for it to pull from 20 to 10 since there are only 11 on our account so far, but that didn't help either.
I know minimal to no php so I'm sure it's a simple issue to solve, any help will be greatly appreciated!
Running into a weird issue with AJAX Scroller. When I create a Twitter feed it seems to run fine for a few minutes. Then all of a sudden it breaks the entire page and gives me this error (replaced my url/file name with 'example'):
Warning: simplexml_load_file(Invalid consumer key/secret in configuration) [function.simplexml-load-file]: failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request in /home/example/public_html/modules/mod_ajaxscroller/helpers/twitter.php on line 153
Fatal error: Call to a member function asXML() on a non-object in /home/example/public_html/modules/mod_ajaxscroller/helpers/twitter.php on line 154
I should also point out that "[function.simplexml-load-file]" is a link that comes up as www.example.com/function.simplexml-load-file when I click on it, but gives me a 404 error that looks like this:
Not Found
The requested URL /function.simplexml-load-file was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I looked at the lines referenced and compared them with the original .zip file I saved locally, and they are identical so I'm not exactly sure what is causing the issue. I tried the uninstall/reinstall with no luck. I also tried changing the number of tweets for it to pull from 20 to 10 since there are only 11 on our account so far, but that didn't help either.
I know minimal to no php so I'm sure it's a simple issue to solve, any help will be greatly appreciated!
Please Log in or Create an account to join the conversation.
- Saka
- Offline
- Administrator
12 years 4 months ago #6671
by Saka
Emir Sakic
www.sakic.net
When using with Twitter you MUST use caching of minimally 60 seconds. Twitter has limited amount of requests allowed and if you cross that they temporarily ban your site.
If you have set caching and still get the error then maybe the Joomla caching is not working correctly, check your cache path in global configurations.
If you have set caching and still get the error then maybe the Joomla caching is not working correctly, check your cache path in global configurations.
Emir Sakic
www.sakic.net
Please Log in or Create an account to join the conversation.