Different merging of parameters PHP5.3 vs. PHP5.4?

More
11 years 2 months ago #46334 by mcmurdok
I tried to access to some category parameters in the item-view ($this->item->params) to decide to show or not to show the JComments depending on the category preferences.

All is fine in php 5.3.2 so I got the right values from the category-parameters and the additional individual template parameters (I created a template "standard" with some additional values, e.g "show_comment_count").

In php 5.4.26 I got completely different values. The [clayout] is now "blog" instead of the correct [clayout] => standard. That's why I can't get access to my own template value "show_comment_count".

Maybe the merging function behaves different?

Regards
McMurdok


flexicontent version 2.1.2 r1806 beta
php 5.3.2 / php 5.4.26
Joomla! 2.5.16

Please Log in or Create an account to join the conversation.

More
11 years 2 months ago #46335 by micker
at first beta 1806 is very old ...
update this
code.google.com/p/flexicontent/d ... p&can=2&q=
and retest

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
11 years 2 months ago #46336 by mcmurdok
I just updated flexicontent to r1824 and it's the same strange behavior.

You can test it in item-view:
1. assign an item to only one category.
2. add
Code:
echo $this->item->params->get('clayout')
into item.php of the items template
3. You should now see the name of the template assigned to the category (and all it's parameters) in item-view

It's fine on local PHP 5.3
But on the server with PHP 5.4 I always get the template parameters of "blog" I never assigned to any category or item

Please Log in or Create an account to join the conversation.

More
11 years 2 months ago #46351 by ggppdk
Hello

does this effect occur with other parameters too ?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
11 years 2 months ago #46356 by mcmurdok
Hello,
yes this effect occurs to all parameters I assigened to a category and which I want to access from item-view.
Also self-generated parameters don't appear, because it seems to use parameters of the wrong template ("blog")

Please Log in or Create an account to join the conversation.

More
11 years 2 months ago #46357 by ggppdk
Hello


please send me a PM with super admin login and site URL and provide an example to reproduce/view this effect


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.313 seconds
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save