Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

JFolder::create on watermark error FIXED!!!

10 years 3 months ago
  • ODIOM's Avatar
    Topic Author
  • ODIOM
  • Offline
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 1
Licenses:
JomSocial Active

I was getting the same error on the thumbnail watermark creation in the Multiprofile area over and over again.

JFolder::create: Pad bevindt zich niet in open_basedir pad
JFolder::create: Pad bevindt zich niet in open_basedir pad

I found this guy who had the same problem.
www.jomsocial.com/forum/profile-universa...stall?start=14#47076

I think its a bug... i solved the problem by replacing the next code in multiprofile.php

// @rule: Create the watermarks folder if doesn't exists.
			if( !JFolder::exists( COMMUNITY_WATERMARKS_PATH ) )
			{
				if(!JFolder::create( COMMUNITY_WATERMARKS_PATH ) )
				{
					$mainframe->enqueueMessage( JText::_('COM_COMMUNITY_MULTIPROFILE_UNABLE_TO_CREATE_WATERMARKS_FOLDER') );
				}
			}

			// @rule: Create original folder within watermarks to store original user photos.
			if( !JFolder::exists( COMMUNITY_WATERMARKS_PATH . '/original' ) )
			{
				if(!JFolder::create( COMMUNITY_WATERMARKS_PATH . '/original' ) )
				{
					$mainframe->enqueueMessage( JText::_('COM_COMMUNITY_MULTIPROFILE_UNABLE_TO_CREATE_WATERMARKS_FOLDER') );
				}
			}

Changed it to:
// @rule: Create the watermarks folder if doesn't exists.
			if( !JFolder::exists( JPATH_ROOT .'/'. COMMUNITY_WATERMARKS_PATH ) )
			{
				if(!JFolder::create( JPATH_ROOT .'/'. COMMUNITY_WATERMARKS_PATH ) )
				{
					$mainframe->enqueueMessage( JText::_('COM_COMMUNITY_MULTIPROFILE_UNABLE_TO_CREATE_WATERMARKS_FOLDER') );
				}
			}

			// @rule: Create original folder within watermarks to store original user photos.
			if( !JFolder::exists( JPATH_ROOT .'/'. COMMUNITY_WATERMARKS_PATH . '/original' ) )
			{
				if(!JFolder::create( JPATH_ROOT .'/'. COMMUNITY_WATERMARKS_PATH . '/original' ) )
				{
					$mainframe->enqueueMessage( JText::_('COM_COMMUNITY_MULTIPROFILE_UNABLE_TO_CREATE_WATERMARKS_FOLDER') );
				}
			}

(I Added " JPATH_ROOT .'/'. " to the code at some places).

The error disappeared, and there is no more problem!!!

The following user(s) said Thank You: Ashraf
10 years 3 months ago
Licenses:
JomSocial Expired GURU Expired Publisher Expired AdAgency Expired iSEO Expired Socialize Expired

Hi Wander,
It is always appreciable to come up with this approach. Thanks for your awesome contribution.
I have informed to our related concern to check this issue.
Thanks

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW