We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Fix for upload failure on multi sites

Development and Programming

Anders Larsen's avatar
Anders Larsen
1 posts
8 years ago
Anders Larsen's avatar Anders Larsen

During development on our first multi site using EE3.4.3 we hit an error on all file uploads on any site but the original.

An upgrade to EE3.5.2, still resulted in the same error.

After a few hours of searching i found that by sending $ignore_site_id as TRUE in /system/ee/legacy/libraries/filemanager.php on line 2070, the error is removed, but not completely fixed.

For others who might be having the same problem open the file specified and change the line from

$thumb_info = $this->get_thumb($file['file_name'], $dir['id']);

to

$thumb_info = $this->get_thumb($file['file_name'], $dir['id'], TRUE);

and then with a synchronization of the file manager and the problem should be fixed.

The current problem seems to be that the legacy file upload function when using ee()->config->item(‘site_id’) always gets 1, even when on another multi site

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.