Jump to content


Welcome to IPS!

Feel free to browse our community to get a feel for how our community software operates. Post in the pre-sales forum with any questions you have before purchasing or use the Test Posting forum to post a few messages yourself! You can also get a free demo to try the IPS Community Suite yourself.

Already an active IPS client?

Login with the same email address and password you use for the client area to access client-only areas.

Issue information

  • #024873

  • Not a Bug

  • 3.2.2

  • -

  • 0 - None Assigned


Issue Confirmations

  • Yes (0)No (0)
Photo

Can't move an image.

Posted by chuckf on 18 August 2010 - 07:30 PM

I'm running IPB 3.1.2 and Gallery 3.2.2.

I have a bunch of albums and sub-albums in the default Members Gallery category.

When I try to move an image from one album to another I get the following errors:

Note: The image is in a sub-album and I'm trying to move it to its parent album using the Mod Options on the image.

Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/fischero/www/www/admin/applications_addon/ips/gallery/modules_public/post/mod.php on line 606

Warning: implode() [function.implode]: Invalid arguments passed in /home/fischero/www/www/admin/applications_addon/ips/gallery/modules_public/post/mod.php on line 606

Warning: Cannot modify header information - headers already sent by (output started at /home/fischero/www/www/admin/applications_addon/ips/gallery/modules_public/post/mod.php:606) in /home/fischero/www/www/admin/sources/classes/output/formats/html/htmlOutput.php on line 109

Warning: Cannot modify header information - headers already sent by (output started at /home/fischero/www/www/admin/applications_addon/ips/gallery/modules_public/post/mod.php:606) in /home/fischero/www/www/admin/sources/classes/output/formats/html/htmlOutput.php on line 120

Warning: Cannot modify header information - headers already sent by (output started at /home/fischero/www/www/admin/applications_addon/ips/gallery/modules_public/post/mod.php:606) in /home/fischero/www/www/admin/sources/classes/output/formats/html/htmlOutput.php on line 129

Warning: Cannot modify header information - headers already sent by (output started at /home/fischero/www/www/admin/applications_addon/ips/gallery/modules_public/post/mod.php:606) in /home/fischero/www/www/admin/sources/classes/output/formats/html/htmlOutput.php on line 130

Warning: Cannot modify header information - headers already sent by (output started at /home/fischero/www/www/admin/applications_addon/ips/gallery/modules_public/post/mod.php:606) in /home/fischero/www/www/admin/sources/classes/output/formats/html/htmlOutput.php on line 134

Need to put this in here so I can find it again. I did some work on this over the weekend, and have a plausible patch..

I am assuming that you are likely trying to move an image into a category using the multi-mod options, where you check the images you want to move.

The SINGLE move works fine.. Where, if you go into an image, select Mod Options and move an image it works. It's when you try to move mutliple images (or even one image) using the multi-features, where you check an image.

This is already reported, just no fix for it.. My quickie fix was /admin/applications_addon/ips/gallery/modules_public/post/mod.php

		else
		{
			$destination_type	= 'cat';
			$destination_id		= intval( $destination );
		}

Change that to

		else
		{
			$destination_type	= 'cat';
			$destination_id		= intval( $this->request['move'] );
		}


Use at your own risk, but seems to be happy.


Updating status to: Not a Bug


Attaching a file that seems to fix all problems with this.. Because I don't want to write this again.

Just in case.

Attached Files

  • Attached File  mod.php   37.04K   3 downloads






1 user(s) are reading this issue

0 members, 1 guests, 0 anonymous users