By antonio on Friday, 13 August 2021
Posted in General Issues
Likes 0
Views 596
Votes 0
Hello,

I want to override the plugin Content hider in payplans. But if I create the override from joomla backend a get following error on articles, where the plugin is active:

0 - Call to undefined method plgPayplansContenthider::isMobile()

Thanks for help
Hey,

We fixed this internally and will include in our coming release.
Find attached file and replace with below mentioned path.
root\plugins\payplans\contenthider\tmpl\restricted.php

Thank you for understanding!
·
Monday, 30 August 2021 16:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey antonio,

Can you update us what thing you overrided and how, so i'll help you to check on this.
Also is it possible to share site backend and ftp details, so can check it.
·
Friday, 13 August 2021 16:52
·
0 Likes
·
0 Votes
·
0 Comments
·
So far I have overrided nothing. I only created the plugin override file from backend (templates - create overrides) and the error is there.
·
Friday, 13 August 2021 17:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey,

Can you share us with details what you have done, so will check it.
·
Friday, 13 August 2021 17:50
·
0 Likes
·
0 Votes
·
0 Comments
·
I only created override - see screenshot

And then the article which is restricted with the plugin ( {payplans} ...content ... {/payplans} ) shows the error.
·
Friday, 13 August 2021 19:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Is it possible for you to provide us with the back end and FTP access to your site to check on this issue?
·
Friday, 13 August 2021 19:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Unfortunately no, im with this only on local PC.
·
Friday, 13 August 2021 19:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey,

Sorry for the delayed response.

Unfortunately no, im with this only on local PC.

Can you provide us with the overrided file created at your site under the path show below.
root/templates/Your_site/Template/html/com_payplans

so we will help you to check it further.
·
Monday, 16 August 2021 11:03
·
0 Likes
·
0 Votes
·
0 Comments
·
this is the file

but the automatic created path is /templates/Your_site/Template/html/plg_payplans_contenthider
·
Monday, 16 August 2021 15:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey,

Thank you for sharing the details. the path created for override is wrong.
In PayPlans how template overriding will work, you can refer our documentation and create override then.
See here : https://stackideas.com/docs/payplans/administrators/customization/template-override

Let me know if you have any query.
·
Monday, 16 August 2021 18:29
·
0 Likes
·
0 Votes
·
0 Comments
·
I created a path

\templates\my-temp\html\com_payplans\apps\contenthider\restricted.php

but the file seems not to do anything, it still operates with the file from original plugin location and it ignores the override file. (also if it is in ...apps\contenthider\tmpl\restricted.php)
·
Monday, 16 August 2021 18:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey,

Ok, we will check this issue at locale first then will update you.
As you don't provide the site details.

We will update you again on this.
·
Monday, 16 August 2021 19:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello, now it is working also with the Joomla made original plugin overide path.

Thanks a lot.
·
Wednesday, 01 September 2021 15:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You are most welcome. Glad to hear that your issue has been resolved now.

Just for your information, I have locked and marked this thread as resolved to avoid confusion in the future. Please start a new thread if you have any other issues in the future so it will be easier for us to manage your inquiries.

Thanks for understanding.
·
Wednesday, 01 September 2021 16:09
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post