Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.

 

[solved] Metamod has been confused

[solved] Metamod has been confused

Hi,

I have installed metamod in my site for many years
A month ago the metamod has started to confuse

I use this string
$vm = JomGenius("virtuemart");
if ($vm->check("category_ids = 42")) return 287;

When metamod see category 42 will return the module 287

The problem is: When  the metamod sees the category 42 it show the module 287 but also the 257 module
In order to help the problem exists only in the detail product view

Check for youself
http://maissis.gr/7725/42/epipla-esoter … etail.html

Any ideas?

zakgr
Beginner Modder
ranks
useravatar
Offline
3 Posts
Administrator has disabled public posting

Re: [solved] Metamod has been confused

Hi zakgr,

I'm just looking at this now... problem is I don't know which module is #287 and which is #257.

In general, if you are getting modules showing up that you didn't mention in the PHP code, then it could be:

1 - maybe you put 257 into the "quick module position or id include" box. Just leave that empty in most cases.
2 - maybe module #257 is assigned to a menu item that makes it show up on certain pages?
3 - maybe module #287 is actually a MetaMod itself (a MetaMod that includes another MetaMod) which then includes #257?

Maybe one of those helps...
please let me know how you get on
Cheers,
Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3312 Posts
User info in posts
Administrator has disabled public posting

Re: [solved] Metamod has been confused

Dear Metamod,

Module 257 and 287 are modules that are showing the categories of the e-shop
In my backend these modules are unpublised.
So I have created a metamod that says when you see a category with id 42 show 287 module
$vm = JomGenius("virtuemart");
if ($vm->check("category_ids = 42")) return 287;

It shows the module 287 but also 257

I can not imagine what might be wrong!
Some how the metamod confuse the category 42 with other category and show both modules

I saw your answers. Number 2 and 3 are defenetly not
Number 1, I can not find where are those you are describing

Thanks for your aswer!
Please help me I can not find a solution!

zakgr
Beginner Modder
ranks
useravatar
Offline
3 Posts
Administrator has disabled public posting

Re: [solved] Metamod has been confused

Hi Zakgr,

Try turning on MetaMod's debug mode. It always displays which modules it is including. If that does not list 257 then it's not MetaMod that is doing it.
I would also suggest turning off the MetaMod temporarily, and viewing the page where you were getting both 287 and 257. Obviously 287 will disappear -- does 257 also disappear or is it still there?

If this doesn't help to clear it up I would be happy to log into your site to have a look at it. In that case please PM me and I'll request for you to create a superadmin account for me to log in and take a look.

Best regards,
Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3312 Posts
User info in posts
Administrator has disabled public posting

Re: [solved] Metamod has been confused

Hi Stephen,

I can not find out what is happening.
I would be greatful if you could log in to my site and check it

zakgr
Beginner Modder
ranks
useravatar
Offline
3 Posts
Administrator has disabled public posting

Re: [solved] Metamod has been confused

Update: solved this problem in MetaMod 3.27, released 1 June 2016.

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3312 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1667
Total Polls:
6
Total Posts:
5909
Total Posts Today:
1
User Info:
 
Total Users:
10075
Newest User:
rsker57
Members Online:
0
Guests Online:
189

Online: 
There are no members online

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked