RSGallery2 Forum Portal

RSGallery2 support forums => RSGallery2 2.x bugs & problems => Resolved Issues => Topic started by: onastvar on February 15, 2008, 03:09:13 AM

Title: Manage Items
Post by: onastvar on February 15, 2008, 03:09:13 AM
When in RSGallery2 Control Panel when I click on Manage Items i get the following:

Sorry for the long code...Please assist?

Code: [Select]
jexception Object
(
    [_errors] => Array
        (
        )

    [level] => 1
    [code] => 1
    [message] => gallery id does not exist: 1
    [info] =>
    [file] =>
    [line] => 0
    [function] =>
    [class] =>
    [type] =>
    [args] =>
    [backtrace] => Array
        (
            [0] => Array
                (
                    [function] => __construct
                    [class] => jexception
                    [type] => ->
                    [args] => Array
                        (
                            [0] => 1
                            [1] => 1
                            [2] => gallery id does not exist: 1
                            [3] =>
                            [4] => 1
                        )

                )

            [1] => Array
                (
                    [file] => /home/www/bosanskinovi/components/com_rsgallery2/lib/j15backport/libraries/joomla/base/object.php
                    [line] => 49
                    [function] => call_user_func_array
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [0] => jexception Object
                                        (
                                            [_errors] => Array
                                                (
                                                )

                                            [level] => 1
                                            [code] => 1
                                            [message] => gallery id does not exist: 1
                                            [info] =>
                                            [file] =>
                                            [line] => 0
                                            [function] =>
                                            [class] =>
                                            [type] =>
                                            [args] =>
                                            [backtrace] => Array
 *RECURSION*
                                        )

                                    [1] => __construct
                                )

                            [1] => Array
                                (
                                    [0] => 1
                                    [1] => 1
                                    [2] => gallery id does not exist: 1
                                    [3] =>
                                    [4] => 1
                                )

                        )

                )

            [2] => Array
                (
                    [file] => /home/www/bosanskinovi/components/com_rsgallery2/lib/j15backport/libraries/joomla/utilities/error.php
                    [line] => 139
                    [function] => jobject
                    [class] => jexception
                    [type] => ->
                    [args] => Array
                        (
                            [0] => 1
                            [1] => 1
                            [2] => gallery id does not exist: 1
                            [3] =>
                            [4] => 1
                        )

                )

            [3] => Array
                (
                    [file] => /home/www/bosanskinovi/components/com_rsgallery2/lib/j15backport/libraries/joomla/utilities/error.php
                    [line] => 174
                    [function] => raise
                    [class] => jerror
                    [type] => ::
                    [args] => Array
                        (
                            [0] => 1
                            [1] => 1
                            [2] => gallery id does not exist: 1
                            [3] =>
                            [4] => 1
                        )

                )

            [4] => Array
                (
                    [file] => /home/www/bosanskinovi/administrator/components/com_rsgallery2/includes/gallery.manager.php
                    [line] => 202
                    [function] => raiseerror
                    [class] => jerror
                    [type] => ::
                    [args] => Array
                        (
                            [0] => 1
                            [1] => gallery id does not exist: 1
                        )

                )
[code]
[/code][/code][/code]
Title: Re: Manage Items
Post by: Jonah on February 15, 2008, 06:57:06 PM
Do you know how this error came about?  What you did to that then triggered this error?

You need to create a new gallery.  Then use phpmyadmin or another database tool to modify jos_rsgallery2_galleries and edit the new gallery and manually change the id to 1.  Then you can deal with the images that are in that gallery or delete it or whatever.
Title: Re: Manage Items
Post by: onastvar on February 17, 2008, 04:53:19 AM
Jonah, thanks for your reply. To answer your questions. I did an upgrade, to RSGallery2 1.14.3 Alpha - SVN 649. I have about 14 galleries where 2 of galleries have 4  subgalleries. Eveything is working fine after the upgrade, except when I'm in control panel and when I click on MANAGE ITEMS I get that code page.

Is there a way to fix this and to keep these 14 existing galleries?

Please advise - Thanks
Title: Re: Manage Items
Post by: Jonah on February 18, 2008, 05:13:33 PM
Odd, I can't see how upgrading would have caused that.

If you follow my directions, it will fix the issue and you will retain the rest of your data.
Title: Re: Manage Items
Post by: onastvar on February 19, 2008, 10:28:25 PM
Attached is screenshot of phpMyAdmin > Table: jos_rsgallery2_galleries. I'm not sure how to change ID to 1 any suggestions?

Thanks


[attachment no longer available]
Title: Re: Manage Items
Post by: Jonah on February 20, 2008, 02:32:59 PM
Click Browse
Edit the new gallery you created
Change the ID to 1.


WARNING: Make a backup first.  If you screw up it isn't my fault.   :)
Title: Re: Manage Items
Post by: onastvar on February 21, 2008, 04:40:22 AM
What NEW gallery did I create???
I've tried to change ID to 1 - same error - same result
Any other suggestions?
Title: Re: Manage Items
Post by: Jonah on February 21, 2008, 07:17:18 PM
What NEW gallery did I create???

Please actually read my posts.
Title: Re: Manage Items
Post by: onastvar on February 22, 2008, 04:01:27 AM
I'm not sure why you moved this post to resloved. The bug / issue could not be resloved with instructions from your posts.