I am getting the exact same problem as rxalex. Any fixes yet?
I'm not that well versed in deciphering php error logs. Try searching the entire form for "cannot redeclare class" and see if any threads come up for this or other mods with that error. It might get you pointed in the right direction.
I had a couple errors, but have it working correctly now. Here is what I did to fix each problem:
Error #1 - After installing, my website came up blank. The error log came up as : Cannot redeclare class supertracker in /home/on233/public_html/dir/includes/classes/supertracker.php on line 15
I deleted the install and reinstalled. This fixed it.
Error#2 - Received the following error on the country and last 10 visitors report: 1267 Illegal mix of collations (latin1_general_ci,IMPLICIT) and (latin1_swedish_ci,IMPLICIT) for operation '='
in:
[SELECT COUNT(*) AS count, s.country_code, c.countries_name FROM supertracker s LEFT JOIN countries c ON (c.countries_iso_code_2 = s.country_code) GROUP BY country_code]
I went into PhpMyAdmin, opened the supertracker table, clicked select all, then edit. I changed all the offending "latin1_swedish_ci" to "latin1_general_ci". This fixed it.
Thank you for the tidbits of help I read on this thread so that I could fix these errors.
Kim
And I spoke too soon. I'm still getting the blank page after reinstalling the mod.
Still getting PHP Fatal error: Cannot redeclare class supertracker in /home2/XXXXXX/public_html/includes/classes/supertracker.php on line 15
The only thing on line 15 is:
class supertracker {
I know absolutely nothing about PHP, but the jscript file seems a little odd. All the other jscript files in the folder have a suffix of .js, whereas this one is named js_supertracker.php. Is this an error?
I'm running PHP 5.2.16.
Any help is greatly appreciated.
Kim
I believe this error message is telling you that some other file is trying to call (or declare) the supertracker class for that page. Meaning that two different files are calling the same class (supertracker) for the same page. This is causing a conflict that can't be resolved, and so the fatal error (stop loading page) results.
To resolve the problem, I believe you have to identify all the files that are calling (or declaring) the class (i.e the code that's on line 15) and remove one of them.
I don't have the faintest idea how to advise you re: where to start. I suggest searching the forum for " PHP Fatal error: Cannot redeclare class" and see what comes up. You might find some instructions on how to handle this kind of error.
You could also do a google search on it.
Sorry I couldn't be of more help
A google search of "cannot redeclare class" brought up this site. See if the info there helps you out a little bit.
To find all the places this class is declared (usually more than once in a single file, but can also be only once in more than one file), try logging in to your ZC admin, and going to tools>>Developer's Toolkit.
Go down to "Look-Up in all Files". In the all files field, select all files. Check "case sensitive" and then in the box, paste in the code from line 15 class supertracker {
See which files that come up that are declaring (calling) this class, or if it's being called more than once in one file.
Armed with that info, you can go to the forum's general support board and start a new thread and provide all the details of your research and request help in fixing it.
Good luck :)
Hi ScriptJunkie,
I've been working on deducing the number of files it could be. I copied this website from another website I created. So, I downloaded supertracker onto the old website. It worked fine.
Then on this website I changed it back to the classic template and the tracker worked fine (or at least it didn't give me a blank page).
So, it's got to be a template file that doesn't exist in the classic template, and that I've changed since copying the website. I've also added about 4 other mods to this website. But I guess if the classic template works fine with those other mods installed, it wouldn't be any files from those mods.
I did the search from the Developer's Tool Kit for "class supertracker" but came up empty except for the original file. Tomorrow I'll be going through my files with a fine tooth comb. I'll let you know what my findings are, as it may help someone else who has the same problem.
Kim
Hmm...those are some interesting results....makes me wonder if it's the file itself that's being called more than once. That can happen when two identical javascript files are competing against each other.
Since it only happens with the current template, makes me wonder if the mod and the template have battling js files. I have no idea how to advise on that though.
Your next step might have to be putting all your results into a new thread in the general support forum.
Can I use supertracker outside of zen-cart, like on a portal page if zen-cart is installed in /cart ? Thanks.
Bookmarks