♥altoid Posted March 21, 2015 Share Posted March 21, 2015 Updated..installed...tested...working. :thumbsup: Thank you Quote I am not a professional webmaster or PHP coder by background or training but I will try to help as best I can. I remember what it was like when I first started with osC. It can be overwhelming. However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc. There are several good pros here on osCommerce. Look around, you'll figure out who they are. Link to comment Share on other sites More sharing options...
vampirehunter Posted May 13, 2015 Share Posted May 13, 2015 Updated..installed...tested...working. :thumbsup: Thank you Is this better than the Custom Server errors addon? Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted May 13, 2015 Author Share Posted May 13, 2015 They serve different purposes. This one issues actual 404 and 410 errors for items not found. The custom server errors addon redirects to a certain page on those errors. I recommend installing them both. There is a setting in this one to tell it where to redirect to and you can enter in the custom server error page to serve that purpose. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
vampirehunter Posted May 14, 2015 Share Posted May 14, 2015 So it's best to install both I see. ll add both. Quote Link to comment Share on other sites More sharing options...
vampirehunter Posted May 14, 2015 Share Posted May 14, 2015 To get the bootstrap version, do you have to extract the filed from that edge version of bs zip file? Or is there a direct link. Thanks Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted May 14, 2015 Author Share Posted May 14, 2015 I'm sorry but I've no idea what "extract the filed from that edge version" means. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
vampirehunter Posted May 14, 2015 Share Posted May 14, 2015 I'm sorry but I've no idea what "extract the filed from that edge version" means. this bit here what was quoted above. "Go here, lower right part of screen where it says download zip. https://github.com/g...sive-osCommerce That's what is being called the "edge" with all the latest commits. I tried it out a few days ago testing the installer that Gary updated. The install went fine." Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted May 14, 2015 Author Share Posted May 14, 2015 I still don't understand. Extract the filed? Regardless, I think the instructions are clear. You make the changes to the files mentioned, which exist in all oscommerce versions. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
douglaswalker Posted May 23, 2015 Share Posted May 23, 2015 Hi there firstly thank-you for this contribution. I am using it on a Boot Strap version all is working but I think I have found a bug. When someone writes a review and presses enter the site goes to the error page I have set up. Instead of the thanks for your review it will be live soon message. I realise this is because the review doesn't exist yet because as an admin I have not set it to approved. So it is working as it should but causes customers to think the review system is not working. Hope that makes sense. Doug Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted May 23, 2015 Author Share Posted May 23, 2015 I don't have a BS shop with those addons installed here so I can't test it. I do have them installed in a pre-2.3 shop and am able to add a review without a redirect. But 2.3 handles the reviews differently so that may not be accurate. This will probably need a check in the application_top file where this addon is called to see if this condition exists and then skip the call if it does. But I can't tell you what to check for since I don't have that setup. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
douglaswalker Posted May 23, 2015 Share Posted May 23, 2015 Ahh I see I didn't realise the reviews were handled differently in bootstrap. Is there a way to disable the review part of the handler until it is worked out. Somewhere in here functions/headerstaushandler else { //it's a review page $db_query = tep_db_query("select 1 from " . TABLE_PRODUCTS . " p left join " . TABLE_PRODUCTS_DESCRIPTION . " pd on p.products_id = pd.products_id where p.products_status = 1 and p.products_id = '" . (int)$pID . "' and pd.language_id = " . (int)$languages_id); if (tep_db_num_rows($db_query)) { $db_query = tep_db_query("SHOW COLUMNS FROM " . TABLE_REVIEWS . " LIKE 'approved'"); $checkItem = (tep_db_num_rows($db_query) > 0 ? 'r.approved' : 'r.reviews_status'); $db_query = tep_db_query("select " . $checkItem . " as status from " . TABLE_REVIEWS . " r left join " . TABLE_REVIEWS_DESCRIPTION . " rd on r.reviews_id = rd.reviews_id where r.products_id = '" . (int)$pID . "' and rd.languages_id = " . (int)$languages_id); if (tep_db_num_rows($db_query) == 0 && $pageType == FILENAME_PRODUCT_REVIEWS) { return RTN_GOOD; //a review doesn't exist but allow page to load so one can be written } } else { return RTN_410; //doesn't exist so marks as not found for good } } if (tep_db_num_rows($db_query) == 0) { return RTN_410; //doesn't exist so marks as not found for good } $db = tep_db_fetch_array($db_query); if ($db['status'] == 0) { return RTN_404; //in database and may be shown again } return RTN_GOOD; //product was found and can be shown } Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted May 23, 2015 Author Share Posted May 23, 2015 In includes/application_top.php change this line if (strpos($_SERVER['PHP_SELF'], FILENAME_PRODUCT_INFO) !== FALSE || strpos($_SERVER['PHP_SELF'], FILENAME_PRODUCT_REVIEWS) !== FALSE) { to this if (strpos($_SERVER['PHP_SELF'], FILENAME_PRODUCT_INFO) !== FALSE ) { Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
douglaswalker Posted May 23, 2015 Share Posted May 23, 2015 Thank you so much for the super fast replies really appreciate it. The other work around I found ... In product_reviews_write.php I changed the redirect which normally goes back to the just made review --- to redirect to the product you have just written about and show a success message. That way the product exists and the user is somewhere they understand. If anyone can see something I have missed which could cause a problem please let me know. Doug Quote Link to comment Share on other sites More sharing options...
greasemonkey Posted June 5, 2015 Share Posted June 5, 2015 @@Jack_mcs Hi Jack, I've installed this - along with Custom Server Error page here on 2.3.4 BS. As I debug my install, I have an issue when Header Status handler on I receive a "malformed syntax" error when I write a review. Have you seen such a thing? The review posts... but I end of at server_error.php with the error; 0 Unknown Error:This server incountered an unknown error due to malformed syntax I'm using fwr url's and I've tested it both on and off... with the same result. If I turn the header status handler off the review posts with no error. Seems only to happen on BS... Works fine on my live 2.3.4 store. Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted June 5, 2015 Author Share Posted June 5, 2015 The error code is 0, which shouldn't be. Please make sure the "redirect to" setting is something like server_error.php?id=404 Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
greasemonkey Posted June 6, 2015 Share Posted June 6, 2015 @@Jack_mcs HI Jack thank you kindly... Changing the the Header Status Handler Redirect to; server_error.php?id=404 seems to solve the issue.... Quote Link to comment Share on other sites More sharing options...
apopular Posted June 6, 2015 Share Posted June 6, 2015 If you are having 500 error when you add the .htaccess code remove some codes, i so in my c panel, customizable errors 400 (Solicitação incorreta) 401 (Autorização obrigatória) 402 (Pagamento obrigatório) 403 (Proibido) 404 (Não encontrado) 405 (Método não permitido) 406 (Não aceitável) 407 (Autenticação de proxy obrigatória) 408 (Tempo limite de solicitação) 409 (Conflito) 410 (Abandonado) 411 (Tamanho obrigatório) 412 (Falha na pré-condição) 413 (Entidade de solicitação muito grande) 414 (URI de solicitação muito grande) 415 (Tipo de mídia não compatível) 416 (Intervalo de solicitação não atendido) 417 (Falha na expectativa) 422 (Entidade não processável) 423 (Bloqueado) 424 (Falha na dependência) 500 (Erro interno do servidor) 501 (Não implementado) 502 (Gateway inválido) 503 (Serviço indisponível) 504 (Tempo limite de gateway) 505 (Versão de HTTP não compatível) 506 (Variante também negocia) 507 (Armazenamento insuficiente) 510 (Não estendido) And o make the same in Jack´s code #START Custom Server Error PagesErrorDocument 400 /server_error.php?id=400ErrorDocument 401 /server_error.php?id=401ErrorDocument 402 /server_error.php?id=402ErrorDocument 403 /server_error.php?id=403ErrorDocument 404 /server_error.php?id=404ErrorDocument 405 /server_error.php?id=405ErrorDocument 406 /server_error.php?id=406ErrorDocument 407 /server_error.php?id=407ErrorDocument 408 /server_error.php?id=408ErrorDocument 409 /server_error.php?id=409ErrorDocument 410 /server_error.php?id=410ErrorDocument 411 /server_error.php?id=411ErrorDocument 412 /server_error.php?id=412ErrorDocument 413 /server_error.php?id=413ErrorDocument 414 /server_error.php?id=414ErrorDocument 415 /server_error.php?id=415ErrorDocument 416 /server_error.php?id=416ErrorDocument 417 /server_error.php?id=417ErrorDocument 422 /server_error.php?id=422ErrorDocument 423 /server_error.php?id=423ErrorDocument 424 /server_error.php?id=424ErrorDocument 500 /server_error.php?id=500ErrorDocument 501 /server_error.php?id=501ErrorDocument 502 /server_error.php?id=502ErrorDocument 503 /server_error.php?id=503ErrorDocument 504 /server_error.php?id=504ErrorDocument 505 /server_error.php?id=505ErrorDocument 506 /server_error.php?id=506ErrorDocument 507 /server_error.php?id=507ErrorDocument 510 /server_error.php?id=510#END Custom Server Error Pages it´s working fine for me http://www.apopular.com.br/index.php Thank you @@Jack_mcs you are the best person in oscommerce man, thanhks Marcelo São Paulo,Brazil Quote I did, helped or traslate. http://addons.oscommerce.com/profile/104964 My english it´s só poor, but of you need help in portuguese, like shipping and payment that´s make a diference in brazil, come one, Obrigado (thank´s) Link to comment Share on other sites More sharing options...
blaine109 Posted August 13, 2015 Share Posted August 13, 2015 Before I install this addon, are there any other known changes that need to be made for a 2.3.4 Boostrap version? Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted August 14, 2015 Author Share Posted August 14, 2015 The code that gets altered is the same in all versions of oscommerce. The instructions may not match the BS version exactly but I think what to change will be apparent. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
blaine109 Posted August 14, 2015 Share Posted August 14, 2015 For 2.3.4 Bootstrap, the changed mentioned above in post# 62 for the includes/application_top.php file needs to be made otherwise it will take you to the 404 error page when a customer submits a review as well as if you click the reviews link for a product that has no reviews. Quote Link to comment Share on other sites More sharing options...
mk_osc Posted November 7, 2017 Share Posted November 7, 2017 On my upgraded BS 2.3.4.1 version I've lot's of errors on my google search console for URL's like this: domain.com/product_info.php/products_id/82 I tried manually this URL and which is then redirecting to domain.com/product_info.php/products_id/server_error.php?id=404 and keeps refreshing this URL in an infinite loop. Any ideas what might be wrong? And also, should this not rewrite the URL to SEO friendly URL anyway, since product id 82 is a valid product with SEO URLs installed? Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted November 7, 2017 Author Share Posted November 7, 2017 This addon doesn't have anything to do with url rewriting. It looks like you have a problem with the rewriter you have installed. The format you see in google is one created when the seo friendly option is set in admin. But that setting is turned off automatically when either Ultimate SEO or SEO 5 is installed. If you are using some other rewriter, or if that setting is still on, try turning it off and see what happens. Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
brian_cee Posted October 27, 2018 Share Posted October 27, 2018 I use BS Edge, I added this exactly, including the change in post 62 above. Now, when I visit a link to a product that is no longer in stock, instead of the usual "product not found" page, I just get nothing, a blank white page. When I turn this "off" in admin, I still just get a blank white page when visiting a link to an out of stock product. Up in the browser bar is the link to the product, it doiesn't redirect to anything, the page is just blank white. Is this a javascript issue, or where do you think the problem would be? Thanks in advance if anbyone has an answer they can share. Quote Link to comment Share on other sites More sharing options...
brian_cee Posted October 27, 2018 Share Posted October 27, 2018 Hate to double post, but I just noticed, even if I turn this off in admin, my whole catalog is just blank white pages, everything is gone, my whole site, basically. Quote Link to comment Share on other sites More sharing options...
brian_cee Posted October 27, 2018 Share Posted October 27, 2018 I got this email after installing this contribution: Pingdom DOWN alert: uptime (*my website*) is down since 10/27/2018 04:23:36 PM. Reason: HTTP Server Error 500 Internal Server Error So I restored backups of the edited files in this contribution and instantly got my site back up.... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.