Cannot access existing catalog and items anymore
-
Hello,
After updating I get this when trying to access the CATALOGS menu
(/wp-admin/edit.php?post_type=upcp_catalog):Sorry, you are not allowed to access this page.
and this when trying to access ITEMS in CATEGORIES
(/wp-admin/edit.php?upcp-product-category=accessories&post_type=upcp_product):You need a higher level of permission.
Sorry, you are not allowed to edit posts in this post type.Other than that, the page that has the shortcode doesn’t display anything at all anymore. Just an empty page.
Rolled back to version 4.4.47 and everything works again.
Please advise when this new version 5 works again, thanks.
-
Hi John,
Was this on version 5.0.12? We corrected the permissions issue several versions back. If you are still getting it on 5.0.12, please try the following:
– Clear your browser cache
– Deactivate and then reactivate the pluginThanks for this and I managed to solve the permissions issue BUT I’m still getting only the categories without any products in them…
Are you able to provide a link to your catalog page. Maybe there are some clues there as to what might be going on. I haven’t heard anything about products going missing from categories in the new version. Or did none of your products get imported to the new version at all?
Some observations:
– All products are listed at backend and correctly assigned in categories.
– The column “Post ID” has the value “Duplicate” for all of them.
– When clicking on “View” in the backend on any category in the “Categories” page I get all of products correctly displaying and listed.
I get a page with this slug: …/upcp-product-category/accessories/
but when I click on the same category at frontend I get this slug:
…/showroom/?categories=63 (“showroom” is the catalog page)I don’t publish website links here but I can send you the link by email if you want.
Thanks.
Hi John,
1) For the “Duplicate” in the Post ID column, that is accidental carry-over text from the old version, which had a duplicate column. We’ll correct that. Thank you!
2) Your observation about the category URLs is correct and how it is supposed to be. Categories are now a taxonomy, so will have their own WordPress-generated permalinks. However, for our filtering and pre-loading, we use our own custom URL parameters to make it all dynamic (and to not require page reloading).
Since you mention that all of your products are in their categories, I’m not quite sure what the issue is, or what issue remains on your end. Nevertheless, if you would like to provide a screenshot for any remaining issue, and don’t want to post it here, you can indeed contact us via our support center here: https://www.etoilewebdesign.com/support-center/
Thanks for this, I’ll get back to you by email tomorrow.
In the meanwhile, I’m getting a bunch of those warnings, just in case they ring a bell for you:
Warning: get_class() expects parameter 1 to be object, null given in /wp-content/plugins/ultimate-product-catalogue/includes/Product.class.php on line 34
Warning: Invalid argument supplied for foreach() in /wp-content/plugins/ultimate-product-catalogue/ewd-upcp-templates/single-product-additional-images.php on line 3
Warning: array_merge(): Expected parameter 2 to be an array, null given in /wp-content/plugins/ultimate-product-catalogue/includes/Product.class.php on line 477
Hi John,
Those parameters should definitely already be objects or arrays. Is there any chance that, when you updated from 4.4.47 to 5.0.x, the plugin activation (or reactivation) did not complete or resulted in an error (e.g. a 500 Internal Server Error)? It sounds like you may have some missing data. For example, in the first warning, I’m not sure how the product could not be a post or how the $post could not be returning correctly. Where do you get that warning?
Those warnings were logged on the server in the error.log file and no, I never got other server errors when initially activating the plugin after the update.
I now deactivated the plugin and then re-uploaded manually all files by FTP and re-activated it. Not getting those anymore, at least for now…
But still no products are displaying.
Will follow-up by email with the site’s links, thanks.
UPDATE: email just sent out and warnings continue being logged in error.log file on srver.
This same issue happened to me. I updated the plugin and all of my catalogue items were deleted. We had hundreds of items, can I be helped?
I’ve just updated to 5.0.15 and now do not see any products on my pages anymore.
The site is empty, no error message.
Example: https://hopfgitarren.de/klassische-gitarren/Until now, I used the “Display Product Catalog Block” block with specifiying the “Product Catalog ID”. Do I have to change this with 5.x, as a manual migration task?
Do you have a “How to migrate to 5.x” documentation? At least I couldn’t find it.
-
This reply was modified 3 years, 7 months ago by
itudo.
Your products are not lost. They are either just hidden or, at worst, did not import correctly into version 5.0.x. (They are all still safely stored in the old UPCP_Items database table [unless, for some reason, you intentionally deleted that]). We converted the products over to now use a custom post type. When you first upgrade to 5.0.x, it needs to import all your existing products to the post type.
There were a couple releases very early on in which it was possible to either get duplicates or to not have all your products import correctly, if you had a large number of products and the upgrade/import didn’t complete correctly the first time around.
With the current release, it will continue the import process in the background until it is complete.
However, if you upgraded to 5.0.x very early on, during one of the aforementioned releases, and had either a duplicate import or a failed import, then the new version will not automatically overwrite this (as it will not [and should not] automatically delete products).
If this is the case for you, then to rectify this, you can do the following procedure.
– Backup up your site and database.
– Make sure you’re on version 5.0.0 or newer of our plugin.
– Delete all your products and catalogs. (You will not lose any of this data as it is all stored in the database tables for the old version of the plugin.)
– Then go the DASHBOARD screen in the plugin admin and add the following to the URL: &ewd_upcp_show_reset_settings=yes ( so, for example, if your URL looks like https://www.my-site.com/wp-admin/admin.php?page=ewd-upcp-dashboard then, after, it should look like https://www.my-site.com/wp-admin/admin.php?page=ewd-upcp-dashboard&ewd_upcp_show_reset_settings=yes )
– This will bring up a new button called “Reset Settings”. Click this button.
– Then immediately go and deactivate our plugin
– Update the plugin to the newest version (5.0.15 currently)
– Reactivate it.
– It will then restart the upgrade/import process. This can take a long time (dozens of minutes) if you have a lot of products. As long as it is running it will display a notice in the plugin admin. Once that notice goes away, you should be good to go.Do your products show in the admin? If so, it is not the same problem as either the thread starter or realitymg1. That sounds like you might just need to update the ID of your catalog. (It should still work with the old ID, but maybe there’s some other specific issue on your end.) Check the URL of the catalog edit screen to get the ID of the catalog and try that instead in the block/shortcode.
I don’t really understand your last paragraph above.
My page has this shortcode [product-catalogue id=’2605′] and the number is correct but still cannot display products if I keep the Catalog Overview Mode under Settings as “Categories and Sub-Categories” – it works only if I select “None” but it’s not nice because I have Categories.
Now, I see this when I go to my Dashboard: https://prnt.sc/1iwckfn
although my Catalog is well listed under Settings > Catalogs: https://prnt.sc/1iwdand
Any clues?
Thanks.
Thanks for your answer. It seems that the adding of a “Display Product Catalog” component does not work. After adding the component and filling out the parameters on the right hand site (catalogue id, starting layout), the resulting page is empty. And: “Edit as HTML” brings up an empty field.
When I instead manually add
[product-catalogue id=”1″ starting_layout=”list”]
to my page, it works.
@dsl225 The last paragraph was a reply to itudo. I literally said in it that their issue was not the same as yours. As such, my recommendation for what they should do was not aimed at you and has no use for you.
To all, this is why it is preferable to start your own topic/thread when you have an issue, and not piggyback on an existing thread.
I wouldn’t worry too much about the dashboard. The listing of catalogs in the dashboard is just there to give you an overview, and whether or not they show there has no effect on the functionality of the plugin or your catalogs. If your catalogs are showing in the Catalogs admin tab, then that is what is important, as it’s from there that you need to access them, to edit them, etc. Additionally, if you access the dashboard by clicking the DASHBOARD link in our purple admin menu, then it will list your catalogs. (There is a current issue in which, if you load that screen from the WP sidebar menu, it doesn’t list your catalogs, but it works fine from our internal DASHBOARD menu.)
If you set the overview mode to just categories, does it work? If so (or even if not), I would ask if you can share the URL, so I can see what’s going on, but you’ve already said that you don’t do that, which implies that you’ve been in communication with the email support team. With that in mind, could you please continue the discussion there? It will be much easier to provide effective support and troubleshooting if we can see your site and if the communication about the issue is happening all in the same place.
-
This reply was modified 3 years, 7 months ago by
- The topic ‘Cannot access existing catalog and items anymore’ is closed to new replies.