Extension talk:PageAttachment

From MediaWiki.org
Jump to: navigation, search
Start a new discussion

Contents

Thread titleRepliesLast modified
Warning: Unexpected character in input: '\' (ASCII=92) state=1 202:12, 22 January 2012
Fatal Error: Class ListFiles not found516:30, 22 December 2011
Can you please provide a way to modify PA for use with php 5.2.13 206:23, 24 December 2011
Description113:09, 3 December 2011

Warning: Unexpected character in input: '\' (ASCII=92) state=1

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();
NewMexicoKid16:15, 21 January 2012

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
Aldrin20:20, 21 January 2012

Done. Thanks very much for the quick response!

NewMexicoKid02:12, 22 January 2012
 
 

Fatal Error: Class ListFiles not found

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

125.26.244.25410:45, 25 October 2011

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);

125.26.244.25400:04, 26 October 2011

Unable to reproduce this error.

Could you provide a little more details. MediaWiki version: ? PageAttachment version: ? PHP version: ?

Aldrin13:12, 3 December 2011

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://[....]

87.204.14.3410:32, 22 December 2011
 

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://[....]

87.204.14.3410:32, 22 December 2011

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

Aldrin16:30, 22 December 2011
 
 
 
 

Can you please provide a way to modify PA for use with php 5.2.13

Can you please provide a way to modify PA for use with php 5.2.13 Is it real?

90.150.64.8506:21, 8 December 2011

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

Aldrin17:36, 8 December 2011

Beta versions released. Check download page at http://code.google.com/p/mediawiki-page-attachment/downloads/list

Aldrin06:23, 24 December 2011
 
 

Description

Could the description of the file also be added?

125.26.244.25400:49, 26 October 2011

Added this in version 1.2.0

Aldrin13:09, 3 December 2011
 
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox