-
Notifications
You must be signed in to change notification settings - Fork 124
Fatal error: Uncaught exception 'EpiTwitterException' #203
Comments
I'm in the same exact boat. Please help. Did you figure this out? |
Are you using a try-catch statement when trying to post a tweet? The first issue here is that the error says "Uncaught Exception" - so it must be caught first. What is the value of $exception->getMessage() when this exception is caught? |
I'm simply running the shoutcast_v1.php file (after updating it of course w. shoutcast info and tokens) found here: https://github.com/dlnetworks/twittercast/ . We're trying to implement twittercast. honestly, I'm not well versed in PHP. I'm assuming I need a debugger to answer your question. |
Indeed this other project is missing try-catch statements (http://php.net/manual/en/language.exceptions.php) so this causes the exception error to generate another PHP Fatal Error. A simple statement around the last line would possibly fix it: try {
$twitterObj->post(....copy...);
} catch(Exception $e) {
echo $e->getMessage();
} |
Unfortunately, It doesn't fix it. All I get is a blank screen (which may be expected) but no twitter update. I'm using Godaddy's shared hosting. I'm contact them b/c I can't seem to find the error log for my site. |
Ok. So, there is no error log available for me to peruse b/c I'm using a Plexus server instead of a Linux server. Godaddy did go ahead and update the web.config file. Now, if I don't implement your suggestion I get the original error. If I do implement your suggestion I get the following: {"errors":[{"code":170,"message":"Missing required parameter: status."}]} |
So this makes the problem evident, right? You are supposed to give a parameter "status" but did not. |
You'll want to make sure you wrap every call in a try/catch block. See the docs here about how this library throws exceptions. |
Receiving this error from last week:
Fatal error: Uncaught exception 'EpiTwitterException' in EpiTwitter.php:245
Stack trace: #0 EpiTwitter.php(197): EpiTwitterException::raise(Object(EpiCurlManager), false) #1
EpiTwitterJson->__get('response') #2 EpiTwitter.php(41): EpiTwitter->request('POST', '/statuses/updat...', Array) #3 simpleTest.php(13): EpiTwitter->post('/statuses/updat...', Array) #4 {main} thrown in EpiTwitter.php on line 245
Please Help
The text was updated successfully, but these errors were encountered: