Post by vitalyk » Wed Apr 14, 2021 12:34 am

Hi
I hope someone can help me to resolve it:
This is the code responsible for this error:

I am getting an error:
Warning: rename(/var/www/DOMAIN/system/storage/cache/smart-flexible/,/var/www/DOMAIN/system/storage/smart-flexible/_old_storage): Directory not empty in /var/www/DOMAIN/system/library/ups_smart_flexible/libraries.php on line 4776

Line 4776 in the code below is: self::getStorageDir() . '_old_storage'

Code: Select all

 * Compatibility method to move smart-flexible storage from a legacy (cache) folder into system
     * @return bool
     */
    public static function moveStorageDir() {
        if (file_exists(self::getLegacyStorageDir())) {
            if (!file_exists(self::getStorageDir())) { // just move dir
                if (!file_exists(dirname(self::getStorageDir()))) { // for v1 - create storage dir
                    self::createFolder(dirname(self::getStorageDir()));
                }
                return rename(self::getLegacyStorageDir(), self::getStorageDir());
            } else { // move files from specific directories
                $subDirs = array(
                    PackagingListManager::ListsDir,
                    PromiseManager::PromiseDir
                );
                foreach ($subDirs as $subDir) {
                    self::createFolder(self::getStorageDir() . $subDir);
                    $files = glob(self::getLegacyStorageDir() . $subDir . '*.json');
                    foreach ($files as $file) {
                        rename(
                            $file,
                            self::getStorageDir() . $subDir . basename($file)
                        );
                    }
                }
                rename(
                    self::getLegacyStorageDir(),
                    self::getStorageDir() . '_old_storage'
                );
            }
        }
        return true;
    }



New member

Posts

Joined
Sat Mar 31, 2012 10:31 am

Post by straightlight » Wed Apr 14, 2021 12:35 am

Contact the extension developer to resolve this issue.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by vitalyk » Wed Apr 14, 2021 12:47 am

straightlight wrote:
Wed Apr 14, 2021 12:35 am
Contact the extension developer to resolve this issue.
I have tried to contact Drugoe.de for two weeks, there is no response from them.

The folder:
/var/www/DOMAIN/system/storage/smart-flexible/_old_storage
only contains a folder
packaging-lists

New member

Posts

Joined
Sat Mar 31, 2012 10:31 am

Post by straightlight » Wed Apr 14, 2021 12:53 am

vitalyk wrote:
Wed Apr 14, 2021 12:47 am
straightlight wrote:
Wed Apr 14, 2021 12:35 am
Contact the extension developer to resolve this issue.
I have tried to contact Drugoe.de for two weeks, there is no response from them.

The folder:
/var/www/DOMAIN/system/storage/smart-flexible/_old_storage
only contains a folder
packaging-lists
Contact site support from this site by using the Contact Us either from the Resources link at the top or the Contact Us link at the footer of the site, either, with your order ID. If there are no response from the developer after 48 hours, request a refund to the Billing team on the same ticket you'll get responded too and a representative will be with you shortly.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by straightlight » Wed Apr 14, 2021 12:53 am

vitalyk wrote:
Wed Apr 14, 2021 12:47 am
straightlight wrote:
Wed Apr 14, 2021 12:35 am
Contact the extension developer to resolve this issue.
I have tried to contact Drugoe.de for two weeks, there is no response from them.

The folder:
/var/www/DOMAIN/system/storage/smart-flexible/_old_storage
only contains a folder
packaging-lists
Contact site support from this site by using the Contact Us either from the Resources link at the top or the Contact Us link at the footer of the site, either, with your order ID. If there are no response from the developer after 48 hours, request a refund to the Billing team on the same ticket you'll get responded too and a representative will be with you shortly. The issue you're reporting about is unsupported on the forum.

As an alternative, you can always create a new service request in the Commercial Support section of the forum to get this issue solved as a custom job.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by vitalyk » Wed Apr 14, 2021 1:05 am

straightlight wrote:
Wed Apr 14, 2021 12:53 am
vitalyk wrote:
Wed Apr 14, 2021 12:47 am
straightlight wrote:
Wed Apr 14, 2021 12:35 am
Contact the extension developer to resolve this issue.
As an alternative, you can always create a new service request in the Commercial Support section of the forum to get this issue solved as a custom job.
Why not just provide a solution, I have tried everything. I bought the extension long time ago and I dont think they would refund. Please just help me with PHP code.

New member

Posts

Joined
Sat Mar 31, 2012 10:31 am

Post by straightlight » Wed Apr 14, 2021 1:07 am

If the extension has been bought a long time ago, and is beyond 6 months with PayPal, I would then suggest to create a new service request in the Commercial S Support of the forum to get this fixed as a custom job as mentioned on my previous post.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by vitalyk » Wed Apr 14, 2021 3:39 am

straightlight wrote:
Wed Apr 14, 2021 1:07 am
If the extension has been bought a long time ago, and is beyond 6 months with PayPal, I would then suggest to create a new service request in the Commercial S Support of the forum to get this fixed as a custom job as mentioned on my previous post.
"straightlight" I am not asking for your suggestion, I am asking for knowledgeable people to help me with this code.

New member

Posts

Joined
Sat Mar 31, 2012 10:31 am

Post by straightlight » Wed Apr 14, 2021 5:00 am

vitalyk wrote:
Wed Apr 14, 2021 3:39 am
straightlight wrote:
Wed Apr 14, 2021 1:07 am
If the extension has been bought a long time ago, and is beyond 6 months with PayPal, I would then suggest to create a new service request in the Commercial S Support of the forum to get this fixed as a custom job as mentioned on my previous post.
"straightlight" I am not asking for your suggestion, I am asking for knowledgeable people to help me with this code.
Correction, what you are asking is the knowledgeable people to help you for free.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by Jenkins458 » Thu May 13, 2021 8:17 pm

You need to get your real path, for me real path /Applications/MAMP/htdocs/phptest but you can define ABSPATH like define('ABSPATH', dirname(__FILE__).'/');


Code: Select all

 error_reporting(1);
 error_reporting('On');

define('ABSPATH', dirname(__FILE__).'/');

include 'includes/config.php';    // database configuration file

$file_name = "images800466507.jpg";
$currentPath = ABSPATH.'/TempImages/'.$file_name;    // ( file permission : 777 )
$newPath = ABSPATH.'/ImagesNew/'.$file_name;     // ( file permission : 755 )
if( rename($currentPath ,$newPath ) )
   echo 'done';
else
   echo 'not done';
I tested and it worked for me.

Newbie

Posts

Joined
Thu May 13, 2021 8:15 pm
Who is online

Users browsing this forum: No registered users and 13 guests