Error after upgrade from 1.8.8 to 2.0.0 beta

Phoca Gallery - image gallery extension
User avatar
poi
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 15 Sep 2008, 23:20

Re: Error after upgrade from 1.8.8 to 2.0.0 beta

Post by poi »

zar wrote:Hi Poi,

if I deactivate the virtuemart-feature in phoca - everything works fine.
Agghhhhhhhhh..... :o

In legancy mode itz running!!!!! Whatz happend now ?
zar
Phoca Member
Phoca Member
Posts: 25
Joined: 16 May 2008, 22:15
Contact:

Re: Error after upgrade from 1.8.8 to 2.0.0 beta

Post by zar »

[quote] In legancy mode itz running!!!!! Whatz happend now ? [/quote]
Interesting. What have I to do to go in legacy mode?
Randal
Phoca Member
Phoca Member
Posts: 25
Joined: 05 Jul 2008, 15:24

Re: Error after upgrade from 1.8.8 to 2.0.0 beta

Post by Randal »

Turn ON "Legacy plugin" in PLUGINS!
sjnims
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 13 Oct 2008, 12:54

Re: Error after upgrade from 1.8.8 to 2.0.0 beta

Post by sjnims »

I get this error message with 2.0.1 but not with 2.0.0. I do not have VM installed at all, so this is what stumped me for a long while. I wanted to use phoca bc after repeated attempts to use RSgallery, I have decided it blows ass chunks and am leaving it for good. If there are no real reasons to upgrade to 2.0.1 then I will be sticking with 2.0.0.
sjnims
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 13 Oct 2008, 12:54

Re: Error after upgrade from 1.8.8 to 2.0.0 beta

Post by sjnims »

[Update] - I have 2 categories, each with just 1 picture, one set to be viewable by registered users only, the other is public. When I am logged out, I can see the public category and the picture in it. When I log in and try to view the categories, the error is displayed.
zar
Phoca Member
Phoca Member
Posts: 25
Joined: 16 May 2008, 22:15
Contact:

Re: Error after upgrade from 1.8.8 to 2.0.0 beta

Post by zar »

You get the same Error massage

[quote] Fatal error: Call to a member function load() on a non-object in /is/htdocs/.../libraries/joomla/user/user.php on line 598 [/quote]

and you haven't install the virtuemart-shop??
I think only Jan can check this.

LG Zar
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49279
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Error after upgrade from 1.8.8 to 2.0.0 beta

Post by Jan »

Yes, this error is called from VM module ...


sjnims
please create new topic and let me know what error do you get if you are logged in ?

Jan
If you find Phoca extensions useful, please support the project
gergoe
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 15 Oct 2008, 19:30

Re: Error after upgrade from 1.8.8 to 2.0.0 beta

Post by gergoe »

It wasn't working for me neither, took the effort to track it down:

load() is indeed called from VM, but that's pretty normal, the problem happens when this call is made when the phoca module appears anywhere on the same screen/page (regardless of the integration setting) when this call is made.

Phoca modifies the search path returned by JTable::addIncludePath(), the Phoca path is placed in the first position (before Joomla!), and when the JTable::getInstance() searches the user.php file (which defines the JTableUser class), it founds the \administrator\components\com_phocagallery\tables\user.php file instead, and loads that file, but that file holds no information about the JTableUser class, so when the JUser->getTable() calls load(), it fails, the method is not defined.

As a workaround, I've simply threw

Code: Select all

require_once('libraries/joomla/database/table/user.php');
on top of the \administrator\components\com_phocagallery\tables\user.php file, so whenever the Joomla framework picks the wrong file, the right one will be available too.

I'm really not familiar with the new Joomla architecture, so there are certainly better way(s) to solve this, but that I'll leave that for someone else, let this post serve as a starting point.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49279
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Error after upgrade from 1.8.8 to 2.0.0 beta

Post by Jan »

Hi, thank you for this useful information, I have changed some code to remove the conflict between Phoca Gallery and VirtueMart... Please download Phoca Gallery version 2.0.2, upgrade and test it, it should be fixed now...

Please let me know.

Thank you, Jan

https://www.phoca.cz/documentation/index ... -component

After upgrading to 2.0.2 you should delete these files (e.g. via FTP):
administrator\components\com_phocagallery\tables\user.php
administrator\components\com_phocagallery\tables\category.php
If you find Phoca extensions useful, please support the project
gergoe
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 15 Oct 2008, 19:30

Re: Error after upgrade from 1.8.8 to 2.0.0 beta

Post by gergoe »

Works well, good work!
Post Reply