Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
 All Forums
 Technical
 ASP (Windows server) versions
 Update 7.4.8 causing 500 error, same as 7.4.7
Author « Topic »  

Marshall
Ecommerce Template Guru

USA
1909 Posts

Posted - 04/17/2022 :  14:59:32  
I never resolved the issue of why when updating from 7.4.6 to 7.4.7 the site was getting 500 errors (see https://www.ecommercetemplates.com/support/topic.asp?TOPIC_ID=114645), so I just left it on 7.4.6.

While updating to 7.4.8, I ran into the same problem, product page throwing 500 error as were a couple of static category pages. Everything else worked fine, cart, proddetail, and so on, as did adding items to cart. After double and triple checking that there were no modifications to the site, I compared the 7.4.6 incproducts.asp file to the 7.4.7 and 7.4.8 versions and found this difference.

In 7.4.6 from line 562 to 565 there is this:
wantmanufacturer=instr(productpagelayout&quickbuylayout,"manufacturer")>0 OR (useproductbodyformat=3 AND instr(cpdcolumns, "manufacturer")>0) OR ((NOT usecsslayout OR useproductbodyformat<>2) AND xxManLab<>"") OR googletagid<>""
sSQL="SELECT pId,pSKU,"&getlangid("pName",1)&","&WSP&"pPrice,pListPrice,pSection,pSell,pStockByOpts,pStaticPage,pStaticURL,pInStock,pExemptions,pTax,pTotRating,pNumRatings,pBackOrder,pCustomCSS,pCustom1,pCustom2,pCustom3,pDateAdded,pMinQuant,pSchemaType,"&IIfVr(wantmanufacturer,getlangid("scName",131072)&",","")&IIfVr(shortdescriptionlimit<>"" AND shortdescriptionlimit=0,"'' AS ","")&getlangid("pDescription",2)&","&getlangid("pLongDescription",4)&" FROM products "&IIfVr(wantmanufacturer,"LEFT OUTER JOIN searchcriteria on products.pManufacturer=searchcriteria.scID ","")&"WHERE pId IN (" & prodlist & ")" & sSortBy
rs.open sSQL, cnn, 0, 1
end if

In 7.4.7 and 7.4.8, it is now this, lines 562 to 570:
wantmanufacturer=instr(productpagelayout&quickbuylayout,"manufacturer")>0 OR (useproductbodyformat=3 AND instr(cpdcolumns, "manufacturer")>0) OR ((NOT usecsslayout OR useproductbodyformat<>2) AND xxManLab<>"") OR googletagid<>""
sSQL="SELECT pId,pSKU,"&getlangid("pName",1)&","&WSP&"pPrice,pListPrice,pSection,pSell,pStockByOpts,pStaticPage,"&getaltlang("pStaticURL",8388608)&",pInStock,pExemptions,pTax,pTotRating,pNumRatings,pBackOrder,pCustomCSS,"
templayoutarray=split(lcase(productpagelayout),",")
for each layoutoption in templayoutarray
if left(trim(layoutoption),6)="custom" then sSQL=sSQL&replace(layoutoption,"custom","pCustom")&","
next
sSQL=sSQL&"pDateAdded,pMinQuant,pSchemaType,"&IIfVr(wantmanufacturer,getlangid("scName",131072)&",","")&IIfVr(shortdescriptionlimit<>"" AND shortdescriptionlimit=0,"'' AS ","")&getlangid("pDescription",2)&","&getlangid("pLongDescription",4)&" FROM products "&IIfVr(wantmanufacturer,"LEFT OUTER JOIN searchcriteria on products.pManufacturer=searchcriteria.scID ","")&"WHERE pId IN (" & prodlist & ")" & sSortBy
rs.open sSQL, cnn, 0, 1
end if

I replaced the 7.4.8 inc/incproducts.asp with the 7.4.6 version and everything works fine. Since I uploaded all new files, I am not sure what could possibly be missing that would be affected by the addition five lines of code in v7.4.7 and 7.4.8. Also, I did not have this problem with the PHP version.

Thoughts?

Just discovered having same problem with search.asp when doing search. It returns a 500 error. Checked incsearch.asp and found difference in version 7.4.6 lines 327-331
rs.close
wantmanufacturer=(instr(productpagelayout&quickbuylayout,"manufacturer")>0 OR (useproductbodyformat=3 AND instr(cpdcolumns, "manufacturer")>0) OR (NOT usecsslayout AND xxManLab<>""))
sSQL="SELECT "&IIfVs(NOT nosearchrelevance,"0 AS relevanceorder,")&"pId,pSKU,"&getlangid("pName",1)&","&WSP&"pPrice,pListPrice,pSection,pSell,pStockByOpts,pStaticPage,pStaticURL,pInStock,pExemptions,pTax,pTotRating,pNumRatings,pBackOrder,pDateAdded,pMinQuant,pSchemaType,pCustomCSS,pCustom1,pCustom2,pCustom3,"&IIfVr(wantmanufacturer,getlangid("scName",131072)&",","")&IIfVr(shortdescriptionlimit<>"" AND shortdescriptionlimit=0,"'' AS ","")&getlangid("pDescription",2)&","&getlangid("pLongDescription",4)&" FROM products "&IIfVr(wantmanufacturer,"LEFT OUTER JOIN searchcriteria on products.pManufacturer=searchcriteria.scID ","")&"WHERE pId IN (" & prodlist & ")" & sSortBy
rs.open sSQL, cnn, 0, 1
end if

versus version 7.4.8 lines 327-336
rs.close
wantmanufacturer=(instr(productpagelayout&quickbuylayout,"manufacturer")>0 OR (useproductbodyformat=3 AND instr(cpdcolumns, "manufacturer")>0) OR (NOT usecsslayout AND xxManLab<>""))
sSQL="SELECT "&IIfVs(NOT nosearchrelevance,"0 AS relevanceorder,")&"pId,pSKU,"&getlangid("pName",1)&","&WSP&"pPrice,pListPrice,pSection,pSell,pStockByOpts,pStaticPage,"&getaltlang("pStaticURL",8388608)&",pInStock,pExemptions,pTax,pTotRating,pNumRatings,pBackOrder,pDateAdded,pMinQuant,pSchemaType,pCustomCSS,"
templayoutarray=split(lcase(productpagelayout),",")
for each layoutoption in templayoutarray
if left(trim(layoutoption),6)="custom" then sSQL=sSQL&replace(layoutoption,"custom","pCustom")&","
next
sSQL=sSQL&IIfVr(wantmanufacturer,getlangid("scName",131072)&",","")&IIfVr(shortdescriptionlimit<>"" AND shortdescriptionlimit=0,"'' AS ","")&getlangid("pDescription",2)&","&getlangid("pLongDescription",4)&" FROM products "&IIfVr(wantmanufacturer,"LEFT OUTER JOIN searchcriteria on products.pManufacturer=searchcriteria.scID ","")&"WHERE pId IN (" & prodlist & ")" & sSortBy
rs.open sSQL, cnn, 0, 1
end if

As with the incpoducts.asp files, I replaced the incsearch.asp file with version 7.4.6 and all works fine.

Marshall
CENLYT Productions - ms designs
Affordable Web Design
Custom Ecommerce Designs
Responsive Websites
Cenlyt.com

Edited by - Marshall on 04/17/2022 16:18:19

Vince
Administrator

42761 Posts

Posted - 04/18/2022 :  04:38:15  
Hi Marshall
Would it be possible to access your site so I can set up a test page? If so could you send the details to vince AT ecommercetemplates DOT com

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

Marshall
Ecommerce Template Guru

USA
1909 Posts

Posted - 04/18/2022 :  05:25:51  
On the way.

Marshall
CENLYT Productions - ms designs
Affordable Web Design
Custom Ecommerce Designs
Responsive Websites
Cenlyt.com

Vince
Administrator

42761 Posts

Posted - 04/18/2022 :  08:05:55  
Hi Marshall
I've found the error and it was occurring if the "custom1,custom2,custom3" parameters appeared in the quickbuylayout parameter but not in the productpagelayout parameter. So sorry for the problems but if you get a new copy of the updater and copy the incproducts.asp script to your site it will sort this out.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

Marshall
Ecommerce Template Guru

USA
1909 Posts

Posted - 04/18/2022 :  08:40:57  
So I was not going crazy, well not in the institutional sense. I will get the new updater. Did you fix the inc/incsearch.asp also?

Marshall
CENLYT Productions - ms designs
Affordable Web Design
Custom Ecommerce Designs
Responsive Websites
Cenlyt.com

Marshall
Ecommerce Template Guru

USA
1909 Posts

Posted - 04/18/2022 :  16:20:08  
I updated the incproducts.asp file and the product page works as it should. However, the incsearch.asp is still throwing the same 500 error. I changed that back to v7.4.6 for now, but I think it needs the same fix you did to the incproducts.asp file.

Marshall
CENLYT Productions - ms designs
Affordable Web Design
Custom Ecommerce Designs
Responsive Websites
Cenlyt.com

Vince
Administrator

42761 Posts

Posted - 04/19/2022 :  02:06:52  
Hi Marshall
I do apologize and I've updated the incsearch.asp and inccrosssell.asp files also now.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

Marshall
Ecommerce Template Guru

USA
1909 Posts

Posted - 04/19/2022 :  05:19:14  
That is okay Vince, I know you have a lot on your mind.

Marshall
CENLYT Productions - ms designs
Affordable Web Design
Custom Ecommerce Designs
Responsive Websites
Cenlyt.com
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000