If this is your first visit, check our documentation. To post, register or login.
Forums / Community Contributed Add-Ons / Addon Admin Tools / Missing Image Utility/Scanner [Support Thread]

Missing Image Utility/Scanner [Support Thread]

Started by retched on 16 Jul 2014, 9:10 PM · Views: 14,747

Results 41 to 60 of 60
6 Dec 2018, 7:28 PM
#41
lordzoabar avatar

lordzoabar

New Zenner

Join Date:
Nov 2017
Location:
Athens, Georgia, USA
Posts:
104
Plugin Contributions:
0

Post #41 by lordzoabar

If I wanted this to open in a new page/tab when I run it, instead of using the already open page, is there anything I could edit to do so?

16 Dec 2018, 8:56 PM
#42
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #42 by drbyte

Lordzoabar:

If I wanted this to open in a new page/tab when I run it, instead of using the already open page, is there anything I could edit to do so?
You're talking about the menu item link, right? Right-click on it and choose "open in new tab" (or use the equivalent keyboard shortcut, like on a Mac hold CMD before clicking on the link, and it'll open in a new tab; I'm sure Windows has an equivalent.)

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

17 Dec 2018, 6:57 PM
#43
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,908
Plugin Contributions:
23

Post #43 by dbltoe

Yeahbuh. Ctrl click will do the trick.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

21 Jan 2019, 3:43 AM
#44
oldngrey avatar

oldngrey

Zen Follower

Join Date:
Apr 2008
Location:
Qld, Australia
Posts:
433
Plugin Contributions:
0

Post #44 by oldngrey

V156a - got this wonderful tool to edit the product in zc156a by making the following changes to replace the second occurrence of the constant FILENAME_CATEGORIES with the constant FILENAME_PRODUCT in admin\image_checker.php

from

                                                        echo '<a href="' . zen_href_link(FILENAME_CATEGORIES, 
                                    'cPath=' . $parent_cPath . '&cID=' . (int)$value['id']) . '&action=edit_category" title="' . TEXT_EDIT_CATEGORY . '" target="_blank">' . zen_image(DIR_WS_IMAGES . 'icon_edit.gif',
                                    ICON_EDIT) . '</a>';
                        } else {
                            echo '<a href="' . zen_href_link(FILENAME_PRODUCT, /* BMH change */
                                    'cPath=' . zen_get_product_path((int)$value['id']) . '&product_type=1&pID=' . (int)$value['id']) . '&action=new_product" title="' . TEXT_EDIT_PRODUCT . '" target="_blank">' . zen_image(DIR_WS_IMAGES . 'icon_edit.gif',
                                    ICON_EDIT) . '</a>';

to

                            echo '<a href="' . zen_href_link(FILENAME_PRODUCT, 
                                    'cPath=' . $parent_cPath . '&cID=' . (int)$value['id']) . '&action=edit_category" title="' . TEXT_EDIT_CATEGORY . '" target="_blank">' . zen_image(DIR_WS_IMAGES . 'icon_edit.gif',
                                    ICON_EDIT) . '</a>';
                        } else {
                            echo '<a href="' . zen_href_link(FILENAME_PRODUCT, 
                                    'cPath=' . zen_get_product_path((int)$value['id']) . '&product_type=1&pID=' . (int)$value['id']) . '&action=new_product" title="' . TEXT_EDIT_PRODUCT . '" target="_blank">' . zen_image(DIR_WS_IMAGES . 'icon_edit.gif',
                                    ICON_EDIT) . '</a>';

environment Dev: Zen Cart 156a; Apache 2.4.33; PHP 7.3.1; MySQL 5.7.21; Windows 10
environment Test: Zen Cart 156a; Apache 2.4.29; PHP 7.2.4; MySQL 5.7.24; Linux 4.15.0

packages / add-ons:
ckeditor ; clone template 1.2.0; payment module fee;
Direct bank Deposit V1.5.revised; zencart155 securepayxml (modified); ozpost v4.2.7;
ceon_back_in_stock_notifications.9 (modified); export_shipping_information_V1.3.5;
edit_orders-4.3.5 (modified); master password 4; admin log in as customer;
image checker 2.0;

OldNGrey
ZC222 PHP 8.4.27
MySQL 11.8.5-MariaDB

22 Feb 2019, 7:30 AM
#45
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Post #45 by shrimp_gumbo_mmmhhh

I tried this with v1.5.6a and when it was finished running it loaded a /image_checker.php page and it said

Page Not Found

**This page no longer exists.

Does that mean that all images are there or that the module is not working correctly?**

22 Feb 2019, 9:30 AM
#46
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,880
Plugin Contributions:
7

Post #46 by torvista

I tried this (downloaded from Github) with a vanilla 1.56a and had no issues, but that is hardly a real test.
This may be related to the quantity of images you have.
Any debugs associated with your error?

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

17 May 2019, 8:25 PM
#47
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Post #47 by shrimp_gumbo_mmmhhh

torvista:

I tried this (downloaded from Github) with a vanilla 1.56a and had no issues, but that is hardly a real test.
This may be related to the quantity of images you have.
Any debugs associated with your error?

Hello Steve,

I revisted this and I don't know if anything has changed with the download but it worked fine and very quickly for the number of images i have. I had fixed a lot of problem images and don't know if this was a problem but it works great now. One thing that would be great is if it started with a page that allowed you to choose Categories or Products.... and the filters....

Thank you!

Shrimp-Gumbo

17 May 2019, 8:26 PM
#48
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Post #48 by shrimp_gumbo_mmmhhh

Another great addition might be to have a search for all "no_image_available" products.... and allow the problem images to be moved to the "no_image_available" image since they are not working. Thank you!

17 May 2019, 8:32 PM
#49
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Post #49 by shrimp_gumbo_mmmhhh

I ran on my production and it worked great! I do see now you have the one option on there too. Thank you!

17 May 2019, 10:11 PM
#50
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Post #50 by shrimp_gumbo_mmmhhh

I ended up finding an issue....

The "Edit" button is not working. When it is pushed it goes to a screen with just the upper menu and the zen cart logo

This is what is linked to:
/categories.php?cPath=12&product_type=1&pID=34739&action=new_product
but when i click the regular edit button in admin I go to:
/product.php?cPath=12&product_type=1&pID=34739&action=new_product

Thank you!

17 May 2019, 10:21 PM
#51
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Post #51 by shrimp_gumbo_mmmhhh

shrimp-gumbo-mmmhhh:

I ended up finding an issue....

The "Edit" button is not working. When it is pushed it goes to a screen with just the upper menu and the zen cart logo

This is what is linked to:
/categories.php?cPath=12&product_type=1&pID=34739&action=new_product
but when i click the regular edit button in admin I go to:
/product.php?cPath=12&product_type=1&pID=34739&action=new_product

Thank you!

Also, I am not certain if you wanted the status on/off to just show red or green or be able to turn off/on. Currently it only shows the status.

19 May 2019, 2:04 AM
#52
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Post #52 by shrimp_gumbo_mmmhhh

shrimp-gumbo-mmmhhh:

I ended up finding an issue....

The "Edit" button is not working. When it is pushed it goes to a screen with just the upper menu and the zen cart logo

This is what is linked to:
/categories.php?cPath=12&product_type=1&pID=34739&action=new_product
but when i click the regular edit button in admin I go to:
/product.php?cPath=12&product_type=1&pID=34739&action=new_product

Thank you!

I fixed it .... LOL ... but just noticed that OldNGray fixed it before me.

4 Jun 2021, 6:00 PM
#53
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Post #53 by shrimp_gumbo_mmmhhh

It would be great if this mod had

  1. download to csv
  2. bulk image set to no_picture.jpg for bad/missing pictures (right now I have 1,291 image issues from a data load) The missing images are causing memory errors I believe.
  3. if it could check the additional images for issues.... found a secondary image with issue that is not showing up on the report.

I also believe this mod should be a standard in the ZC admin toolkit

Thank you!

Shrimp

6 Jun 2021, 4:46 PM
#54
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,880
Plugin Contributions:
7

Post #54 by torvista

It would be great if this mod had
1) download to csv

