By Greg Kargus on Monday, 28 April 2014
Posted in Technical Issues
Replies 3
Likes 0
Views 654
Votes 0
I have come across a few bugs that need to be addressed in EasySocial 1.2.8
In a test profile that I created, when clicking on full profile I get BOTH of these warning message:
Your profile is 69% complete. Complete your profile now.
COM_EASYSOCIAL_PROFILE_COMPLETE_YOUR_PROFILE_NOW (Obviously, this one shouldn't be here).
The next issue seems to be a MagicQuotes issue, which inserts back slashes (\) into EasySocial fields whenever quotes (') or (") are used. I get this issue in Joomla articles as well, which I solved by creating a php.ini file and turning off MagicQuotes within that file, and I assume I can do the same with EasySocial, but I'm not sure where to place a php.ini within the component.
Hi,

Ah that part is a deprecated part.

Go to the file /components/com_easysocial/views/profile/view.html.php and remove line 558 to 563, which reads:


if( $my->id == $user->id && $incomplete )
{
$editProfileLink = FRoute::profile( array( 'layout' => 'edit' ) );
$incompleteMessage = JText::sprintf( 'COM_EASYSOCIAL_PROFILE_COMPLETE_YOUR_PROFILE_NOW', $editProfileLink );
Foundry::info()->set( (object) array( 'message' => $incompleteMessage, 'type' => '' ) );
}


Regarding the magic quote issue, the best way is to contact your hosting provider to turn it off on the server side actually because Joomla by the core itself requires it to be turned off.

If you are opting for the php.ini method instead, placing it at the root of your Joomla folder will do.
·
Monday, 28 April 2014 12:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for the reply.
Removing the code seems to fix the first issue.
As for the magic quotes, not sure about that one, as I've already got a php.ini at the root with magic quotes turned off. This solves the Joomla issue, but seems to be ignored only in the fields area of profiles. This is the only place where the back slashes are still inserted.
·
Monday, 28 April 2014 22:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Greg,

I am sorry for the delay of this reply.

Regarding the magic quotes, do you have the following code added inside your php.ini in your Joomla root folder?
Please advise.


magic_quotes_gpc = Off
magic_quotes_runtime = Off
magic_quotes_sybase = Off
Sam
·
Tuesday, 29 April 2014 18:29
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post