Extension talk:Update


Parse Error and Warning

Very good extension, I love the idea. However having problem.

Going to mywebsite.org works mywebsite.org/wiki/Special:Version gives me this error below

Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /home/.............../extensions/Update/Update.Update.php on line 156

Going to mywebsite.org/wiki/Special:Update gives me this error below

Warning: Call-time pass-by-reference has been deprecated in /home/..................../extensions/Update/Update.SpecialUpdate.php on line 100

Warning: Call-time pass-by-reference has been deprecated in /home/.................../extensions/Update/Update.SpecialUpdate.php on line 115

Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /home/............./extensions/Update/Update.Update.php on line 156

on MW 1.17, semantic mediawiki Is this a bug, or some setting I am missing. Thanks for the help. Wikimanz 14:03, 9 October 2011 (UTC)

Thanks for reporting this! I've released 0.1.1 to address this issue, please let me know if it resolves everything for you. Per my blog post, this version sports a new SpecialPage that isn't based on Version, which is to pave the road for future features. I'm working on SVN and GIT support, as well as a way to provide download links, and one day download to the server. Olivier Beaton 17:29, 9 October 2011 (UTC)
Thanks. Of the two issues, one is solved but the other remains.


Going to mywebsite.org/wiki/Special:Version - works, no longer get the parse error message i mentioned above
However, going to mywebsite.org/Special:Update - gives me the error below


Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in
IP......../extensions/Update/Update.body.php on line 102

Hope that provides me with some clue.
Thanks Wikimanz 20:59, 10 October 2011 (UTC)
Okay thanks for bearing with me on this. I really appreciate it. I don't get an error there but if you could try changing line 102 from of extensions/Update/Update.body.php from
$req = $httpRequest::factory($url,$options);
to
$req = $$httpRequest::factory($url,$options);
notice the extra $ infront of $httpRequest. That's the offender, and I hope that resolves your problem. If it does I'll make a patch and release 0.1.3 for everyone else. I'm still working on the next version 0.2 Olivier Beaton 21:40, 10 October 2011 (UTC)
I made the changes but unfortunately I still get the following error.
Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in
IP.........../extensions/Update/Update.body.php on line 102
Ask me anything you can think of and I will check it, after all you're doing this on your own time and effort. Wikimanz 22:30, 10 October 2011 (UTC)
Out of curiosity, what version of PHP are you running? I just found out my use of $httpRequest:: is only for 5.3.0+ My big bad. I really want to support older php versions I swear!
Can you please try the following by changing the line from:
$req = $httpRequest::factory($url,$options);
to
$req = call_user_func( array($httpRequest, 'factory'), $url, $options );
That should do it, I really hope. thanks so much for sticking with me! Olivier Beaton 00:52, 11 October 2011 (UTC)
That did it finally. And yes my php version is 5.2.17, so that may be it. Thanks, this is a big big extension to easily see outdated extensions and update them easily down the road.
Thank You! (keep up the work with this and the other promising extensions you have at your website) Wikimanz 07:58, 11 October 2011 (UTC)
Glad to hear it and thanks again for helping me resolve the problem! I'll put out 0.1.2 to fix this issue tonight. I hope future versions will provide even more functionality for my users, this is really an extension to iterate and add features to one at a time until it is awesome ;) Olivier Beaton 12:00, 11 October 2011 (UTC)
We are testing Update 0.1.2 on a MediaWiki 1.18.0 PHP 5.3.8. The extension throws some notices, surely their do not do any harm to the functionality but still their are annoying and distort the display.
Notice: Undefined variable: ext in ...\extensions\Update\Update.SpecialUpdate.php on line 90
Notice: Undefined variable: ext in ...\extensions\Update\Update.SpecialUpdate.php on line 90
Notice: Undefined variable: ext in ...\extensions\Update\Update.SpecialUpdate.php on line 90
Notice: Undefined variable: ext in ...\extensions\Update\Update.SpecialUpdate.php on line 90
Notice: Undefined index: version in ...\extensions\Update\Update.SpecialUpdate.php on line 243
Notice: Undefined index: version in ...\extensions\Update\Update.SpecialUpdate.php on line 243 MWJames 14:33, 16 December 2011 (UTC)
Thanks! Fix going in 0.1.3 -- should be out later tonight. Olivier Beaton 23:27, 16 December 2011 (UTC)
my environment was fubar'd there for two weeks or so and I couldn't do any development! All fixed now, and I managed to test everything on my end. Released 0.1.3 -- could you please let me know if you encounter any further issues, and input is always welcome! I realize the extension is a bit basic right now. Olivier Beaton 17:59, 25 December 2011 (UTC)
We tested 0.1.3 and the errors we encountered before are gone. Thanks MWJames 09:49, 27 December 2011 (UTC)

Error on Mediawiki 1.21.1

I got the following error in the apache logs:

[Fri Jun 28 15:35:18 2013] [error] [client 217.133.96.194] PHP Fatal error: Call to undefined function wfLoadExtensionMessages() in /var/www/fountainpen.it/mediawiki/extensions/Update/Update.SpecialUpdate.php on line 61

I had to remove it... 217.133.96.194 13:40, 28 June 2013 (UTC)

I am also getting the same error message when I go to SPecial:Update page. Fatal error: Call to undefined function wfLoadExtensionMessages() in /home/....../public/a/extensions/Update/Update.SpecialUpdate.php on line 61. How do we fix this problem. Wikimanz (talk) 14:45, 7 July 2013 (UTC)
You can just remove the call to that function: https://www.mediawiki.org/wiki/Project%3ASupport%20desk/Flow/2013/06#h-wfLoadExtensionMessages%28%29_removed_from_1.21.1%3F-2013-06-08T18%3A59%3A00.000Z
I just tried this, and it works! 81.193.36.132 14:15, 3 August 2013 (UTC)
Thank you,
this one solved my problem with Extension:Update Rabin .Y (talk) 10:20, 4 August 2013 (UTC)

Under Development?

Hey is this extension under development anymore or is it dead? 204.90.74.114 20:50, 1 August 2014 (UTC)

I think it is save to say that this extension is currently unmaintained. I have updated its page to make this more obvious to see. [[kgh]] (talk) 13:14, 4 August 2014 (UTC)