Why?

2) bulk image set to no_picture.jpg for bad/missing pictures (right now I have 1,291 image issues from a data load) The missing images are causing memory errors I believe.

You want to set the product image link to no_picture for

  • images that are defined in the product but are not found?
  • products that have no image defined?

Core code should handle both cases without a problem.

3) if it could check the additional images for issues.... found a secondary image with issue that is not showing up on the report.
What issues need to be checked for?

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

7 Jun 2021, 12:21 PM
#55
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Post #55 by shrimp_gumbo_mmmhhh

torvista:

Why?

You want to set the product image link to no_picture for

  • images that are defined in the product but are not found?
  • products that have no image defined?

I have easy populated a datafeed and I have over 1000 missing images (or misspelled)..... because core code cannot handle it I am getting memory usage errors. If I could click the green light to turn off it would still be overwhelming.

Core code should handle both cases without a problem.

It doesn't .... I have a bug in on it......

What issues need to be checked for?
I think I am getting bad pictures on .jpg.jpg issues if a image exist as .jpg .... the .jpg.jpg is seen as a secondary file.

see above answers

7 Jun 2021, 3:34 PM
#56
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Post #56 by shrimp_gumbo_mmmhhh

Oh, the 1st why.... if there was a csv download I could manually fix the images through a data update.... but I would prefer to have them able to be set to no_picture.gif

Thank you for taking a look at my thoughts!

24 Aug 2024, 9:05 PM
#57
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Post #57 by swguy

Any plans to update for 2.0?

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

25 Aug 2024, 8:22 AM
#58
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,880
Plugin Contributions:
7

Post #58 by torvista

I'd forgotten about it, although we still use it.

Long ago I saw you had something similar but I never got round to comparing it.

I know if I look over this again I'll lose a couple of days fettling. Any other ideas/comments to add?

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

25 Aug 2024, 9:00 AM
#59
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Post #59 by swguy

Mine is here: https://www.zen-cart.com/downloads.php?do=file&id=2268

It just looks for situations where the products_image field in the products table is set but the corresponding file doesn't exist.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.