By Michael Martin on Thursday, 29 March 2018
Posted in Technical Issues
Replies 7
Likes 0
Views 553
Votes 0
I just got the following error while trying to update ES


A PHP Exception occurred on your site. Here you can find the stack trace:
Exception Type: RuntimeException
File: /home2/mrwizard/michaelscookbook.com/libraries/joomla/filesystem/folder.php
Line: 102
Message: Copy file failed
#0 /home2/mrwizard/michaelscookbook.com/libraries/joomla/filesystem/folder.php(87): JFolder::copy('/home2/mrwizard...', '/home2/mrwizard...', NULL, true)
#1 /home2/mrwizard/michaelscookbook.com/libraries/joomla/filesystem/folder.php(87): JFolder::copy('/home2/mrwizard...', '/home2/mrwizard...', NULL, true)
#2 /home2/mrwizard/michaelscookbook.com/libraries/joomla/filesystem/folder.php(87): JFolder::copy('/home2/mrwizard...', '/home2/mrwizard...', NULL, true)
#3 /home2/mrwizard/michaelscookbook.com/libraries/joomla/filesystem/folder.php(87): JFolder::copy('/home2/mrwizard...', '/home2/mrwizard...', NULL, true)
#4 /home2/mrwizard/michaelscookbook.com/administrator/components/com_easysocial/setup/controllers/installation.php(2260): JFolder::copy('/home2/mrwizard...', '/home2/mrwizard...', '', true)
#5 /home2/mrwizard/michaelscookbook.com/administrator/components/com_easysocial/setup/bootstrap.php(62): EasySocialControllerInstallation->installCopy()
#6 /home2/mrwizard/michaelscookbook.com/administrator/components/com_easysocial/easysocial.php(52): require_once('/home2/mrwizard...')
#7 /home2/mrwizard/michaelscookbook.com/libraries/src/Component/ComponentHelper.php(382): require_once('/home2/mrwizard...')
#8 /home2/mrwizard/michaelscookbook.com/libraries/src/Component/ComponentHelper.php(357): Joomla\CMS\Component\ComponentHelper::executeComponent('/home2/mrwizard...')
#9 /home2/mrwizard/michaelscookbook.com/libraries/src/Application/AdministratorApplication.php(101): Joomla\CMS\Component\ComponentHelper::renderComponent('com_easysocial')
#10 /home2/mrwizard/michaelscookbook.com/libraries/src/Application/AdministratorApplication.php(159): Joomla\CMS\Application\AdministratorApplication->dispatch()
#11 /home2/mrwizard/michaelscookbook.com/libraries/src/Application/CMSApplication.php(204): Joomla\CMS\Application\AdministratorApplication->doExecute()
#12 /home2/mrwizard/michaelscookbook.com/administrator/index.php(51): Joomla\CMS\Application\CMSApplication->execute()
#13 {main}

I think the update broke my site!


A PHP Exception occurred on your site. Here you can find the stack trace:
Exception Type: RuntimeException
File: /home2/mrwizard/michaelscookbook.com/libraries/joomla/filesystem/folder.php
Line: 102
Message: Copy file failed
#0 /home2/mrwizard/michaelscookbook.com/administrator/components/com_easysocial/includes/installer/helpers/joomla.php(336): JFolder::copy('/home2/mrwizard...', '/home2/mrwizard...', '', true)
#1 /home2/mrwizard/michaelscookbook.com/administrator/components/com_easysocial/includes/installer/helpers/joomla.php(218): SocialInstallerJoomla->copyFolders('/home2/mrwizard...')
#2 /home2/mrwizard/michaelscookbook.com/administrator/components/com_easysocial/includes/installer/helpers/adapters/apps.php(143): SocialInstallerJoomla->copyContents('/home2/mrwizard...', 'shares')
#3 /home2/mrwizard/michaelscookbook.com/administrator/components/com_easysocial/includes/installer/helpers/joomla.php(134): SocialInstallerApps->install()
#4 /home2/mrwizard/michaelscookbook.com/administrator/components/com_easysocial/includes/installer/installer.php(61): SocialInstallerJoomla->install()
#5 /home2/mrwizard/michaelscookbook.com/administrator/components/com_easysocial/setup/controllers/installation.php(2116): SocialInstaller->install()
#6 /home2/mrwizard/michaelscookbook.com/administrator/components/com_easysocial/setup/controllers/installation.php(2060): EasySocialControllerInstallation->installApp('/home2/mrwizard...', '/home2/mrwizard...', 'group')
#7 /home2/mrwizard/michaelscookbook.com/administrator/components/com_easysocial/setup/bootstrap.php(62): EasySocialControllerInstallation->installApps()
#8 /home2/mrwizard/michaelscookbook.com/administrator/components/com_easysocial/easysocial.php(52): require_once('/home2/mrwizard...')
#9 /home2/mrwizard/michaelscookbook.com/libraries/src/Component/ComponentHelper.php(382): require_once('/home2/mrwizard...')
#10 /home2/mrwizard/michaelscookbook.com/libraries/src/Component/ComponentHelper.php(357): Joomla\CMS\Component\ComponentHelper::executeComponent('/home2/mrwizard...')
#11 /home2/mrwizard/michaelscookbook.com/libraries/src/Application/AdministratorApplication.php(101): Joomla\CMS\Component\ComponentHelper::renderComponent('com_easysocial')
#12 /home2/mrwizard/michaelscookbook.com/libraries/src/Application/AdministratorApplication.php(159): Joomla\CMS\Application\AdministratorApplication->dispatch()
#13 /home2/mrwizard/michaelscookbook.com/libraries/src/Application/CMSApplication.php(204): Joomla\CMS\Application\AdministratorApplication->doExecute()
#14 /home2/mrwizard/michaelscookbook.com/administrator/index.php(51): Joomla\CMS\Application\CMSApplication->execute()
#15 {main}

·
Thursday, 29 March 2018 20:29
·
0 Likes
·
0 Votes
·
0 Comments
·
After trying to reinstall several times it finally worked.
·
Thursday, 29 March 2018 20:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for getting back to us now you can able to update successfully for the Easysocial update.

BY the way, regarding this "Copy file failed" error is a common Joomla error when your site's file/folders permission aren't correct somehow.

The problem was indeed an file owner/group problem.

If next time you still experience this issue again, perhaps you can try consult with your Webhosting provider to help you check the file permissions and chown for all files and folders to the correct owners on your server.

All files need to be writable by the webserver user.
·
Friday, 30 March 2018 00:49
·
0 Likes
·
0 Votes
·
0 Comments
·
I forgot to ask. You said,
If next time you still experience this issue again, perhaps you can try consult with your Webhosting provider to help you check the file permissions and chown for all files and folders to the correct owners on your server.
What are to correct permissions? Currently all folders are set to 0755 and all files are set to 0644
·
Saturday, 31 March 2018 07:36
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, that is correct file permission, but you can consult with your webhosting provider regarding this :

Is it all files/folders can be writable by your webserver user?

The reason why need to ask this is because when you upload the installer through your site backend installer page, the PHP script will trying to proceed override your existing file, and this action is actually controlled by your webserver user.

For example : when you setup one of the FTP user account, you also have to grant this FTP user to have specific permission, so this FTP user do not have permission to access your server root folder or do not allow him to do some executable action, this sample is quite similar with what i described at above.
·
Saturday, 31 March 2018 13:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, it is for all files and folders. I can see it in the backend with Admin Tools.
·
Sunday, 01 April 2018 07:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Currently i have no ideas why you hitting this issue and you tried to install several times, then that installation worked.

Perhaps you can keep us update if the next update still experience this issue.
·
Sunday, 01 April 2018 12:59
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post