Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP 8.1 compatiblity & Magento 2 tables update (utilities) #108

Open
wants to merge 5 commits into
base: magento2
Choose a base branch
from

Conversation

xtremevision
Copy link

Fixed:

  • PHP 8.1 compatibility issues
  • Non-existent tables in Utillities -> Clean Catalog and Customers
  • Small UI fix (progress bar)

@@ -262,6 +262,8 @@ public function getRemoteFile($url, $dest, $authmode = null, $cookies = null)
$context = $this->createContext($url);
$ch = $context['curlhandle'];
$dl_opts = $context['opts']['dl'];

$dest = str_replace("pub/pub", "pub", $dest);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is this change for?

@@ -482,13 +483,19 @@ public function copyImageFile($imgfile, &$item, $extra)
// magento image value (relative to media catalog)
$impath = "/$i1/$i2/$bimgfile";
// target directory;
$l2d = "pub/media/catalog/product/$i1/$i2";

if(!strstr(getcwd(), "pub"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add brackets around "if" body and
"else" body

@@ -38,7 +58,8 @@ public function runUtility()
}

//clean url rewrites for products
$sql = "DELETE FROM ".$this->tablename("core_url_rewrite")." WHERE product_id IS NOT NULL AND is_system=1";
//$sql = "DELETE FROM ".$this->tablename("core_url_rewrite")." WHERE product_id IS NOT NULL AND is_system=1";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove the comment

Copy link
Member

@tmotyl tmotyl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the patch. please fix some nitpics

@xtremevision
Copy link
Author

xtremevision commented Aug 28, 2023 via email

@xtremevision
Copy link
Author

xtremevision commented Aug 28, 2023 via email

@xtremevision
Copy link
Author

xtremevision commented Aug 28, 2023 via email

@xtremevision
Copy link
Author

xtremevision commented Aug 28, 2023 via email

@tmotyl
Copy link
Member

tmotyl commented Sep 8, 2023

there are plenty of error_log() calls, seems like they are a leftover from debugging?

@xtremevision
Copy link
Author

xtremevision commented Sep 8, 2023 via email

@xtremevision
Copy link
Author

xtremevision commented Sep 8, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants