- Posts: 5
- Thank you received: 0
\helper.php on line 13 fix not working! Help!
-
Green Jelly
Inactive member -
Topic Author
- New Member
-
Less
More
10 years 10 months ago #38589
by Green Jelly
\helper.php on line 13 fix not working! Help! was created by Green Jelly
Hi,
I've been getting:
Notice: Constant JPATH_VM_ADMINISTRATOR already defined in C:\wamp\www\pinkcola\modules\mod_vmscroller\helper.php on line 13
on the main shop page after installing the module. I have followed the fix as detailed in previous post, (comment out line 13) and this fixes the shop pages however this now breaks all other pages!
Notice: Use of undefined constant JPATH_VM_ADMINISTRATOR - assumed 'JPATH_VM_ADMINISTRATOR' in C:\wamp\www\pinkcola\modules\mod_vmscroller\helper.php on line 16
and
Warning: require_once(JPATH_VM_ADMINISTRATOR\helpers\config.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in C:\wamp\www\pinkcola\modules\mod_vmscroller\helper.php on line 16
and
Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'JPATH_VM_ADMINISTRATOR\helpers\config.php' (include_path='.;C:\php\pear') in C:\wamp\www\pinkcola\modules\mod_vmscroller\helper.php on line 16
Image file attached for you.
Please help! The module is great and perfect for my client's purposes however if I can't get this working then I'm truly stuck!
Many thanks in advance!
I've been getting:
Notice: Constant JPATH_VM_ADMINISTRATOR already defined in C:\wamp\www\pinkcola\modules\mod_vmscroller\helper.php on line 13
on the main shop page after installing the module. I have followed the fix as detailed in previous post, (comment out line 13) and this fixes the shop pages however this now breaks all other pages!
Notice: Use of undefined constant JPATH_VM_ADMINISTRATOR - assumed 'JPATH_VM_ADMINISTRATOR' in C:\wamp\www\pinkcola\modules\mod_vmscroller\helper.php on line 16
and
Warning: require_once(JPATH_VM_ADMINISTRATOR\helpers\config.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in C:\wamp\www\pinkcola\modules\mod_vmscroller\helper.php on line 16
and
Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'JPATH_VM_ADMINISTRATOR\helpers\config.php' (include_path='.;C:\php\pear') in C:\wamp\www\pinkcola\modules\mod_vmscroller\helper.php on line 16
Image file attached for you.
Please help! The module is great and perfect for my client's purposes however if I can't get this working then I'm truly stuck!
Many thanks in advance!
Please Log in to join the conversation.
-
ivan.milic
Support Staff -
- Moderator
-
Less
More
- Posts: 14116
- Thank you received: 1639
10 years 9 months ago - 10 years 9 months ago #38595
by ivan.milic
Replied by ivan.milic on topic \helper.php on line 13 fix not working! Help!
Try this, replace
JPATH_VM_ADMINISTRATOR
with
MY_JPATH_VM_ADMINISTRATOR
in all module php files
JPATH_VM_ADMINISTRATOR
with
MY_JPATH_VM_ADMINISTRATOR
in all module php files
Last edit: 10 years 9 months ago by ivan.milic.
The following user(s) said Thank You: Green Jelly
Please Log in to join the conversation.
-
Green Jelly
Inactive member -
Topic Author
- New Member
-
Less
More
- Posts: 5
- Thank you received: 0
10 years 9 months ago #38666
by Green Jelly
Replied by Green Jelly on topic \helper.php on line 13 fix not working! Help!
Thanks, that did it - I uncommented line 13 in mod_vmscroller/mod_vmscroller.php and then replaced all instances of JPATH_VM_ADMINISTRATOR with MY_JPATH_VM_ADMINISTRATOR - it now all works with no error messages that I can see so far - thanks for your help!
Please Log in to join the conversation.
Time to create page: 0.147 seconds