nxgmotorsports Posted June 22, 2007 Share Posted June 22, 2007 Anyone have any fix for this? :'( the store was working perfectly fine for quite sometime. I attempted to install the google checkout module, and noticed it wouldnt work after so i removed it again... please help the store is losing $! thanks. :) Link to comment Share on other sites More sharing options...
usernamenone Posted June 22, 2007 Share Posted June 22, 2007 Sorry about your money loss. Did you return your files back to original and did you backup before making code changes? Link to comment Share on other sites More sharing options...
nxgmotorsports Posted June 22, 2007 Author Share Posted June 22, 2007 Sorry about your money loss. Did you return your files back to original and did you backup before making code changes? I didnt think of that, but i did re-upload everything .. still didnt work. Link to comment Share on other sites More sharing options...
usernamenone Posted June 22, 2007 Share Posted June 22, 2007 Did you make a change to your database? If so this could be the problem. Link to comment Share on other sites More sharing options...
nxgmotorsports Posted June 22, 2007 Author Share Posted June 22, 2007 Did you make a change to your database? If so this could be the problem. never touched the database. Link to comment Share on other sites More sharing options...
Guest Posted June 22, 2007 Share Posted June 22, 2007 when you activated the googlecheckout you added comments to the db in the configuration table you might want to look there. never touched the database. Link to comment Share on other sites More sharing options...
nxgmotorsports Posted June 22, 2007 Author Share Posted June 22, 2007 Anyone have any fix for this? :'( the store was working perfectly fine for quite sometime. I attempted to install the google checkout module, and noticed it wouldnt work after so i removed it again... please help the store is losing $! thanks. :) i didnt manually add anything to the database unless the script did, would you happen to know what im looking for? thanks. Link to comment Share on other sites More sharing options...
Guest Posted June 22, 2007 Share Posted June 22, 2007 it will be on the last page of the configuration table if you are using phpmyadmin. it will reference googlecheckout or something relative and yes if I remember correctly it does add some comments in the DB. Also it probably didn't work because it needs curl to work and even if you have it compiled you might need to have the includes/modules/payments/googlecheckout.php file mannually execute the curl command there is a place in the code to call it to do so. like line 95 if I remember correctly its simple like turning a 0 to a 1. i didnt manually add anything to the database unless the script did, would you happen to know what im looking for? thanks. Link to comment Share on other sites More sharing options...
nxgmotorsports Posted June 22, 2007 Author Share Posted June 22, 2007 it will be on the last page of the configuration table if you are using phpmyadmin. it will reference googlecheckout or something relative and yes if I remember correctly it does add some comments in the DB. Also it probably didn't work because it needs curl to work and even if you have it compiled you might need to have the includes/modules/payments/googlecheckout.php file mannually execute the curl command there is a place in the code to call it to do so. like line 95 if I remember correctly its simple like turning a 0 to a 1. i cant find anything with google on it. Link to comment Share on other sites More sharing options...
Guest Posted June 22, 2007 Share Posted June 22, 2007 post url please. i cant find anything with google on it. Link to comment Share on other sites More sharing options...
nxgmotorsports Posted June 22, 2007 Author Share Posted June 22, 2007 post url please. http://cgi.nxgmotorsports.com/catalog/index.php Link to comment Share on other sites More sharing options...
Guest Posted June 22, 2007 Share Posted June 22, 2007 var/www/sites/nxgmotorsports.com/catalog/includes/functions/banner.php what is on line 13 of the banner.php file ? http://cgi.nxgmotorsports.com/catalog/index.php Link to comment Share on other sites More sharing options...
Guest Posted June 22, 2007 Share Posted June 22, 2007 did you get it fixed? var/www/sites/nxgmotorsports.com/catalog/includes/functions/banner.php what is on line 13 of the banner.php file ? Link to comment Share on other sites More sharing options...
nxgmotorsports Posted June 22, 2007 Author Share Posted June 22, 2007 var/www/sites/nxgmotorsports.com/catalog/includes/functions/banner.php what is on line 13 of the banner.php file ? function tep_set_banner_status($banners_id, $status) { Link to comment Share on other sites More sharing options...
Guest Posted June 22, 2007 Share Posted June 22, 2007 I can fix it but I will need access if you want me to do it PM you ftp info you can check me out I do this for a living. function tep_set_banner_status($banners_id, $status) { Link to comment Share on other sites More sharing options...
usernamenone Posted June 22, 2007 Share Posted June 22, 2007 All you need to do is upload a clean copy of your banner.php Link to comment Share on other sites More sharing options...
Guest Posted June 22, 2007 Share Posted June 22, 2007 I dont think so. He didn't touch this file before. he delete banner code in the footer I am sure. All you need to do is upload a clean copy of your banner.php Link to comment Share on other sites More sharing options...
PD_Steve Posted June 22, 2007 Share Posted June 22, 2007 The problem you have is that your trying to reload the same function twice. Your banner code is attempting to install itself twice on the same page using the same function and this is creating the "cannot redeclare". Examine the call to the banner code. I would disable your banners or remove them and see if that fixes the problem time being. If it doesn't check everywhere in your code that is loading up your banners and systematically try removing the code (with backups) until its working again. Google Checkout however should not have touched the banner code so its very unlikely that google checkout caused this problem unless you did something wrong during the installation. I cannot see your site as the link you have is not working. Where are your banners on the site? My Toolbox: Crimson Editor, Adobe Photoshop CS2.0, Expression Web, Macromedia Suite 8.0, Cinema 4D, Nvu. Link to comment Share on other sites More sharing options...
Guest Posted June 22, 2007 Share Posted June 22, 2007 Well bud I am getting tired I think I am going to head to sleep if I can be of any help in the future feel free to contact me anytime! function tep_set_banner_status($banners_id, $status) { Link to comment Share on other sites More sharing options...
usernamenone Posted June 22, 2007 Share Posted June 22, 2007 Well, looks like he is doing a reinstall. Link to comment Share on other sites More sharing options...
Guest Posted June 22, 2007 Share Posted June 22, 2007 He's doing something. I tried to help but some people just dont want it. Well, looks like he is doing a reinstall. Link to comment Share on other sites More sharing options...
usernamenone Posted June 22, 2007 Share Posted June 22, 2007 Have to admit I wouldn't want to hand over user name and password to someone I don't know. Link to comment Share on other sites More sharing options...
PD_Steve Posted June 22, 2007 Share Posted June 22, 2007 Yeps. His problem is not that uncommon to be honest. On one of his pages somewhere he will simply have two calls to load up the banners (i.e. two include statements calling the banner.php). When the second one calls, the function tries to load itself again and fails as its already declared prompting that error. Alternatively, he may have an include in the header and also one in the index.. same problem. The solution is simple. Load up the first page and if it fails he needs to check his index.php for something calling banner.php and if he finds two.. remove one. If only one, then check the header.php for a banner call (or two) and remove them so he only has one. All should work again. (for the record, tep redeclares happen a ton when someone adds a contribution to a template created by template monster as they tend to embed the left column into the header. Then someone adds a contribution that adds something into the left column.. suddenly two left columns being called and bam.. cannot redeclare blah blah) My Toolbox: Crimson Editor, Adobe Photoshop CS2.0, Expression Web, Macromedia Suite 8.0, Cinema 4D, Nvu. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.