bryantaxs / tgl_twitter Goto Github PK
View Code? Open in Web Editor NEWEE Add-on that uses oAuth to display Twitter Feed
EE Add-on that uses oAuth to display Twitter Feed
During the last step of the setup process, after filling out the "Pin" field and clicking on "Update" I get:
A PHP Error was encountered
Severity: Warning
Message: Missing argument 3 for TwitterOAuth::__construct(), called in /system/expressionengine/third_party/tgl_twitter/mcp.tgl_twitter.php on line 111 and defined
Filename: classes/twitteroauth.php
Line Number: 64
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: url
Filename: classes/twitteroauth.php
Line Number: 66
A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /system/codeigniter/system/core/Exceptions.php:170)
Filename: libraries/Functions.php
Line Number: 809
A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /system/codeigniter/system/core/Exceptions.php:170)
Filename: core/Common.php
Line Number: 412
Any idea what could be causing this? Thanks!
When I view a site for the first time on any device it results in a PHP error. Refreshing it fixes the issue. PHP error refers to the access_token index not being defined. Next time the error triggers, I will get the exact error code. I am sure it is an easy fix. I bet if I delete the cache and refresh, it will trigger the error again.
I just wanted to see if you know about this error before I fix it.
These methods are duplicated:
insert_secret_token
insert_access_token
delete_all_settings
delete_setting
insert_new_settings
Hi,
When you install this module it has some incompatibilities with NSM Twitter, such as a duplicate OAuth class and some weird things when saving the module settings.
The duplicate OAuth is easy to get around by checking if the class is already declared before including it:
if ( ! class_exists('OAuthConsumer'))
{
require_once PATH_THIRD . 'tgl_twitter/classes/twitteroauth.php';
}
When saving the module settings it is also trying to insert some settings from nsm_twitter. So a check on which settings are relevant to TGL_Twitter might not be a bad idea.
It also looks like NSM twitter is using a different version of the OAuth library.
– Wouter
Just a thought.
I couldn't get TGL_Twitter to work, tons of PHP errors with the Auth Code so instead using the one on ClickRain GitHub here: https://github.com/click-rain/EE_Twitter, but there isn't a way to post an issue so I'm posting here.
Getting a error using relative_date:
Fatal error: Call to undefined method DateTime::diff() ... on line 625
**UPDATE - moved this over to the click-rain issues: clickrain/EE_Twitter#4
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.