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

Leevi Graham's avatar
Leevi Graham
1,143 posts
about 17 years ago
Leevi Graham's avatar Leevi Graham

No worries Ryan. Thanks for your “inspiration” 😉

Oh and don’t forget to add it to your social bookmarks like del.icio.us and Digg 😊

Cheers

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
16 years ago
Leevi Graham's avatar Leevi Graham

Just a quick note to say that the extension has been updated to 1.0.1 which adds some speed improvements. The hooks only get called on the CP homage now instead of every CP page.

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
16 years ago
Leevi Graham's avatar Leevi Graham

Version 1.0.2 is out with a bunch of PHP4 fixes for broken control panels.

Thanks to Victor for the testing!

       
Ryan M.'s avatar
Ryan M.
1,511 posts
16 years ago
Ryan M.'s avatar Ryan M.

I updated one of my extensions tonight to utilize LG Addon Updater (I think) but I’m not sure sure how to test it.

What’s the best way to test if I’ve properly set up my extension to make use of Addon Updater? I’ve set caches to 0, made a “dummy” testing XML file on my site on which I can alter versions/dates to say whatever I think will work (for testing) but I can’t seem to get anything to show up on the Control Panel Homepage notifying me that the extension needs to be updated. Any tips appreciated!

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
16 years ago
Leevi Graham's avatar Leevi Graham

Hmm… thats bascially how I tested it. Is there anything in the LG Cache folder?

       
Ryan M.'s avatar
Ryan M.
1,511 posts
16 years ago
Ryan M.'s avatar Ryan M.

I’m testing locally with MAMP. Not sure if that’s an issue, but at any rate, I’ve been removing anything from lg cache manually, and the mdesign cache, too. Check for updates is on, so I’m not sure where I’m missing anything.

I’ve been looking at this for way too long. I’m sure I missed something in the code of the extension - I pretty much went line by line through a couple of your most recent ones and modified my extension to match - including the capability to do multiple sites. I may just simplify this extension for now, removing everything that isn’t essential to it just working, because I know a few people are waiting for an update.

       
gridonic's avatar
gridonic
231 posts
16 years ago
gridonic's avatar gridonic

Hi Leevi

Just got a small error when using this on Enginehosting Servers:

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

Have you ever had this? Am I gonna get updates while having this error?

Suppose changing

curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);

to

code] @curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE); </code></pre>

will suppress it.

EDIT: Just adding this, maybe the custom function would work too without throwing the error: http://ch.php.net/manual/en/function.curl-setopt.php#71313

       
Arun S.'s avatar
Arun S.
792 posts
16 years ago
Arun S.'s avatar Arun S.

On, the CP homepage, I’m getting the following error:

Warning: Invalid argument supplied for foreach() in /home/u7/website/html/system/extensions/ext.lg_addon_updater_ext.php on line 599

Any thoughts on causation?

       
Chris Clarke's avatar
Chris Clarke
8 posts
16 years ago
Chris Clarke's avatar Chris Clarke

A small issue (or two?) that doesn’t seem to affect functionality, but which is generating occasional error messages when opening the CP:

Notice: Use of undefined constant CURLOPT_AUTOREFERER - assumed ‘CURLOPT_AUTOREFERER’ in /www/path/to/extensions/ext.lg_addon_updater_ext.php on line 704 Notice: Use of undefined constant CURLOPT_AUTOREFERER - assumed ‘CURLOPT_AUTOREFERER’ in /www/path/to/extensions/ext.lg_addon_updater_ext.php on line 704 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /www/path/to/extensions/ext.lg_addon_updater_ext.php:704) in /www/path/to/extensions/extensions/ext.lg_twitter_ext.php on line 791

This is the third or fourth time I’ve gotten similar errors since installing LG Addon Updater, out of at least several hundred visits to the CP.

Is this something I’ve created through judicious use of improper settings somewhere? Otherwise, just FYI. The addon works great in every other respect, it would seem.

       
bobh's avatar
bobh
145 posts
16 years ago
bobh's avatar bobh

I’m getting the same error here when entering the CP.

       
Tyssen's avatar
Tyssen
756 posts
16 years ago
Tyssen's avatar Tyssen

A small feature request - to be able to restrict the home page notifications to certain member groups.

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

I to am getting:

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

I turned off all other extensions and it still happened. Am running ExpressionEngine 1.6.7 Build: 20090122. And looks like this server is running PHP Version 4.3.11 (could that be it?)

       
Martin Luff's avatar
Martin Luff
52 posts
16 years ago
Martin Luff's avatar Martin Luff

@Arun - Yes, I’m also getting the same error regarding line 599 - only on CP homepage and not on all the sites where I use LG addon updater. Tried disabling the ‘check for updates’ in installed extensions and it didn’t seem to change the error. Am using EE 1.6.7, CURL enabled, PHP 5.2.3, LG Addon 1.0.2 and latest version of modules/extensions as far as I can make out. Did you make any progress tracking the cause?

Regards

Martin

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

We are running into a problem implementing the LG Addon Updater, but our issue is different from the previous problems posted to this thread. I have isolated the problem and the issue is due to an incomplete read of the cache file.

I have verified that the cache file is found and that the @fread() function returns data to the variable ($cache). However a var_dump of the variable’s contents right after the read shows that only the TimeStamp in the cache file has been captured.

