plg_mvcoverride icon indicating copy to clipboard operation
plg_mvcoverride copied to clipboard

Fix the module override non-functioning problem

Open hfittipaldi opened this issue 8 years ago • 9 comments

Hi, I changed the JModelLegacy::addIncludePath by JModuleHelper::addIncludePath

hfittipaldi avatar Apr 08 '16 20:04 hfittipaldi

Where can I download the complete package of the plugin with new version ? I can't see any files here

I can only find the old one here https://github.com/ghazal/plg_mvcoverride thank you

ghost avatar Apr 09 '16 01:04 ghost

You can download it from repository: https://github.com/hfittipaldi/plg_mvcoverride

Em 08/04/2016 22:43, ymages escreveu:

Where can I download the complete package of the plugin with new version ? I can't see any files here thank you

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/ghazal/plg_mvcoverride/pull/16#issuecomment-207679861

hfittipaldi avatar Apr 09 '16 02:04 hfittipaldi

it works fine for J 3.5.1 on code/com_users/models/reset.php but I get an error 500 on code/com_users/controllers/registration.php (even without changing a single word in the file)

Thanks

I love your plugin it should be in Joomla core :-)

Le 9 avr. 2016 à 04:23, Hugo Fittipaldi [email protected] a écrit :

You can download it from repository: https://github.com/hfittipaldi/plg_mvcoverride

Hugo Fittipaldi 21 98476-2962 [email protected]

Em 08/04/2016 22:43, ymages escreveu:

Where can I download the complete package of the plugin with new version ? I can't see any files here thank you

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/ghazal/plg_mvcoverride/pull/16#issuecomment-207679861

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/ghazal/plg_mvcoverride/pull/16#issuecomment-207684576

ghost avatar Apr 09 '16 02:04 ghost

this is also interesting http://icueproject.com/downloads/override-xml-forms it could be combined into a single plugin with yours

ghost avatar Apr 09 '16 02:04 ghost

@hfittipaldi Thank you for making this little but useful extension work again. I have a proposal : as I refuse to get the credits for the great job you've done, I suggest you create a new Repo of the plugin. It will kind of unfork it, and you'll get access to Issues. I'll leave a link to your new repo on this one. I know people still land here from stackoverflow or else. Are you OK with this ?

ghazal avatar Apr 09 '16 09:04 ghazal

@ghazal In fact, the solution was yours (http://joomla.stackexchange.com/questions/5449/override-mvc-classes-in-joomla-3), I just change the lines.

I'm not an expert as you are, but ok, I'll give it a try. What can I do?

Em 09/04/2016 06:23, ghazal escreveu:

@hfittipaldi https://github.com/hfittipaldi Thank you for making this little but useful extension work again. I have a proposal : as I refuse to get the credits for the great job you've done, I suggest you create a new Repo of the plugin. It will kind of unfork it, and you'll get access to Issues. I'll leave a link to your new repo on this one. I know people still land here from stackoverflow or else. Are you OK with this ?

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/ghazal/plg_mvcoverride/pull/16#issuecomment-207751910

hfittipaldi avatar Apr 09 '16 15:04 hfittipaldi

@ymages,

This error occurs because the constant JPATH_COMPONENT is not defined. You have to define it manually: JPATH_SOURCE_COMPONENT . '/controllers.php' OR '/home/your_site/[/public_html/ or /www/]/templates/your_template/code/com_users/controllers.php'

Em 08/04/2016 23:39, ymages escreveu:

it works fine for J 3.5.1 on code/com_users/models/reset.php but I get an error 500 on code/com_users/controllers/registration.php

Thanks

I love your plugin :-)

Le 9 avr. 2016 à 04:23, Hugo Fittipaldi [email protected] a écrit :

You can download it from repository: https://github.com/hfittipaldi/plg_mvcoverride

Hugo Fittipaldi 21 98476-2962 [email protected]

Em 08/04/2016 22:43, ymages escreveu:

Where can I download the complete package of the plugin with new version ? I can't see any files here thank you

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub

https://github.com/ghazal/plg_mvcoverride/pull/16#issuecomment-207679861

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/ghazal/plg_mvcoverride/pull/16#issuecomment-207684576

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/ghazal/plg_mvcoverride/pull/16#issuecomment-207685911

hfittipaldi avatar Apr 09 '16 20:04 hfittipaldi

to define it manually where ? there is no settings in your plugin to do that

thanks

Le 9 avr. 2016 à 22:34, Hugo Fittipaldi [email protected] a écrit :

@ymages,

This error occurs because the constant JPATH_COMPONENT is not defined. You have to define it manually: /home//your_site//[/public_html/ or /www/]/components/com_users/controllers.php OR /home//your_site//[/public_html/ or /www/]/templates//your_template//code/com_users/controllers.php

Em 08/04/2016 23:39, ymages escreveu:

it works fine for J 3.5.1 on code/com_users/models/reset.php but I get an error 500 on code/com_users/controllers/registration.php

Thanks

I love your plugin :-)

Le 9 avr. 2016 à 04:23, Hugo Fittipaldi [email protected] a écrit :

You can download it from repository: https://github.com/hfittipaldi/plg_mvcoverride

Hugo Fittipaldi 21 98476-2962 [email protected]

Em 08/04/2016 22:43, ymages escreveu:

Where can I download the complete package of the plugin with new version ? I can't see any files here thank you

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub

https://github.com/ghazal/plg_mvcoverride/pull/16#issuecomment-207679861

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/ghazal/plg_mvcoverride/pull/16#issuecomment-207684576

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/ghazal/plg_mvcoverride/pull/16#issuecomment-207685911

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/ghazal/plg_mvcoverride/pull/16#issuecomment-207849324

ghost avatar Apr 10 '16 01:04 ghost

then why it works for models and not controllers ?

with controllers if I put debug on I get

0 Plugin MVC Override Call stack

Function Location

1 JApplicationCms->execute() /www/sacapuce/index.php:49 2 JApplicationSite->doExecute() /www/sacapuce/libraries/cms/application/cms.php:257 3 JApplicationSite->route() /www/sacapuce/libraries/cms/application/site.php:215 4 JApplicationCms->route() /www/sacapuce/libraries/cms/application/site.php:763 5 JApplicationBase->triggerEvent() /www/sacapuce/libraries/cms/application/cms.php:1107 6 JEventDispatcher->trigger() /www/sacapuce/libraries/joomla/application/base.php:106 7 JEvent->update() /www/sacapuce/libraries/joomla/event/dispatcher.php:160 8 call_user_func_array() /www/sacapuce/libraries/joomla/event/event.php:69 9 PlgSystemMVCOverride->onAfterRoute()

Le 9 avr. 2016 à 22:34, Hugo Fittipaldi [email protected] a écrit :

@ymages,

This error occurs because the constant JPATH_COMPONENT is not defined. You have to define it manually: /home//your_site//[/public_html/ or /www/]/components/com_users/controllers.php OR /home//your_site//[/public_html/ or /www/]/templates//your_template//code/com_users/controllers.php

Em 08/04/2016 23:39, ymages escreveu:

it works fine for J 3.5.1 on code/com_users/models/reset.php but I get an error 500 on code/com_users/controllers/registration.php

Thanks

I love your plugin :-)

Le 9 avr. 2016 à 04:23, Hugo Fittipaldi [email protected] a écrit :

You can download it from repository: https://github.com/hfittipaldi/plg_mvcoverride

Hugo Fittipaldi 21 98476-2962 [email protected]

Em 08/04/2016 22:43, ymages escreveu:

Where can I download the complete package of the plugin with new version ? I can't see any files here thank you

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub

https://github.com/ghazal/plg_mvcoverride/pull/16#issuecomment-207679861

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/ghazal/plg_mvcoverride/pull/16#issuecomment-207684576

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/ghazal/plg_mvcoverride/pull/16#issuecomment-207685911

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/ghazal/plg_mvcoverride/pull/16#issuecomment-207849324

ghost avatar Apr 10 '16 01:04 ghost