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]
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
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.
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.
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.
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?
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 704Quite 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.
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.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.