Jump to content

Topic on Extension talk:PageAttachment

Browse/search for existing (uploaded) files and attach - FATAL ERROR

9
72.177.30.219 (talkcontribs)

Hi - Just want to start by saying this extension is awesome! Exactly what we needed!

I'm trying to attach existing files, and I get the following fatal error:


Catchable fatal error: Argument 1 passed to ImageListPager::__construct() must implement interface IContextSource, none given, called in C:\xampp\htdocs\feki\extensions\PageAttachment\browse-search\ImageListPager.php on line 52 and defined in C:\xampp\htdocs\feki\includes\specials\SpecialListfiles.php on line 66


I wasn't sure if it was a permissions thing so I edited DefaultConfigurations.php and tried setting all permissions to true. I have administration privileges, the MediaWiki is on a private network.

Any suggestions? Uploads work just fine, but for some reason, this does not.

Aldrin (talkcontribs)

Hi:

Based on the error you are getting, I am assuming you are using MediaWiki 1.19.x. This has been fixed in 3.0.0 (Issue #41). Please, download the alpha version 3.0.0 (Downloads)

I have been busy. If I get time this coming weekend then will release beta versions (2.2.0 & 3.0.0) with additional fix (Issue #58) reported for the alpha version

72.177.30.219 (talkcontribs)

Thank you Aldrin. You're assumption is correct, MW 1.19x. Sorry I didn't say that. To be honest, I'm not sure which version I had installed, but I'm pretty sure it was the most latest. I tried the 3.0.0 and it wouldn't work at all. I probably need to start with a fresh install of everything. Do you have a known platform you can specify? Also, do you feel the code is bullet-proof, or is it still a work in progress to get there? Thanks, it really is a great extension. I wish MediaWiki didn't work so hard to make uploads difficult, for a private intranet, file management is key!

Aldrin (talkcontribs)

Hi: I can never say the code is bullet proof, since, no matter how much you try, there is a bug lurking somewhere; otherwise, the code is pretty stable. I am using the 3.0 alpha version on my personal wiki.

My development platform is:

  • MacOSX 10.7.4
  • PHP 5.3.10
  • MediaWiki 1.16 thru 1.19

My personal wiki platform is:

  • Ubuntu 12.04 (server)
  • PHP 5.3.10
  • MediaWiki 1.19.0
  • PageAttachment 3.0.0-alpha

If you would share your platform details then I maybe able to help you better. By the way, if you are using PHP 5.2.x (MediaWiki 1.19 needs at least PHP 5.2.3) then be sure download PHP 5.2.x compatible release. See the compatibility page for details

72.177.30.219 (talkcontribs)

I'm running an XAMPP installation on a XP Pro workstation. Installation is:

Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1 MySQL client version: mysqlnd 5.0.8-dev - 20102224 - $Revision: 310735 $

Essentially, running Xampp 1.7.7 with MediaWiki 1.19.1

I will probably try a fresh install of MediaWiki and see if that makes a difference. Maybe I have some left over junk, this is my test platform anyway, so I can screw it up at will.

Aldrin (talkcontribs)

Hi:

Your system configuration looks okay; I am not sure why you are encountering issues. If your fresh install doesn't work then you could help me identify the issue by following the steps described below:

  1. Install and check if MediaWiki works
  2. Update "LocalSettings.php" file with the following settings:
    1. error_reporting(E_ALL | E_STRICT);
    2. ini_set("display_errors", 1);
    3. ini_set("log_errors", true);
    4. ini_set("error_log", "[A directory where your web server has write access]/log/error.log");
    5. $wgDebugLogFile = "[A directory where your web server has write access]/log/debug.log";
    6. $wgShowExceptionDetails = true;
    7. $wgShowSQLErrors = true;
    8. $wgDevelopmentWarnings = true;
  3. Then install PageAttachment extension
  4. Then run database update (php maintenance/update.php)
  5. If no errors, check if your wiki & PageAttachment extension is usable
  6. If error at step #4 or #5, note the error and open a new issue and attach the "error.log" & "debug.log" files
Inops (talkcontribs)

I'm having a similar problem in 1.92 using the latest edition (3.00 alpha) of this extension. I get a HTTP Error 500 server error in my browser - /mediawiki/index.php?title=Special:PageAttachmentListFiles&rvt=9b2684fb9d2c2f210908ab71a261a1a1e6bd96484ee0c1e81bf72e5b6cb46abe&rnd=V96XTB8JH1HPRPI7JNTZHEQ . Is there a fix for this? Thanks, Jordan.

Inops (talkcontribs)

It seems to be a problem with Special:PageAttachmentListFiles. Going to the page normally causes a server error.

Aldrin (talkcontribs)
Reply to "Browse/search for existing (uploaded) files and attach - FATAL ERROR"