We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

LG Addon Updater - NOW AVAILABLE!!!!

Development and Programming

mapinfo's avatar
mapinfo
12 posts
16 years ago
mapinfo's avatar mapinfo

Thanks, it was worth a try, which I tried both locally and on the live site. Unfortunately the extension writes the TimeStamp back into the cache file.

I wonder if anyone else has run into this issue using this extension?

       
Andrew Gunstone's avatar
Andrew Gunstone
101 posts
16 years ago
Andrew Gunstone's avatar Andrew Gunstone

I’m also having an issue with line 599 (same as @Arun S. and @Martin Luff). Any thoughts? My issues sounds exactly the same as Martin … it is only on the CP Home page.

One thing to mention… I am using the Multiple Site Manager as well.

       
Peter Lewis's avatar
Peter Lewis
280 posts
16 years ago
Peter Lewis's avatar Peter Lewis

I’m using the extension, but wanted it to only appear for super admins and not all users who have access to the Control Panel. So I’ve added an if statement into the extension code if anybody else has the same requirement:

Based on v1.0.2

Line 592 add:

if ($SESS->userdata[“group_id”] == 1) {

Closing the if around line 626. So it should look something like:

$XML = new EE_XMLparser; //### Only show messages for Super Admins ### if ($SESS->userdata[“group_id”] == 1) { // valid XML? if (($versions = $XML->parse_xml($this->_get_latest_versions())) === FALSE) { $updates = “<div class=’alert’>LG Addon Updater failed. There may be a problem with some of the addon sources.</div>”; } else { foreach ($versions->children as $addon)

<

blockquote> $home->messages = array_merge($home->messages, array($updates)); } } }

    return $home;
}[/quote]
       
Danny T.'s avatar
Danny T.
426 posts
16 years ago
Danny T.'s avatar Danny T.

Hey guys, not sure what this is related too.. Was wondering if you kind folks might know how to diagnose it? I might check it out with my host to get some advice on it, because I’m not sure where it stems from:

Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/camerahi/domains/domain.com/public_html/system/extensions/ext.lg_addon_updater_ext.php on line 701

Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/camerahi/domains/domain.com/public_html/system/extensions/ext.lg_addon_updater_ext.php on line 701

Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/camerahi/domains/domain.com/public_html/system/extensions/ext.lg_addon_updater_ext.php on line 701

Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/camerahi/domains/domain.com/public_html/system/extensions/ext.lg_addon_updater_ext.php on line 701
       
Emily Heath's avatar
Emily Heath
197 posts
16 years ago
Emily Heath's avatar Emily Heath

I’m getting similar problem with error coming up on CP homepage - it is like Danny’s:

Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/xxxxx/public_html/xxxxx/extensions/ext.lg_addon_updater_ext.php on line 701

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/xxxxx/public_html/xxxxx/extensions/ext.lg_addon_updater_ext.php:701) in /home/xxxxx/public_html/xxxxx/extensions/ext.lg_htaccess_generator_ext.php on line 672

This has suddenly appeared now that I login to the CP after a week away so I don’t know what can have caused it.

       
Craig Allen's avatar
Craig Allen
135 posts
16 years ago
Craig Allen's avatar Craig Allen

I’ve just had that 599 error appear also … Warning: Invalid argument supplied for foreach() in /home/picoalle/public_html/savethepines.net/engineroom/extensions/ext.lg_addon_updater_ext.php on line 599

I’m not using multiple site manager. There wasn’t a problem when I was running it on my localhost. It appeared when I went live on a web host. It only appears on the CP home page.

I’m also getting a php error with the structure plugin, which didn’t occur on localhost.

       
Simon Cox's avatar
Simon Cox
405 posts
16 years ago
Simon Cox's avatar Simon Cox

i figured out what was wrong and why I was getting the following errors:

Notice: Use of undefined constant CURLOPT_AUTOREFERER - assumed ‘CURLOPT_AUTOREFERER’ in /home/path/to/system/extensions/ext.lg_addon_updater_ext.php on line 704 Notice: Use of undefined constant CURLOPT_AUTOREFERER - assumed ‘CURLOPT_AUTOREFERER’ in /home/path/to/system/extensions/ext.lg_addon_updater_ext.php on line 704

