LG Extension issues
Posted: 29 June 2008 11:39 PM   [ Ignore ]  
Summer Student
Total Posts:  5
Joined  09-19-2007

Levi

Just needing to find out what’s going on with my system. I installed my purchased extensions as well as some of your free ones and now have some issues with them. For example. When trying to login to the core the following appears for the twitter extension.

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /home/9189/domains/podcast-tuneup.com/html/ptcore/extensions/ext.lg_twitter.php on line 634

In EE I remove the extension and then can no longer move forward as it then provides and error stating that the extension is missing. I have been successful in replacing the extension and doing a refresh that will randomly allow access to the core. This extension seems to the problematic one in the group

Before I go mucking around in the DB I thought it best to post and get some guidance to the issue. This is very critical to moving forward as my developers cannot access the system to get work done as we’re under a tight deadline - please respond at your earliest convenience.

Michael Harper

 Signature 

Michael F. Harper
CEO - Podcast Tuneup
E:

Profile
 
 
Posted: 30 June 2008 01:34 AM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15502
Joined  05-15-2004

Michael, there’s nothwing wrong with posting here in the forums for assistance, but if you require assistance and/or a reply by Leevi in person, may I suggest to drop him an email instead?

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
Posted: 30 June 2008 09:37 AM   [ Ignore ]   [ # 2 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6616
Joined  04-15-2006

As a quick bit of help on this one if you have disabled an extension (any extension) but then when you hit the template that has the extension tag code on it you will still get an error. You would need to take out the extension tag in the template for that template to not have problems again.

Don’t know if that is the case in this instance but have seen this a few times so thought it might be that.

If for instance you have something like :

{exp:twitter}

or whatever the code is then take that code out of your template and it should start working again. Just disabling and / or disabling the extension from the FTP site won’t make the errors disappear because if you still have the extension tag in the template then the system still tries to load that extension.

Hope that might help a bit?

Best wishes,

Mark

 Signature 

Full List Of Plugins Here!! (16)
 
Retrieve Statuses
Maximum Posts Reached
Neat Link
Redirect
Fetch URI

Profile
 
 
Posted: 30 June 2008 10:59 PM   [ Ignore ]   [ # 3 ]  
Summer Student
Total Posts:  5
Joined  09-19-2007

Thanks guys for the response. The issues isn’t with templates or where the developer placed tags as the extension was just installed and not used in any form as of yet. From the fact that it is installed and running it is now causing an error in the db and simply removing it will not change the issue. I should be able to remove it from the FTP as it has not been implemented in any way. Thus, the question is how to deal with this in the future once I clean the db of the error and move on. Maybe I won’t use the extension. I’ll check with Levi.

BTW - Levi states on his Web site to address issues with any of the extensions in the EE forums. However, I think I’ll send him a note!

 Signature 

Michael F. Harper
CEO - Podcast Tuneup
E:

Profile
 
 
Posted: 01 July 2008 12:34 AM   [ Ignore ]   [ # 4 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1077
Joined  01-24-2006

Hey Michael,

Which version of LG Twitter, PHP & EE are you using?

Cheers

 Signature 

VOTE FOR LG Addons in the Mashable Open Web Awards!


Newism - Newcastle Web Design & Development


LG Better Meta now w/ Sitemap Meta & XML Generator | LG Polls | LG .htaccess Generator

Profile
 
 
Posted: 01 July 2008 01:40 AM   [ Ignore ]   [ # 5 ]  
Summer Student
Total Posts:  5
Joined  09-19-2007

Hello Leevi!

Well, I have the latest Twitter extension (1.0.2) running on EE 1.6.3. and have PHP 4.4.8 running on A Media Temple Grid-Server. Maybe the PHP is the issue? Thought I checked the specs - I’ll check the CURL support on the service.

 Signature 

Michael F. Harper
CEO - Podcast Tuneup
E:

Profile
 
 
Posted: 01 July 2008 01:49 AM   [ Ignore ]   [ # 6 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1077
Joined  01-24-2006

Hmmm could be an issue with the PHP version although I doubt it… I just uploaded what I have on my dev machine (runs fine) to my site. So grab the latest and see how you go.

The error relates to the end of the extension class… Maybe its because there is two class declarations in the same file?

Could someone with PHP5 install the extension and see if they get the same error?

 Signature 

VOTE FOR LG Addons in the Mashable Open Web Awards!


Newism - Newcastle Web Design & Development


LG Better Meta now w/ Sitemap Meta & XML Generator | LG Polls | LG .htaccess Generator

Profile
 
 
Posted: 01 July 2008 01:56 AM   [ Ignore ]   [ # 7 ]  
Summer Student
Total Posts:  5
Joined  09-19-2007

Thanks Leevi for the quick response. Of course, you’re coming at me tomorrow I believe - Australia - correct?

I’ll have my Web admin have a thorough look at the issue and see what he can find. I’ll drop another post tomorrow late evening with what we’ve found. Thanks again -

 Signature 

Michael F. Harper
CEO - Podcast Tuneup
E:

Profile
 
 
Posted: 01 July 2008 01:59 AM   [ Ignore ]   [ # 8 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1077
Joined  01-24-2006

In house dev team! What do you need me for wink

Of course any feedback would be apreciated. smile

 Signature 

VOTE FOR LG Addons in the Mashable Open Web Awards!


Newism - Newcastle Web Design & Development


LG Better Meta now w/ Sitemap Meta & XML Generator | LG Polls | LG .htaccess Generator

Profile
 
 
Posted: 09 July 2008 03:51 PM   [ Ignore ]   [ # 9 ]  
Summer Student
Avatar
Total Posts:  19
Joined  08-08-2007

Levi,

We are using the LG TinyMCE extension. It works fine on one server. But a duplicate of that server (files and database) it doesn’t appear to be loading. The symptoms are:

* When viewing all custom fields for a field group, “WYSIWYG” is not listed on the fields that have been assigned that type (we’ve verified by editing the field itself that it is assigned correctly)
* When editing a page, the TinyMCE editor does not load. When viewing the source, it does not appear to be being called at all.

We’ve tried removing and reinstalling the extension, as well as removing and reinstalling tinymce to no avail. Any idear what’s going on?

Thanks!

Profile
 
 
Posted: 09 July 2008 05:11 PM   [ Ignore ]   [ # 10 ]  
Grad Student
Avatar
Rank
Total Posts:  44
Joined  06-23-2008

Hey, Openmotive.

I walked my happy hacking self all the way through leevi’s plugin.  At the very end, there is a variable called $out which seems to hold all of the script sources required to call in tinyMCE.  If I ‘echo’ that out, tinyMCE comes back!  WOOHOO, sort of.

The problem now is that I’m not sure where it is returning that value.  My guess is that it is returning the value to core.extensions.php, and that something inside there is eating the value. (Yes that is the technical term).

Perhaps one of the more experienced and or knowledgeable EE pEEple can jump in here and help us understand how core.extensions.php actually works.

Cheers!

 Signature 

Think twice, code once.

Profile
 
 
Posted: 04 August 2008 07:55 AM   [ Ignore ]   [ # 11 ]  
Research Assistant
RankRankRank
Total Posts:  602
Joined  10-22-2006

Has this been resolved somehow?

When I copy the extension into the extension folder and goto Extension Management in order to activate it, I get the error

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /homepages/27/d103776309/htdocs/schreibtisch/extensions/ext.lg_twitter.php on line 635

LG Twitter version 1.0.2
EE 1.6.4
PHP Version 4.4.8
libcurl/7.15.5

Profile
 
 
Posted: 04 August 2008 11:08 AM   [ Ignore ]   [ # 12 ]  
Research Assistant
RankRankRank
Total Posts:  602
Joined  10-22-2006

Duh, I was blind red face I’m running PHP 4.

So I had to exchange ‘private’ to ‘var’ here:

/* Username:password format string */
    
private $credentials;
    
    
/* Contains the last HTTP status code returned */
    
private $http_status;
    
    
/* Contains the last API call */
    
private $last_api_call;

and remove ‘private’ here:

private function APICall($api_url, $require_credentials = false, $http_post = false) {

to get me going…

Profile
 
 
Posted: 04 August 2008 09:47 PM   [ Ignore ]   [ # 13 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1077
Joined  01-24-2006

Hey Slienz, Thanks for the PHP4 fix I’ll add it to the next release.

 Signature 

VOTE FOR LG Addons in the Mashable Open Web Awards!


Newism - Newcastle Web Design & Development


LG Better Meta now w/ Sitemap Meta & XML Generator | LG Polls | LG .htaccess Generator

Profile
 
 
Posted: 04 August 2008 09:48 PM   [ Ignore ]   [ # 14 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1077
Joined  01-24-2006
openmotive - 09 July 2008 03:51 PM

Levi,

We are using the LG TinyMCE extension. It works fine on one server. But a duplicate of that server (files and database) it doesn’t appear to be loading. The symptoms are:

* When viewing all custom fields for a field group, “WYSIWYG” is not listed on the fields that have been assigned that type (we’ve verified by editing the field itself that it is assigned correctly)
* When editing a page, the TinyMCE editor does not load. When viewing the source, it does not appear to be being called at all.

We’ve tried removing and reinstalling the extension, as well as removing and reinstalling tinymce to no avail. Any idear what’s going on?

Thanks!

Which version of LG TinyMCE are you using? Also do you have any other extensions installed?

 Signature 

VOTE FOR LG Addons in the Mashable Open Web Awards!


Newism - Newcastle Web Design & Development


LG Better Meta now w/ Sitemap Meta & XML Generator | LG Polls | LG .htaccess Generator

Profile
 
 
Posted: 05 August 2008 09:34 AM   [ Ignore ]   [ # 15 ]  
Grad Student
Avatar
Rank
Total Posts:  44
Joined  06-23-2008

Hi Leevi,

We ended up disabling the newsletter plugin and that seemed to fix the issues we were having with TinyMCE.  Apparently they were both using the same hook?  Sure would be nice if the EE folks could figure out a way to queue the requests for hooks to allow plugins to play more nicely with one another.

If you know of a way to make these to work together, do let us know.  We likely have a need for the newsletter plugin in the future.

Thanks!

 Signature 

Think twice, code once.

Profile
 
 
Posted: 05 August 2008 05:36 PM   [ Ignore ]   [ # 16 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1077
Joined  01-24-2006
jeff_openmotive - 05 August 2008 09:34 AM

Hi Leevi,

We ended up disabling the newsletter plugin and that seemed to fix the issues we were having with TinyMCE.  Apparently they were both using the same hook?  Sure would be nice if the EE folks could figure out a way to queue the requests for hooks to allow plugins to play more nicely with one another.

If you know of a way to make these to work together, do let us know.  We likely have a need for the newsletter plugin in the future.

Thanks!

Extensions can both use the same hook without an issue if you are careful enough and follow the developer docs.

Do you have a link to the Newsletter extension? I’ll take a look to see if I can sopt an errors in LG TinyMCE and the Newsletter extension.

 Signature 

VOTE FOR LG Addons in the Mashable Open Web Awards!


Newism - Newcastle Web Design & Development


LG Better Meta now w/ Sitemap Meta & XML Generator | LG Polls | LG .htaccess Generator

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 65096 Total Logged-in Users: 56
Total Topics: 82243 Total Anonymous Users: 39
Total Replies: 442010 Total Guests: 286
Total Posts: 524253    
Members ( View Memberlist )