-
Missing Image Utility/Scanner [Support Thread]
Code:
Features
========
Scans your database and images folder for any missing images and reports on them.
Version Date
==============
v1.0 2014-07-16 02:37
* Initial release
Author
======
Paul Williams ([email protected])
Known Issues
============
* People on shared servers or those without the ability to turn Safe Mode off
will experience more time outs on larger databases. This is because I
cannot force the script to essentially reset the execution_timer. This will
be worked on in a later version. You can try to edit the script on line 121
or line 145 and change the SQL query a little bit. If you do, you may end
up having to run this script a couple of times.
Description
===========
This script will run through your ZenCart database, provided by you in the
connection information of the script, and then retrieve all images from products
table of ZenCart. Then, the script will run through each of those images making
sure that the image exists and is saved in the correct format. (For example, a
.gif is actually a GIF.) This is useful if you use a batch product uploader like
easyPopulate and you don't know which of your images are missing.
GitHub
======
https://github.com/retched/missing-images-zen
Pretty much, this script shouldn't be too difficulty. Before you talk about problems with the script, please make a note about the Known Issue noted above and in the readme file. I will come back for this in a later update but I wanted to release it now while I figure out how to make the script lap around.
-
Re: Missing Image Scanner [Support Thread]
What a time-saver! I suggest the following small change to enable this to be used with an /includes/local/configure.php file (I use this a bunch for local, pre-test versions of a site):
Code:
// Load the definition file for the database table names.
require_once(DIR_FS_CATALOG . "includes/database_tables.php"); //-20140724-lat9-Use configure.php setting, enables using /includes/local/configure.php
-
Re: Missing Image Scanner [Support Thread]
Quote:
Originally Posted by
lat9
What a time-saver! I suggest the following small change to enable this to be used with an /includes/local/configure.php file (I use this a bunch for local, pre-test versions of a site):
Code:
// Load the definition file for the database table names.
require_once(DIR_FS_CATALOG . "includes/database_tables.php"); //-20140724-lat9-Use configure.php setting, enables using /includes/local/configure.php
You know I was thinking about that really. I've gone ahead and made the change. I still have to wait for the script to be approved and then I can add and make the change there.
-
Re: Missing Image Scanner [Support Thread]
Also for those interested, the plugin will reside here once approved. You can go to the GitHub linked in my first post. Also while I haven't tested this extensively on ZenCart versions prior to 1.5.0, this SHOULD work with almost any version of ZenCart and it does not necessarily need to reside on the same directory as your ZenCart installation BUT it must reside on the same server as it.
Zen-Cart Download Page:
http://www.zen-cart.com/downloads.php?do=file&id=1887
-
Re: Missing Image Scanner [Support Thread]
AN UPDATE HAS BEEN MADE. (Actually two updates have been made, I'm just rolling them out as one.)
Code:
v1.0.2 2014-07-24 13:50
* Removed the choice of running the script as MySQLi or MySQL. The script
will now check if it can run mysqli_connect. If not, it will run
mysql_connect. If that fails, the script will not run. The user also
has the option to force MySQL although this should NOT really be used. I
will still reserve the right to remove this option at a later time once
MySQL is removed from PHP.
* Consolidated the location of the query that is being run by the script to
one location. (There is no difference in SQL language between MySQL and
MySQLi. So having two separate queries which produced the same result table
was a bit redundant.)
v1.0.1 2014-07-24 12:58
* Improved call for database_tables.php as suggested by lat9.
Thanks for the code suggestion.
Also the ReadMe file has been "fixed" to be formatted as Windows/PC Readme. This shouldn't really cause an issue for *nix users.
These changes have been posted to the GitHub and will be soon available via the ZenCart Downloads Page.
-
1 Attachment(s)
Re: Missing Image Scanner [Support Thread]
Dear retched,
Hello, I am make some change of your original module. First of all thank you make for this. Real useful.
But, you miss some security that need keep in mind, this files can running without admin login first, and it show the full path on the server,while outside can scan the web server. It will have some security risk.
I make some change of it, and now it must place to under /admin/missing_images.php
The second I am add the miss Menu for both ZC 1.3.9x to 1.5.x
So the end user not need manual copy and paste the files name and running on admin page.
Then I think can help many user. So I also post my changed version there.
I am also uploaded my files to zen-cart.com, waiting they post for public ..
But, if you integration my coding with it, please also add my name and e-mail on it.
Here are what I do base on your module
v1.0.3 2014-08-08 14:14
* Force MUST Login to using this Module for Security Reason, since it show up the full server path.
Copy the contents of the "admin" folder to the admin folder of your shop whatever it is called (it should have been renamed from the default "admin").
The files are already arranged in their correct locations and there are *no* overwrites of core files!
For example
/admin/missing_images.php (Where replace above path to match your live shop.)
* You'll find "Missing Images Checker" under "Tools" in the Admin, both for ZC 1.3.9x to 1.5.3
* Add SQL Scripts to install in on the Admin Page for ZC 1.5.x Only, for easier now.
* This make for you by explorer1979 (explorerhome##################, http://explorerhome.no-ip.org/blog)
File here Attachment 14379
Thank you
Best Regards,
Jimmy Chan
http://www.jimmychan.tk
http://explorerhome.no-ip.org/blog
-
Re: Missing Image Scanner [Support Thread]
Quote:
Originally Posted by
explorer1979
Dear retched,
Hello, I am make some change of your original module. First of all thank you make for this. Real useful.
But, you miss some security that need keep in mind, this files can running without admin login first, and it show the full path on the server,while outside can scan the web server. It will have some security risk.
I make some change of it, and now it must place to under /admin/missing_images.php
The second I am add the miss Menu for both ZC 1.3.9x to 1.5.x
So the end user not need manual copy and paste the files name and running on admin page.
Then I think can help many user. So I also post my changed version there.
I am also uploaded my files to zen-cart.com, waiting they post for public ..
But, if you integration my coding with it, please also add my name and e-mail on it.
Here are what I do base on your module
v1.0.3 2014-08-08 14:14
* Force MUST Login to using this Module for Security Reason, since it show up the full server path.
Copy the contents of the "admin" folder to the admin folder of your shop whatever it is called (it should have been renamed from the default "admin").
The files are already arranged in their correct locations and there are *no* overwrites of core files!
For example
/admin/missing_images.php (Where replace above path to match your live shop.)
* You'll find "Missing Images Checker" under "Tools" in the Admin, both for ZC 1.3.9x to 1.5.3
* Add SQL Scripts to install in on the Admin Page for ZC 1.5.x Only, for easier now.
* This make for you by explorer1979 (explorerhome##################,
http://explorerhome.no-ip.org/blog)
File here
Attachment 14379
Thank you
Best Regards,
Jimmy Chan
http://www.jimmychan.tk
http://explorerhome.no-ip.org/blog
Were these changes being made to a version I officially released here on ZenCart or are you referring to the "pre-release" version I posted on the GitHub? If you're talking about the one that I'm making changes to the script so it can run in the backend, please note I haven't even started to work with that yet. That coding is actually in the middle of being worked on once I have some time.
As for the original v1.x.x, please also note that version of the script is meant to run as a standalone single file installation (meaning no integration in the backend or anything). It's generally meant to be run once, and then immediately deleted. But I will take a look at the changes suggested.
-
Re: Missing Image Scanner [Support Thread]
I have moved the files into the appropriate location but I am unable to get this module to show up in my tools menu. I am using ZC 1.5.3
-
Re: Missing Image Scanner [Support Thread]
Which version of the add-on are you using? The official release series of 1.x.x isn't meant to show up as an option in the backed but is meant to be run as a standalone. The 1.0.3 is NOT a release of mind and I cannot offer any official support to it. The 2.0.0 version on the github isn't even meant for public use.
To run the script, the 1.0.2 version, you simply upload the file to your server after supplying the location of your configure.php file in the variables and run it in your browser via direct call. As for the "1.0.3" linked above in explorer1979 post and in the plugin directory, that is NOT my file and I have no support for that version as it is not mine and is causing more confusion than anything. (I can't pull it down I'm afraid, so you should use my last version while I get the chance to work with it soon I guess) I haven't even had a chance to work with that file and haven't seen its contents to know what is going on.
-
Re: Missing Image Scanner [Support Thread]
Quote:
Originally Posted by
retched
Which version of the add-on are you using? The official release series of 1.x.x isn't meant to show up as an option in the backed but is meant to be run as a standalone. The 1.0.3 is NOT a release of mind and I cannot offer any official support to it. The 2.0.0 version on the github isn't even meant for public use.
To run the script, the 1.0.2 version, you simply upload the file to your server after supplying the location of your configure.php file in the variables and run it in your browser via direct call. As for the "1.0.3" linked above in explorer1979 post and in the plugin directory, that is NOT my file and I have no support for that version as it is not mine and is causing more confusion than anything. (I can't pull it down I'm afraid, so you should use my last version while I get the chance to work with it soon I guess) I haven't even had a chance to work with that file and haven't seen its contents to know what is going on.
I was using the 1.0.3 version. I thought it would be easier to use via the admin. I am not sure how to activate it via my browser. I entered the file name behind the location I put it in, but it doesn't work.
-
Re: Missing Image Scanner [Support Thread]
Quote:
Originally Posted by
Graniteman22
I was using the 1.0.3 version. I thought it would be easier to use via the admin. I am not sure how to activate it via my browser. I entered the file name behind the location I put it in, but it doesn't work.
Were all if the files uploaded to the proper location in your admin directory? Including th SQL patch?
-
Re: Missing Image Scanner [Support Thread]
Quote:
Originally Posted by
retched
Were all if the files uploaded to the proper location in your admin directory? Including th SQL patch?
I deleted the 1.0.3 version and downloaded your 1.0.2 version. The download only included one php file to move onto server.
-
Re: Missing Image Scanner [Support Thread]
Quote:
Originally Posted by
Graniteman22
I deleted the 1.0.3 version and downloaded your 1.0.2 version. The download only included one php file to move onto server.
With 1.0.2 (my version), all you have to do is upload it to the server where ZenCart is (preferably the main directory). Edit that one file so it is pointing to the /includes/configure.php file. (Either the one in your admin/includes or your /catalog/includes is fine.) Then call the file in your web browser directory. When it's done and you are satisfied with your results, remove it from your server.
Like I said, I'll figure out what happened with 1.0.3 and what it's supposed to do. But there is already a version on the GitHub (2.0.0) which is going to the ZenCart backend. That one is NOT ready as of yet and will likely not end up using the code provided by express1973. But we'll see.
-
Re: Missing Image Scanner [Support Thread]
Quote:
Originally Posted by
retched
With 1.0.2 (my version), all you have to do is upload it to the server where ZenCart is (preferably the main directory). Edit that one file so it is pointing to the /includes/configure.php file. (Either the one in your admin/includes or your /catalog/includes is fine.) Then call the file in your web browser directory. When it's done and you are satisfied with your results, remove it from your server.
Like I said, I'll figure out what happened with 1.0.3 and what it's supposed to do. But there is already a version on the GitHub (2.0.0) which is going to the ZenCart backend. That one is NOT ready as of yet and will likely not end up using the code provided by express1973. But we'll see.
I think I will just hold off on it until an update is made.
-
Re: Missing Image Scanner [Support Thread]
Hi Graniteman22,
You need run the SQL Patch if you are using ZC 1.5.3, and copy all the files on 1.0.3 to your folder,
But rename the path as your admin folder
For example, if you rename your /admin to /admin123
Then you must copy all the zc_1.5.x/
file to under your /admin123 folder.
then login to your back end, then Tool --> Install SQL Patches
then open /zc_1.5.x/install_sql.sql
Copy this SQL coding, then paste in Tool --> Install SQL Patches
PHP Code:
INSERT INTO admin_pages (page_key, language_key, main_page, page_params, menu_key, display_on_menu, sort_order) VALUES ('missingImagesChecker', 'BOX_TOOLS_MISSINGIMAGESCHECKER', 'FILENAME_MISSINGIMAGESCHECKER', '', 'tools', 'Y', 50);
Then reload your admin page, then you will see the new Menu Under Tools --> Missing Images Checker
Thank you
Best Regards,
Jimmy Chan
http://www.jimmychan.tk
http://explorerhome.no-ip.org/blog
-
Re: Missing Image Scanner [Support Thread]
Graniteman22
If your shop /admin is rename to something like that /admin123, then below is what you do
Copy
/zc_1.5.x/admin/missing_images.php
to
/admin123/missing_images.php
Copy
/zc_1.5.x/admin/includes/extra_datafiles/missing_images.php
to
/admin123/includes/extra_datafiles/missing_images.php
Then on Admin Back End, go Tools --> Install SQL Patches
PHP Code:
INSERT INTO admin_pages (page_key, language_key, main_page, page_params, menu_key, display_on_menu, sort_order) VALUES ('missingImagesChecker', 'BOX_TOOLS_MISSINGIMAGESCHECKER', 'FILENAME_MISSINGIMAGESCHECKER', '', 'tools', 'Y', 50);
Then reload your admin page, then you will see the new Menu Under Tools --> Missing Images Checker
Hope this help.
Thank you
Best Regards,
Jimmy Chan
http://www.jimmychan.tk
http://explorerhome.no-ip.org/blog
-
Re: Missing Image Scanner [Support Thread]
Quote:
Originally Posted by
explorer1979
Graniteman22
If your shop /admin is rename to something like that /admin123, then below is what you do
Copy
/zc_1.5.x/admin/missing_images.php
to
/admin123/missing_images.php
Copy
/zc_1.5.x/admin/includes/extra_datafiles/missing_images.php
to
/admin123/includes/extra_datafiles/missing_images.php
Then on Admin Back End, go Tools --> Install SQL Patches
PHP Code:
INSERT INTO admin_pages (page_key, language_key, main_page, page_params, menu_key, display_on_menu, sort_order) VALUES ('missingImagesChecker', 'BOX_TOOLS_MISSINGIMAGESCHECKER', 'FILENAME_MISSINGIMAGESCHECKER', '', 'tools', 'Y', 50);
Then reload your admin page, then you will see the new Menu Under Tools --> Missing Images Checker
Hope this help.
Thank you
Best Regards,
Jimmy Chan
http://www.jimmychan.tk
http://explorerhome.no-ip.org/blog
Ya...I tried that several times and it still doesn't show up in the admin. Your directions seem simple enough, but something is off. I have installed several plugins and this one seems to be the most difficult while also being the most simple. Have you tested it on 1.5.3?
-
4 Attachment(s)
Re: Missing Image Scanner [Support Thread]
Quote:
Originally Posted by
Graniteman22
Ya...I tried that several times and it still doesn't show up in the admin. Your directions seem simple enough, but something is off. I have installed several plugins and this one seems to be the most difficult while also being the most simple. Have you tested it on 1.5.3?
Graniteman22,
Yes, I am tested on my company's live shop (With different skin and plugin of course) from 1.3.7.1, 1.3.9h, 1.5.1.
and of course, on ZC 1.5.3,
I am special build a original live demo ZC 1.5.3 for you to show off there
http://explorerhome.no-ip.org/t153/
Please see my attachment image of this demo shop backend
Screen Capture 1
http://explorerhome.no-ip.org/q/Other_20140813_001.jpg
Screen Capture 2
http://explorerhome.no-ip.org/q/Other_20140813_002.jpg
Screen Capture 3
http://explorerhome.no-ip.org/q/Other_20140813_003.jpg
Screen Capture 4
Key Capture, once you installed the SQL Patch, on this you can see the added Menu there
P.S. ZC forum ONLY allow attachment 4 images, so I post all screen capture there.
http://explorerhome.no-ip.org/q/Other_20140813_004.jpg
Screen Capture 5
http://explorerhome.no-ip.org/q/Other_20140813_005.jpg
Hope this help.
Thank you
Best Regards,
Jimmy Chan
http://www.jimmychan.tk
http://explorerhome.no-ip.org/blog
-
Re: Missing Image Scanner [Support Thread]
Actually,
I think if you rename your /admin to /admin123, then ..
If anyone who
Copy (This is Main Key Files)
/zc_1.5.x/admin/missing_images.php
to
/admin123/missing_images.php
or
Copy (This is Main Key Files)
/zc_1.3.9x/admin/missing_images.php
to
/admin123/missing_images.php
Also same as the original author 1.0.2 version, but I changed this files add load the top application, so this also add the safe for you, since FORCE you login first then can using this module.
Whatever you following the SQL Patch or copy other files to the right path or not, you still can manual access it once FTP to your server above KEY CORE FILE!
By access it manual
http://www.yourshop.com/yourinstallp...ing_images.php
for example my demo shop
http://explorerhome.no-ip.org/t153/a...ing_images.php
P.S. If you are using the original 1.0.2, you can access WITHOUT login, mean any robot can scan the web site maybe cache it, or can google it ...
But if you using my 1.0.3 version, whatever you want the menu add to Tools or not
Anyone MUST LOGIN FIRST to access by same URL like above example! This is for safe
Why? Since on my company's live shop, not only me management it, with other staff, it is why not like the original author said, run it once, then you can del it, this is okay for a ONLY you are admin live shop, but for bigger company who need make the live shop good for customer experience without miss image, we will want can run it anytime, anywhere safe, not need run once then del it. It is why I make this 1.0.3 for both ZC 1.3.7.1 to 1.3.9h and ZC 1.5.x base end user hope can help them all before the original author released the 2.0.
And I am here thank again the original author who maked this great plugin for us :-)
Hope this help.
Thank you
Best Regards,
Jimmy Chan
http://www.jimmychan.tk
http://explorerhome.no-ip.org/blog
-
Re: Missing Image Scanner [Support Thread]
You people are being BEYOND rude, hijacking retched's thread.
The plugin you're talking about with the admin option is a different plugin. You should start a different thread
-
Re: Missing Image Scanner [Support Thread]
Hi
I just downloaded the latest version of the Missing Image Scanner (oddly enough when it is installed and run it says version 1.02 and not 1.03 - but if I try to access it direct;y from the browser bar then it does force a login so I guess the version should just read 1.03?)
The main problem I'm finding is that it says all my products (on the test site) have an image - but they don't. If an image is uploaded (and therefore stored in the product) and then subsequently deleted then the plugin will detect that:
Odd Thomas /home/sites/digibooks.org.uk/public_html/2014ZCtest/images/oddthomas.jpg Image file does not exist. Edit the product's details and click "delete image" to remove from database.
If however, an image was never upoaded, then the plugin says everything is fine:
Alex Cross /home/sites/digibooks.org.uk/public_html/2014ZCtest/images/ OK
Is there a way to adapt this please so that it does not just treat the images directory as being an image?
Thanks
-
Re: Missing Image Scanner [Support Thread]
DigiBook,
My 1.0.3 version just add the coding for the FORCE LOGIN first by Adminb before can using this of the Core Files, plus Menu only.
Other coding are 100% same as the original 1.0.2. It is why when you are using it, still see the version number is 1.0.2 not the 1.0.3.
So if 1.0.2 function or bugs, my 1.0.3 will be same as the 1.0.2 too.
Hope the original module author can fix this on future version.
-
Re: Missing Image Scanner [Support Thread]
hi, I am trying to use this script, but after install, I am getting message:
Missing Image Checker for ZenCart v1.0.2
There are no products found in your database. If this is correct, there are no images to check. Run this script again after importing some products.
There is plenty products in the cart indeed. I am using Zen-Cart 1.3.9f. I have configured missing_images.php with absolute path and uploaded all files into admin folder, as mentioned in readme file.
Any idea what could be causing this?
thanks!
-
Re: Missing Image Scanner [Support Thread]
Quote:
Originally Posted by
luidzi_1
hi, I am trying to use this script, but after install, I am getting message:
Missing Image Checker for ZenCart v1.0.2
There are no products found in your database. If this is correct, there are no images to check. Run this script again after importing some products.
There is plenty products in the cart indeed. I am using Zen-Cart 1.3.9f. I have configured missing_images.php with absolute path and uploaded all files into admin folder, as mentioned in readme file.
Any idea what could be causing this?
thanks!
This mod has been rewritten by retched an me. you should try this new version which has not been released by retched yet to the downloads section, but it is working. see : https://github.com/Zen4All/missing-images-zen , and download the Zip
-
Re: Missing Image Scanner [Support Thread]
ah, thanks a lot, I'll give it a try!
Quote:
Originally Posted by
Design75
This mod has been rewritten by retched an me. you should try this new version which has not been released by retched yet to the downloads section, but it is working. see :
https://github.com/Zen4All/missing-images-zen , and download the Zip
-
Re: Missing Image Scanner [Support Thread]
still no luck, I have tried to install it on my test uwamp server as well as on live server and it won't work on neither of them - all i am getting is an empty white page, when I direct browser to the script URL. I have edited the path to application_top.php..
Any ideas? (using Zen Cart 1.3.9f)
thanks!
Quote:
Originally Posted by
luidzi_1
ah, thanks a lot, I'll give it a try!
-
Re: Missing Image Scanner [Support Thread]
Are there any recent debug files in your cache folder? Anne if so please posts the contents of the latest files. (Be sure to obscure sensitive data like your admin folder name)
-
Re: Missing Image Scanner [Support Thread]
This was giving me a debug error that I couldn't quite figure out at first and then I got carried away making a great deal of changes, based on the forked version from Zen4All.
Since I made so many changes to suit me and that I intend to integrate the other image checking plugins into it at some point I decided to host it separately
Functionally it has code to register the admin page and a checkbox to list results of all products/only errors and formatting changes.
https://github.com/torvista/Image-Checker
-
Re: Missing Image Scanner [Support Thread]
Great job, I will check out you mod later this afternoon.
-
Re: Missing Image Scanner [Support Thread]
Quote:
Originally Posted by
torvista
This was giving me a debug error that I couldn't quite figure out at first and then I got carried away making a great deal of changes, based on the forked version from Zen4All.
Since I made so many changes to suit me and that I intend to integrate the other image checking plugins into it at some point I decided to host it separately
Functionally it has code to register the admin page and a checkbox to list results of all products/only errors and formatting changes.
https://github.com/torvista/Image-Checker
on default Zen Cart 1.5.5a install
will create an error msg. (myDEBUG-adm-xxx.log) upon install but doesn't create any after that
errors are irrelevant and only created as result of install and can be safely ignored
interesting that it showed /images/free.gif as being a .jpg file, which I confirmed with Fireworks
probably renamed to "gif" for the smaller file size (2.66KB as jpg / 16.2KB as gif which does have a transparent bckgrd)
checking the image format type against file extension is an excellent feature BTW
So far, the only other thing I would bring up is checking for Template images. Be nice to have for completeness but wonder if worth the effort.
-
Re: Missing Image Scanner [Support Thread]
Quote:
Originally Posted by
Website Rob
on default Zen Cart 1.5.5a install
will create an error msg. (myDEBUG-adm-xxx.log) upon install but doesn't create any after that
errors are irrelevant and only created as result of install and can be safely ignored
interesting that it showed /images/free.gif as being a .jpg file, which I confirmed with Fireworks
probably renamed to "gif" for the smaller file size (2.66KB as jpg / 16.2KB as gif which does have a transparent bckgrd)
checking the image format type against file extension is an excellent feature BTW
So far, the only other thing I would bring up is checking for Template images. Be nice to have for completeness but wonder if worth the effort.
I haven't even begun to touch this for Zen 1.5. This is a 1.3 module. I'll start work on this as soon as I'm allowed to.
-
Re: Missing Image Scanner [Support Thread]
Quote:
will create an error msg. (myDEBUG-adm-xxx.log) upon install but doesn't create any after that
I found the Plugins version on my 1.55 site caused a debug log on every run.
The version I have on Github is working fine on 1.55 and is further modified with filters now.
After thinking about template images for a few seconds, that seems like a world of pain for little gain. Since these are on display all or most of the time, they should be easy to spot, not hidden in 1000's of products. So, no, I wouldn't add that extra.
-
Re: Missing Image Scanner [Support Thread]
-
Re: Missing Image Scanner [Support Thread]
Quote:
I was testing and providing feedback on the version provided by torvista
Thanks, but best to keep all on github for now at least. Please start a new issue there regarding that debug error with the install.
-
Re: Missing Image Scanner [Support Thread]
I have just installed the version from github on my test upgrade to ZC 155a and am very impressed. The filters all work, and the output is efficient and minimizes white space.
With ZC 155a the plugins version keeps throwing an error and when it does work the resulting page overwrites the entire admin section.
Used with:
ZC 1.5.5.a
Apache/2.4.17 (Win32) PHP/5.6.15
MySQL 5.7.9
-
Re: Missing Image Scanner [Support Thread]
Quote:
I have just installed the version from github
No installation problems?
-
Re: Missing Image Scanner [Support Thread]
No problems with the module at all.
I had a few issues with github. I overlooked the green download button on the main page and right clicked on the files to download them which results in the files content being replaced by copies of an .md file. This blows ZC admin up when installed :wacko:.
I manually copied the content of each file - today I see a large green button marked "Clone or download" :blush:
The layout of Images Checker is great, as it lists both the ID and model number making it easy to locate the product. I use this method as I am cleaning up images in production before I migrate to 1.5.5a. In 155a of course it allows immediate selection and editing of the record.
It is a pity that this clean layout is not used through all of ZC Admin.
Bailey
-
Re: Missing Image Scanner [Support Thread]
Quote:
It is a pity that this clean layout is not used through all of ZC Admin.
It is just a matter of stripping out all of the table-hell tags of which the admin pages are mainly composed. They can't do that yet or file merges would be impossible for upgrades. Another leap forward to expect with ZC 2.x...I presume...
Having said that, I did spend a completely unjustifiable amount of time on this, so glad it is problem-free.
-
Re: Missing Image Scanner [Support Thread]
Quote:
Originally Posted by
torvista
It is just a matter of stripping out all of the table-hell tags of which the admin pages are mainly composed. They can't do that yet or file merges would be impossible for upgrades. Another leap forward to expect with ZC 2.x...I presume...
Having said that, I did spend a completely unjustifiable amount of time on this, so glad it is problem-free.
You won't have to wait until 2.x. 1.6 Wil have a complete overhauled admin. If you like you can find it on github, and play with it.
-
Re: Missing Image Scanner [Support Thread]
Updated the version in the Plugins area to properly report an unset products_image field as an error (so you can find the products which are missing images, which was kind of the point of this mod). Also switched to using standard Zen Cart queries instead of direct MySQL.
-
Re: Missing Image Scanner [Support Thread]
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?
-
Re: Missing Image Scanner [Support Thread]
Quote:
Originally Posted 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?
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.)
-
Re: Missing Image Scanner [Support Thread]
Yeahbuh. Ctrl click will do the trick.
-
Re: Missing Image Scanner [Support Thread]
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
Code:
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
Code:
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;
-
Re: Missing Image Scanner [Support Thread]
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?
-
Re: Missing Image Scanner [Support Thread]
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?
-
Re: Missing Image Scanner [Support Thread]
Quote:
Originally Posted 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?
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
-
Re: Missing Image Scanner [Support Thread]
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!
-
Re: Missing Image Scanner [Support Thread]
I ran on my production and it worked great! I do see now you have the one option on there too. Thank you!
-
Re: Missing Image Scanner [Support Thread]
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!
-
Re: Missing Image Scanner [Support Thread]
Quote:
Originally Posted 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!
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.
-
Re: Missing Image Scanner [Support Thread]
Quote:
Originally Posted 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!
I fixed it .... LOL ... but just noticed that OldNGray fixed it before me.
-
Re: Missing Image Scanner [Support Thread]
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
-
Re: Missing Image Scanner [Support Thread]
Quote:
It would be great if this mod had
1) download to csv
Why?
Quote:
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.
Quote:
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?
-
Re: Missing Image Scanner [Support Thread]
Quote:
Originally Posted by
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
-
Re: Missing Image Scanner [Support Thread]
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!
-
Re: Missing Image Scanner [Support Thread]
Any plans to update for 2.0?
-
Re: Missing Image Scanner [Support Thread]
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?
-
Re: Missing Image Scanner [Support Thread]
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.
-
Re: Missing Image Scanner [Support Thread]