English (United Kingdom)
Jms Multi Site, formerly joomla multisite.
Create, share multiple joomla sites in few clicks !
Message
  • EU e-Privacy Directive

    This website uses cookies to manage authentication, navigation, and other functions. By using our website, you agree that we can place these types of cookies on your device.

    View e-Privacy Directive Documents

Welcome, Guest
Please Login or Register.    Lost Password?

JPATH_COMPONENT already defined after upgrade
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: JPATH_COMPONENT already defined after upgrade
#11249
JPATH_COMPONENT already defined after upgrade 11 Years, 7 Months ago Karma: 0
Hello

We just upgraded to 1.3.09 - FULL and unfortunately got error after patching

Notice: Constant JPATH_COMPONENT already defined in /home/canadare/subdomains/master/public_html/components/com_community/community.php on line 12

how would you solve this issue?

thank you
canadareic
Senior Boarder
Posts: 59
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#11253
Re: JPATH_COMPONENT already defined after upgrade 11 Years, 7 Months ago Karma: 54
The issue seems located in JomSocial.

Would you please send us the JoomSocial package that you use in the attachment of an email and also mention the JomSocial version number.
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#11256
Re: JPATH_COMPONENT already defined after upgrade 11 Years, 7 Months ago Karma: 0
files were send

is it save to not patch this file till issue will be solved?



components/com_community/community.php
Fix the JPATH_COMPONENT computation used by ajax call. Replace the dirname by JPATH_BASE./components/XXXXX path.

Actions:

Replace 1 line containing the new define value.
canadareic
Senior Boarder
Posts: 59
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#11261
Re: JPATH_COMPONENT already defined after upgrade 11 Years, 7 Months ago Karma: 54
Remove the patch will not change the notice message but will have the impact to have a wrong path for JomSocial.

The message is a "NOtice" and not an error.
In addition, it reports that JPATH_COMPONENT is ALREADY defined in the line 12 but you didn't mentioned the file for which the notice is reported.

You have another file that report this "notice" message because it is already defined in JomSocial.

This is the other file (ie. plugin or module) that should be fixed to test if JPATH_COMPONENTS is already defined.
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
get the latest posts directly to your desktop
2Win, Multisite(s) are trademarks of Edwin2Win.
Joomla