-
Notifications
You must be signed in to change notification settings - Fork 799
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Post Status with media #246
Comments
Thank you for respond. I copied uploading media code and now i get this error "Fatal error: Using $this when not in object context in /home/..."
|
I'd recommend googling errors like "Fatal error: Using $this when not in object context". It means you haven't put them in an object, so $this doesn't refer to anything. You can't just copy and paste code and expect it to work... |
Closing this as no response and it doesn't seem directly related to the library but more to PHP instead. If this is not the case, please feel free to re-open / create a new issue. |
@J7mbo I need help please. I get the same error.
|
@koese66 Can you please print the error that you get? Also, can you verify that you have looked at the tests from here: #246 (comment), ensured you are doing the same thing? Because the tests pass and they prove that what you are trying to do works. |
@J7mbo I try it just now but I dont use PHPUnit_Framework_TestCase - am I wrong? |
You don't need PHPUnit_Framework_TestCase, that's there because this is an automated test. So you don't need: Instead of |
@J7mbo Ok so far what is with this: |
If you need help with writing PHP in general, please post a question on StackOverflow as this is just for library problems. :-) |
@J7mbo Hey where can I post my own code? My script posted a status but without the image. I need help :) thx for your help ;) |
Who can help me? |
@koese66 If you open a new ticket I'll do my best - the original issue author is likely to be receiving emails because you are commenting on his ticket. |
Ok I will do it, thx. |
Hello
I am trying to post tweet with media id but this code can post tweet without media. Could you help me?
The text was updated successfully, but these errors were encountered: