It's interesting, I just replaced the "includes/functions/functions_general.php" from the mod with my backed up file and it started working again.
And I know there are differences between the two.
Printable View
It's interesting, I just replaced the "includes/functions/functions_general.php" from the mod with my backed up file and it started working again.
And I know there are differences between the two.
Ya, but now you may have problems with users creating accounts or resetting passwords etc.
You replied to my sorting manufactures post. Is this what you are having issues with? I only ask because I intended to post this as a new thread but it somehow ended up being part of this thread. Apologies if not and for any confusion.
If it is regarding sorting manufacturers please post your code and ill take a look. I'm not site why that would cause any issues in those files you mentioned.
My 1.5.1 didn't merge very well. Try using the 1.5.1 original file as a template and use the properly merged code which seems to work provided by DrByte here:
http://www.zen-cart.com/showthread.p...44#post1188244
Hi Phil - I was replying to Dynamic Filter [Support Thread] and not to Sorting Manufacturers on Dynamic Filter Sidebox . Sorry I didn't realize the title could be revised.
I am trying to install "Dynamic Filter v1.0" in a perfectly working Zen 1.5.1. I am having a terrible time trying to figure out what I am doing wrong!
Following is the error I am getting, plus a nice white page on a previously working test site.
I had installed Products Listing Sorter v1.1 and I thought that was conflicting with Dynamic Filter v1.0. So I removed it and I am still getting the above error.PHP Code:
[23-Feb-2013 13:46:13] PHP Fatal error: Cannot redeclare zen_create_random_value() (previously declared in
/home/content/***/html/cart/includes/functions/functions_general.php:626) in
/home/content/***/html/cart/includes/functions/password_funcs.php on line 86
I have followed exactly as per the instructions.
DrByte replied saying that I have to merge the files in /includes/functions/functions_general.php
As I am looking at the /includes/functions/functions_general.php file from Dynamic Filter v1.0 mod and comparing it to the original file of my working site, there is a vast amount code changes. And I don't think it's just a matter of doing a merge with some line of code.
There is a lot of line of code otherwise, I would have copied it here.
And I can't figure out where to start looking for other errors, if any?
I am stuck. :frusty:
What files did dynamic filter override on your install?
If I remember correctly on mine te main two were the functions general and the default filter (I think)
Both I think were out of date from the 1.5.1 files ment they needed merging instead of simply replacing.
Did you try using the clean 1.5.1 functions general file with DrBytes updated and merged function which affects dynamic filter in the post with link I made above?
Failing this its got to be either a mod somewhere conflicting or you haven't merged a file correctly somewhere.
Might be worth fully removing dynamic filter and starting over just to double check?
I can confirm that I have it working fine on 1.5.1 the only change I had to make was the functions general code in that post (but this was just to rectify warnings not because it wasn't working) which is why I think you have something wrong going on
I just noticed that even thought in the install section of the mod says
Attachment 11990Quote:
Modified Core Files
A few core Zen Cart files must be modified to work with the Dynamic Filter module.
If any of the core files this distribution uses have already been modified (because of another third party module being installed for example) then the changes for the respective files should be applied manually by copying across the appropriate sections of code required for the Dynamic Filter module. These sections are clearly marked (with “// bof dynamic filter x of x” and “// eof dynamic filter x of x” comments) within the sample files provided in this distribution and should be easy enough to copy across, especially if a “diff” software package (such as DiffMerge or WinMerge) is used.
The modified files can be found within the 'core file overrides' folder in the distribution as follows.
In the supplied mod file /includes/functions/functions_general.php there are other line with code changes. That are not commented with “// bof dynamic filter x of x” and “// eof dynamic filter x of x” comments. So I would not know what to merge. :yuck:
The commented bit is the only bit that needs merging. Any other differences are because the file is an old version. So hence you need to use your fresh 1.5.1 copy of te file and just update the function detailed In The post linked in where DrByte amended the function that was commented as described above.
If you still get problems it's because you have other mods that have modified the functions general file
Overrides are:
The mod has the following overrides, which I have added.
It also askes you to add a template override includes/index_filters/YOUR_TEMPLATE/default_filter.phpQuote:
includes/classes/split_page_results.php
includes/functions/functions_general.php
includes/modules/pages/advanced_search_result/header_php.php
includes/modules/pages/featured_products/header_php.php
includes/modules/pages/products_all/header_php.php
includes/modules/pages/products_new/header_php.php
includes/modules/pages/specials/header_php.php
includes/modules/pages/specials/main_template_vars.php
The only thing I have not done is to addto includes/init_includes/init_canonical.php file, Since I am getting a white page, am not even there yet.PHP Code:
[B]$excludeParams[] = DYNAMIC_FILTER_PREFIX . 'Colour';[/B]