Extension talk:ParserPhase2
Add topicMediaWiki v1.11: pass-by-reference has been deprecated (RESOLVED)
[edit]Any recommendations without creating/modifying php.ini?
Using MediaWiki v1.11:
- Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. wiki/extensions/ParserPhase2/ParserPhase2.php on line 159
- Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. wikii/extensions/ParserPhase2/ParserPhase2.php on line 159
- Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. wikii/extensions/ParserPhase2/ParserPhase2.php on line 174
- Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. wikii/extensions/ParserPhase2/ParserPhase2.php on line 174
- Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. wikii/extensions/ParserPhase2/ParserPhase2.php on line 185
- Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. wikii/extensions/ParserPhase2/ParserPhase2.php on line 185
- remove the & from the passed parameters on line 159, 174 and 185. I will update SVN trunk soon. Jean-Lou Dupont 02:22, 26 September 2007 (UTC)
- use trunk version @ id = 820. Jean-Lou Dupont 02:23, 26 September 2007 (UTC)
- That did the trick. Thanks.
- - Marc
1.12 integration (RESOLVED)
[edit]- Anyone tested with version 1.12? I get this error
Fatal error: Class 'ParserPhase2' not found in D:\Web_Root\IIS\WikiIS\extensions\StubManager\StubManager.php on line 619
Stub_manager version 1.12
--Abrillon 00:03, 26 March 2008 (UTC)
- Hi - could you start by upgrading to the latest version of StubManager? Jean-Lou Dupont 01:29, 26 March 2008 (UTC)
- I am running Stub_manager version 1.12. Is there a newer version? --Abrillon 20:26, 26 March 2008 (UTC)
- No, 1.20 is. Have you considered subscribing to the RSS feed to stay in sync? Or install PEAR_Frontend_WEB package? Jean-Lou Dupont 21:57, 26 March 2008 (UTC)
- No i didnt considered it but I will look into it.
- I am running Stub_manager version 1.12. Is there a newer version? --Abrillon 20:26, 26 March 2008 (UTC)
- Deleted my previous comments as after installing PEAR, I completely removed the old StubManager and ParserPhase2, and installed them using PEAR instead. However, now I am getting:
 % php update.php PHP Fatal error: Class 'StubManager' not found in ~/wiki/extensions/ParserPhase2/ParserPhase2.php on line 17
- Using ParserPhase2-1.1.1 and StubManager-1.3.0
- Marc K. 04/10/08 12:57:00PM (EST)
- Did you put the
require "StubManager/StubManager.php";
in LocalSettings.php ? Jean-Lou Dupont 17:06, 10 April 2008 (UTC)
- Did you put the
- Yes, but I had commented it out for some reason. After removing the comment, I am now getting:
 % php update.php PHP Fatal error: Cannot redeclare class StubManager in ~/StubManager/StubManager.php on line 18
- Marc K. 04/10/08 02:50:00PM (EST)
- I see you are trying to use an admin command update.php : just comment out my extensions when you run an admin command. That should take care of it. Jean-Lou Dupont 19:02, 10 April 2008 (UTC)
- That did the trick. It is unfortunate that it requires this workaround, but it works. Thanks. Marc K. 04/11/2008 09:41:00 AM (EST)
- I believe I have found the root of this issue. It is now fixed in the SVN trunk, awaiting for a release. Thanks and Cheers. Jean-Lou Dupont 13:54, 11 April 2008 (UTC)
- That did the trick. It is unfortunate that it requires this workaround, but it works. Thanks. Marc K. 04/11/2008 09:41:00 AM (EST)
- I see you are trying to use an admin command update.php : just comment out my extensions when you run an admin command. That should take care of it. Jean-Lou Dupont 19:02, 10 April 2008 (UTC)
- Marc K. 04/10/08 02:50:00PM (EST)
Errors when using Twitter WikiWidget
[edit]MediaWiki = v1.13.2 PHP = v5.2.6 (cgi-fcgi)
Using: http://www.mediawikiwidgets.org/Twitter
Returns Error:
Warning: preg_replace() [function.preg-replace]: Unknown modifier '1' in /home/.kaspass/mkaplan/technomensch.net/w/extensions/ParserPhase2/ParserPhase2.php on line 283
Warning: preg_replace() [function.preg-replace]: Unknown modifier '\' in /home/.kaspass/mkaplan/technomensch.net/w/extensions/ParserPhase2/ParserPhase2.php on line 283
in /extensions/ ran svn update *, updated all extension. Error still present
-- Marc
MediaWiki 1.15 Fix
[edit]Mind you this a temporary fix, as it is not using frame->expand(). And it may not work well at all, but it should be at least a step in the right direction (it works on my system as far as I can tell)
Replace ParserPhase2.body.php with this: http://pastebin.org/6790
Very little change in the code, but it will bring functionality back as it should be. I'll keep my eye on this for now, if anyone else wishes to help repair it in a more complete fashion I'm willing to help out. --theYeas