Extension talk:PageAttachment
Contents
| Thread title | Replies | Last modified |
|---|---|---|
| Warning: Unexpected character in input: '\' (ASCII=92) state=1 | 2 | 02:12, 22 January 2012 |
| Fatal Error: Class ListFiles not found | 5 | 16:30, 22 December 2011 |
| Can you please provide a way to modify PA for use with php 5.2.13 | 2 | 06:23, 24 December 2011 |
| Description | 1 | 13:09, 3 December 2011 |
Thank you for writing this extension!
When installing this, I'm seeing (in the browser when trying to access a page):
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in extensions/PageAttachment/SetupExtension.php on line 131 Parse error: syntax error, unexpected T_STRING in extensions/PageAttachment/SetupExtension.php on line 131
Line 131 in SetupExtension.php says:
$requestHandler = new PageAttachment\RequestHandler();
Please kindly open a bug report at the following link:
http://code.google.com/p/mediawiki-page-attachment/issues/list
with the following details:
- PageAttachment version
- MediaWiki version
- PHP version
- Operating System name & version
Done. Thanks very much for the quick response!
I installed the PageAttachment extension on Mediawiki 1.17.0. I can see the File Attachment Box at the bottom of the page (with no attachments), but when I click the browse button I get the following error:
"Fatal error: Class '\PageAttachment\BrowseSearch\ListFiles' not found in .../wiki/includes/SpecialPage.php on line 404"
I get a similar error if I click the attachment button. Any thoughts?
Thanks, E
Solved. Simply had to remove the // in SetupExtension.php
Also, I had to edit ui/Command.php to get the 'View Attachment History' button to work. This is the line in 'private function getViewHistoryCommandURL($fileName)' that I changed:
return $wgScriptPath . '/index.php?title=File:' . rawurldecode($fileName);
Unable to reproduce this error.
Could you provide a little more details. MediaWiki version: ? PageAttachment version: ? PHP version: ?
I've got this error too. Ubuntu 10.04 LTS. MediaWiki 1.18.0 (installed from tar.gz file, not by apt-get), PageAttachement v 2.0.0 and PHP 5.3.2-1ubuntu4.11 with Suhosin-Patch (cli)
Update script runned without any errors.
and error.log looks like that:
PHP Fatal error: Class '\\PageAttachment\\BrowseSearch\\ListFiles' not found in /var/www/includes/SpecialPageFactory.php on line 318, referer: http://[....]
I've got this error too. Ubuntu 10.04 LTS. MediaWiki 1.18.0 (installed from tar.gz file, not by apt-get), PageAttachement v 2.0.0 and PHP 5.3.2-1ubuntu4.11 with Suhosin-Patch (cli)
Update script runned without any errors.
and error.log looks like that:
PHP Fatal error: Class '\\PageAttachment\\BrowseSearch\\ListFiles' not found in /var/www/includes/SpecialPageFactory.php on line 318, referer: http://[....]
Hi:
Would you please open a bug/issue report with details at the following link:
http://code.google.com/p/mediawiki-page-attachment/issues/list
I'll take a look at it as soon as time permits.
Aldrin
Can you please provide a way to modify PA for use with php 5.2.13 Is it real?
Could you please open an issue/bug report for this. Issues/bug reports are maintained at the following link:
http://code.google.com/p/mediawiki-page-attachment/issues/list
I'll take a look to see if anything can be done to make PA work with PHP 5.2.x
Beta versions released. Check download page at http://code.google.com/p/mediawiki-page-attachment/downloads/list