Doesn't run like it should be on production site

10 months 1 week ago #7 by Filip
Also tested that again but I still have the same problems.

its is loaded in an override called plant.php witch works very good onb the development site

<?php
$document = JFactory::getDocument();
$renderer = $document->loadRenderer('modules');
$position = "position6";
$options = array('style' => 'raw');
echo $renderer->render($position, $options, null);
?>

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

10 months 1 week ago #8 by Christopher Mavros
Replied by Christopher Mavros on topic Doesn't run like it should be on production site
That makes sense. Which component is this override for? Is it for Joomla articles (com_content)?
Is Cache enabled on your development site?

Christopher Mavros
mavrosxristoforos@gmail.com
If you like our extensions, please rate us on the JED!

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

10 months 1 week ago - 10 months 5 days ago #9 by Filip
Christopher,

On developement: plugin was disabled! Both module and component works. I cannot remember thati "Disabled" it. Good you found this one!

On life site: plugin is now disabled. No items are found in component view.

BUT NOW!!!! (after some extra search)

I think I found an extra problem/error/mistake. During all the testing it seems that in the "hidden" menu the component has a value of a "blanc character" in the Deault List ID setting. So the cookie has a extra "blanco character" = space

Only in module, it seems that it not remembers the value from the item

We are a little bit further....

Filip

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

9 months 3 weeks ago #10 by Christopher Mavros
Replied by Christopher Mavros on topic Doesn't run like it should be on production site
Hello Filip.
I'm sorry for the late reply. I saw the problem, and the only thing I can say is that the plant.php override is somehow cached, and the cached version is always served when you load the article.
Since you load the article before adding it to the favorites (obviously) the loaded version is always the one that it's not in the list.
However, if you go to the component view (/shortlist) you see that it worked normally.
So, somehow there is something caching the wrapper around the plant.php file. Can you check that?

Christopher Mavros
mavrosxristoforos@gmail.com
If you like our extensions, please rate us on the JED!

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

9 months 3 weeks ago - 9 months 3 weeks ago #11 by Filip
That's the problem what I can't find... Main cache settings on Dev and Productions are the same

----
Filip

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

9 months 3 weeks ago #12 by Christopher Mavros
Replied by Christopher Mavros on topic Doesn't run like it should be on production site
Can you give me admin access to the dev site, too? My email is mavrosxristoforos@gmail.com.

I checked on the production site, and the plant.php is a layout of the com_content component. Articles are definitely cached, and whatever is inside them, is also cached. I want to check the dev settings, in case I spot something that makes the difference.

Christopher Mavros
mavrosxristoforos@gmail.com
If you like our extensions, please rate us on the JED!

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

Moderators: Christopher Mavros