The following is information displayed by our debug statements:

file size: 3241 data after file read: 1237403010
returning cache data: string(3230) “” returned xml: string(3230) “”

The data returned is an empty string. As a result, no information is displayed in the control panel.

We have installed and activated the LG Addon Updater and the extension is configured to look for updates. The cache file does contain data. Here is the data in the file:

1237403010
<versions><addon id='LG .htaccess Generator' version='1.0.0' last_updated="1220848507" docs_url="http://leevigraham.com/cms-customisation/expressionengine/lg-htaccess-generator/" >
    <addon id='LG Addon Updater' version='1.0.2' last_updated="1219341042" docs_url="http://leevigraham.com/cms-customisation/expressionengine/lg-addon-updater/" >
    <addon id='LG Add CP Tabs' version='1.1.0' last_updated="1219175483" docs_url="http://leevigraham.com/cms-customisation/expressionengine/lg-add-cp-tabs/" >
    <addon id='LG Add Sitename' version='1.2.0' last_updated="1219341042" docs_url="http://leevigraham.com/cms-customisation/expressionengine/lg-add-sitename/" >
    <addon id='LG Better Meta Commercial' version='1.7.1' last_updated="1232390759" docs_url="http://leevigraham.com/cms-customisation/expressionengine/lg-better-meta/" >
    <addon id='LG Data Matrix' version='1.1.1' last_updated="1233683505" docs_url="http://leevigraham.com/cms-customisation/expressionengine/lg-data-matrix/" >
    <addon id='LG FirePHP' version='1.0.0' last_updated="1219175483" docs_url="http://leevigraham.com/cms-customisation/expressionengine/lg-fire-php/" >
    <addon id='LG Instruct' version='1.0.0' last_updated="1219175483" docs_url="http://leevigraham.com/cms-customisation/expressionengine/lg-instruct/" >
    <addon id='LG Live look' version='1.0.3' last_updated="1232455018" docs_url="http://leevigraham.com/cms-customisation/expressionengine/lg-live-look/" >
    <addon id='LG Member List' version='1.3.2' last_updated="1219175483" docs_url="http://leevigraham.com/cms-customisation/expressionengine/lg-member-list/" >
    <addon id='LG Member Form Customiser' version='1.2.1' last_updated="1219175483" docs_url="http://leevigraham.com/cms-customisation/expressionengine/lg-member-form-customiser/" >
    <addon id='LG Multi Language' version='1.0.1' last_updated="1219175483" docs_url="http://leevigraham.com/cms-customisation/expressionengine/lg-multi-language/" >
    <addon id='LG Polls' version='1.0.8' last_updated="1219175483" docs_url="http://leevigraham.com/cms-customisation/expressionengine/lg-polls/" >
    <addon id='LG Quarantine' version='1.0.0' last_updated="1220356880" docs_url="http://leevigraham.com/cms-customisation/expressionengine/lg-quarantine/" >
    <addon id='LG SAEF File Upload' version='1.0.0' last_updated="1219175483" docs_url="http://leevigraham.com/cms-customisation/expressionengine/lg-saef-file-upload/" >
    <addon id='LG Social Bookmarks' version='2.0.2' last_updated="1220242211" docs_url="http://leevigraham.com/cms-customisation/expressionengine/lg-social-bookmarks/" >
    <addon id='LG TinyMCE' version='1.3.3' last_updated="1232455018" docs_url="http://leevigraham.com/cms-customisation/expressionengine/lg-tinymce/" >
    <addon id='LG Twitter' version='2.0.1' last_updated="1219341042" docs_url="http://leevigraham.com/cms-customisation/expressionengine/lg-twitter/" >
    <addon id='LG Wordpress Redirect' version='0.0.1' last_updated="1219175483" docs_url="http://leevigraham.com/cms-customisation/expressionengine/lg-wordpress-redirect/" >
    <addon id='NSM Publish Plus' version='1.0.4' last_updated="1233295285" docs_url="http://leevigraham.com/cms-customisation/expressionengine/nsm-publish-plus/" ></versions>

I have tried several things to correct the issue: modifying the function to read in the file through data chunks (instead of all at once), using the PHP file_get_contents() function, converting the file contents to a different character set (we are using utf-8), deleting the cache files, and I have downloaded the extension again and tried reinstalling the extension a couple of times, blowing away previous cache files, etc. Unfortunately, the problems remains.

This issue occurs not only with our hosted expression engine sites, but also with a local installation on my development workstation.

Local EE Site - EE: 1.6.7 PHP: 5.2.5 System: Windows XP Professional
Apache: 2.2 MySQL: 5.0.51a-community-nt

Live EE Site - EE: 1.6.7 PHP: 5.1.6 System: Linux Apache: 2.0 MySQL: 5.0.45

Any suggestions for additional things to check or try would be appreciated as I have spent a couple of hours trying to debug and correct this issue.

Thanks

       
gridonic's avatar
gridonic
231 posts
16 years ago
gridonic's avatar gridonic

Try removing the

1237403010

from the begining of the file. We one implemented a DTD for the XML format of the versions.xml file and it seems that the XML Parser used cannot cope with that.

Just a thought.

       
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.