Problems with 2.6.0 Alpha4

Phoca Gallery - image gallery extension
usch
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 31 Jul 2009, 15:21

Problems with 2.6.0 Alpha4

Post by usch »

I´m using 2.5.8 (german language) without problems. When upgrading to 2.6.0 Alpha4 I get the following error in frontend:

Fatal error: Call to undefined method PhocaGalleryImageFront::displayimageornoimage() in /www/htdocs/[...]/modules/mod_phocagallery_image/mod_phocagallery_image.php on line 511
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Problems with 2.6.0 Alpha4

Post by Jan »

Hi, Alpha version is a development version. There are no modules and no plugins ready for this version. If you want to test the Alpha, you need to disable all Phoca Gallery modules and plugins.

Jan
If you find Phoca extensions useful, please support the project
ciobanu
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 16 Nov 2009, 23:15

Re: Problems with 2.6.0 Alpha4

Post by ciobanu »

Yes, we have this problem too -- the user control panel is working fine for us on the front end -- but when we re-parent a category on the back end, the front-end loses it's place and will try to make a new folder.

The menu tree gets very crowded very quickly. This means that we must make sub-categories to put the incoming new users in. When we move a user's category from the root folder to a sub-folder (for example, Contributors > Alex ), the front-end user control panel fails to "track" the new location for the category.

Worse, when we put the category BACK up to the root folder, the front-end STILL cannot find the user images/categories again.

Maybe if the parameters had a drop-down list like "Put new users in Category: [ Contributors ]" . And then be sure that the front-end can find the user category when it is re-parented on the back end.
  • To Test:
    1. In the back-end Admin, re-parent a user category, from the root folder (images/phocagallery) using the Parent: dropdown list in the Gallery Category.
    2. Log in as that user in the front-end
    3. Use your menu item to access the User Control Panel
    4. Note that it reports 1 Category used, but "Main Category: (-) Not created
In otherwords, if the user main category is moved, the front-end can no longer find it.

Our site is Guide-to-Romania,I'll PM the user/pass for u.

THANKS so much -- the 2.6.0 is looking SUPER Jan :)
Last edited by ciobanu on 17 Nov 2009, 22:35, edited 1 time in total.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Problems with 2.6.0 Alpha4

Post by Jan »

Hi, thank you for the info, I will take a look at it.

Jan
If you find Phoca extensions useful, please support the project
ciobanu
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 16 Nov 2009, 23:15

Re: Problems with 2.6.0 Alpha4

Post by ciobanu »

Hey Jan, me again -- I know that 2.6 is Alpha code, but you might wanna take a look at the Joom!Fish compatability ...

I made a NEW user, and this happens on the first viewing of the User Control Panel (UCP).

In the UCP, i have (English):

Code: Select all

User:  	Iulian Xey
Username: 	iulixey02
Main Category: 	Not created (Not created)
Number of categories: 	0 (Max: 999, LEFT: 999)
Number of images: 	0
Used space: 	0 B (Max: 976.56 MB, LEFT: 976.56 MB)
But (Romanian):

Code: Select all

Utilizator:  	Iulian Xey
Numele utilizatorului: 	iulixey02
Categoria Principală: 	Nu a fost creat (Nu a fost creat)
Numărul categoriilor: 	0 (Max: 5, Rămase: 5)
Numărul imaginilor: 	0
Spațiu folosit: 	0 B (Max: 20.00 MB, Rămase: 20.00 MB)
Why would the VALUES be different? When I set the parameters, the English is updated... but not the language. I don't have an area to update the parameters in the language (romanian). Where would this be? I can't find the table in the database even where that might be stored.

UPDATE:
:x After four hours of looking, I just can't find why the J!F language parameters are different than the base English parameters. So, I just did a very quick and very dirty hack of the user view.html.php :

Code: Select all

		//$tmpl['uploadmaxsize'] 		= $params->get( 'upload_maxsize', 3145728 );
		$tmpl['uploadmaxsize'] 		= 3145888;
		$tmpl['uploadmaxsizeread'] 	= PhocaGalleryFile::getFileSizeReadable((int)$tmpl['uploadmaxsize']);
		$tmpl['uploadmaxreswidth'] 	= $params->get( 'upload_maxres_width', 3072 );
		$tmpl['uploadmaxresheight'] = $params->get( 'upload_maxres_height', 2304 );
		//$tmpl['usersubcatcount']	= $params->get( 'user_subcat_count', 20 );
		$tmpl['usersubcatcount']	= 100;
		//$tmpl['userimagesmaxspace']	= $params->get( 'user_images_max_size', 81921520 );
		$tmpl['userimagesmaxspace']	=  1048576888;
That makes it work, but it's not very elegant! :cry: I don't see why the $params->get are not working with the Joomfish language, I'm just not experienced enough to understand how the parameters are filtered.

Thanks!

David
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Problems with 2.6.0 Alpha4

Post by Jan »

Hi,

regarding the joomfish, maybe the settings are saved so there cannot be taken default parameters and joomfish has saved some before so it takes the saved. The changing of version (upgrading Phoca Gallery) doesn't take any effect as the parameters are saved yet.

regarding the categories. Yes there is a problem with folders. Normally Phoca Gallery has independent database and filesystem layer but in frontend it is not so as user in frontend cannot create a folder on the server. It is automatically created and is connected to category. So you cannot move the category in backend as in frontend users must have one root category and this category has connecting to folder. Subcategories of the main category can be moved but only in main category.

For now I see no other way then this. There are a lot of possible combinations (unlimited categories, rights to upload, display, published and unpublished, etc.) so there is such limitation. In frontend if user has no main cateory he must create one so he can upload images and add subcategories. But if this is created then it is root and must be root category and cannot be moved to some other category :( :( :(


There are different security reasons so the main category is checked. So it is still the main category and it can have the main folder on the server. You can change the main category for the user in backend, so you will create a category, will select the folder and assing this category for the user but it must be the root category :-(
Jan
If you find Phoca extensions useful, please support the project
Post Reply