1.5.6c fresh install server error on attempting to create new category
Version 1.5.6c did a clean install yesterday and created a couple of test categories and products, then I installed Tableau2 template and now today I'm getting a server error when attempting to create a new category even if I change the template back to default:
PHP Warning: require(includes/modules/prod_cat_header_code.php): failed to open stream: No such file or directory
No other mods besides Tableau2 template.
Re: 1.5.6c fresh install server error on attempting to create new category
I don't find that file in the template or a plain 1.5.6c load. Perhaps you added some other mod and the file did not get uploaded. Maybe a URL rewriter.
Re: 1.5.6c fresh install server error on attempting to create new category
Tableau2 overwrites categories.php and includes this on line 11 referenced in my error:
require(DIR_WS_MODULES . 'prod_cat_header_code.php');
Re: 1.5.6c fresh install server error on attempting to create new category
Removed the line and I can now create categories but the category/products page changes to the old categories.php with broken text/images instead of category_product_listing.php when creating a category and afterwards until I click category/products again.
Re: 1.5.6c fresh install server error on attempting to create new category
Yes, and the file it is saying is required is not in the mod nor in the current version of Zen Cart. I cannot find it in any of the 1.5.x versions.
Unfortunately numinix did not create a support thread. You might want to try their site.
Re: 1.5.6c fresh install server error on attempting to create new category
This is perhaps a good time to take a small step back... the template was obviously written for a previous Zen Cart version. It modified some of the core files or at least modified the flow of code. Would suggest comparing the files modified by the template with the files of the older ZC version and then locating as necessary where that new code may exist now... make the change(s) necessary within the new code. There were some pretty significant changes made in the admin to provide the current 1.5.6c version.
Re: 1.5.6c fresh install server error on attempting to create new category
Yep, Tableau2 overwrites a bunch of core files. If you don't want to use it, you'll need to pull these files from a fresh download of Zen Cart 1.5.6c and overwrite Tableau's changes:
includes/classes/split_page_results.php
admin/template_select.php
admin/configuration.php
includes/modules/pages/unsubscribe/header_php.php
includes/modules/pages/specials/main_template_vars.php
includes/modules/pages/specials/header_php.php
includes/modules/pages/products_new/header_php.php
includes/modules/pages/products_all/header_php.php
includes/modules/pages/index/main_template_vars.php
includes/modules/pages/featured_products/header_php.php
includes/modules/pages/advanced_search_result/header_php.php
Re: 1.5.6c fresh install server error on attempting to create new category
Quote:
Originally Posted by
mjf91331
Removed the line and I can now create categories but the category/products page changes to the old categories.php with broken text/images instead of category_product_listing.php when creating a category and afterwards until I click category/products again.
I just stumbled upon this and I am also getting 500 error, did you find out a solution? I just imported a bunch of products and trying to edit categories also causes 500
Re: 1.5.6c fresh install server error on attempting to create new category
Quote:
Originally Posted by
swguy
Yep, Tableau2 overwrites a bunch of core files. If you don't want to use it, you'll need to pull these files from a fresh download of Zen Cart 1.5.6c and overwrite Tableau's changes:
includes/classes/split_page_results.php
admin/template_select.php
admin/configuration.php
includes/modules/pages/unsubscribe/header_php.php
includes/modules/pages/specials/main_template_vars.php
includes/modules/pages/specials/header_php.php
includes/modules/pages/products_new/header_php.php
includes/modules/pages/products_all/header_php.php
includes/modules/pages/index/main_template_vars.php
includes/modules/pages/featured_products/header_php.php
includes/modules/pages/advanced_search_result/header_php.php
I done did evrthing, all back to normal. thanks
Re: 1.5.6c fresh install server error on attempting to create new category
I too had installed, and then uninstalled the Tableau2 template and had the same issue.
I uploaded/replaced the files above and it fixed some, but not all.
Then I uploaded from a fresh download of ZC admin/categories.php and that fixed it.