Quite simply the file permissions on the add-on files were set wrong. ext.lg_addon_updater_ext.php lang.lg_addon_updater_ext.php

Not sure if they should be 666 or 755 - depends on you server and perhaps Leevi will let us know the optimum setting.

       
Craig Allen's avatar
Craig Allen
135 posts
16 years ago
Craig Allen's avatar Craig Allen

My problem was caused by a glitch in the structure module. AN update to the latest version solved it.

       
Danny T.'s avatar
Danny T.
426 posts
16 years ago
Danny T.'s avatar Danny T.
Hey guys, not sure what this is related too.. Was wondering if you kind folks might know how to diagnose it? I might check it out with my host to get some advice on it, because I’m not sure where it stems from:
Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/camerahi/domains/domain.com/public_html/system/extensions/ext.lg_addon_updater_ext.php on line 701

Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/camerahi/domains/domain.com/public_html/system/extensions/ext.lg_addon_updater_ext.php on line 701

Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/camerahi/domains/domain.com/public_html/system/extensions/ext.lg_addon_updater_ext.php on line 701

Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/camerahi/domains/domain.com/public_html/system/extensions/ext.lg_addon_updater_ext.php on line 701

Just wondering if there’s been any progress, developments, or if anybody just knows flat out what’s up with my install?

       
Simon Cox's avatar
Simon Cox
405 posts
16 years ago
Simon Cox's avatar Simon Cox
i figured out what was wrong and why I was getting the following errors:
Notice: Use of undefined constant CURLOPT_AUTOREFERER - assumed ‘CURLOPT_AUTOREFERER’ in /home/path/to/system/extensions/ext.lg_addon_updater_ext.php on line 704 Notice: Use of undefined constant CURLOPT_AUTOREFERER - assumed ‘CURLOPT_AUTOREFERER’ in /home/path/to/system/extensions/ext.lg_addon_updater_ext.php on line 704
Quite simply the file permissions on the add-on files were set wrong. ext.lg_addon_updater_ext.php lang.lg_addon_updater_ext.php Not sure if they should be 666 or 755 - depends on you server and perhaps Leevi will let us know the optimum setting.

I was wrong - still getting this error even after changing permission levels. issue is that it does not seem to happen all the time only after I first log in.

       
Adam George's avatar
Adam George
283 posts
16 years ago
Adam George's avatar Adam George

CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode

I’m getting this error too…

       
Michael Cage's avatar
Michael Cage
19 posts
16 years ago
Michael Cage's avatar Michael Cage

Leevi,

Thanks for all your great addons.

We have been trying to get your Addon Updater to work, but everytime we enable the extension it turns our CP blank.

Disabling it brings everything back to normal.

Turning on all error reporting kicks out this message when trying to access the CP homepage after activating the extension:

Fatal error: Call to undefined method stdClass::userdata() in /www/#######/public_html/######/core/core.functions.php on line 86

Any ideas?

Thanks in advance.

       
Sean C. Smith's avatar
Sean C. Smith
3,818 posts
16 years ago
Sean C. Smith's avatar Sean C. Smith

FEATURE REQUEST for this extension:

Please add a config option to limit which user groups can see the messages displayed.

       
Todd D.'s avatar
Todd D.
460 posts
16 years ago
Todd D.'s avatar Todd D.

I agree with you too Sean. It would be great to restrict this to only certain member groups… like super admins. I don’t want my authors seeing this who have no clue of what it means nor do they have the ability to update the add-on. It would be ideal if they just didn’t see it.

       
Brian Litzinger's avatar
Brian Litzinger
693 posts
16 years ago
Brian Litzinger's avatar Brian Litzinger

Michael, I had a similar issue. I have a .sql file I use to start each site with, and I think it stores some of the session data in it for LG Add-on Updater. I just went into the exp_extensions table and disabled the add-on, then everything was normal again.

       
1 2 3 4

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.