Posted - 10/31/2019 : 19:06:19
I received notification of broken links from a plugin. I discovered that the ECT pages (Cart, Account, Tracking, Contact, Order Status, etc) no longer load properly and some a page not found error.
This occurred after upgrading to the latest WP version & disabling the Custom Permalinks plugin due to other issues.
In the WP Permalink settings, I set it to https://www.sitename.com//%postname%/ format. I'm not sure if this should have been (or was) Post name https://www.sitename.com/sample-post/ format to keep the original formatting intact.
The purpose or need for adding the Custom Permalink plugin escapes me at this point. It seemed to be problematic and I'm hoping to purge it and any 'ghosts in the machine' left behind. I'm not sure how to do this.
While reading the Wordpress integration recommendations looking for solution, I found that for some pages the header code needs to change:
"<?php $GLOBALS['ectcartpage']='products'; require('./wp-config.php'); $wp->init(); $wp->parse_request(); $wp->query_posts(); $wp->register_globals(); get_header(); ?> <?php get_sidebar(); ?> <div> <?php include "vsadmin/inc/incproducts.php"; ?> </div> <?php get_footer(); ?>"
VS
"<?php $GLOBALS['ectcartpage']='products'; require('./wp-config.php'); $wp->init(); $wp->parse_request(); $wp->query_posts(); $wp->register_globals(); get_header(); ?>"
I tried this on the products page, but the formatting went nuts so I changed it back and am reluctant to blindly change the pages as suggested.
So.....how do I fix the link problem? Is the header code at the root of this issue?
Broken link Checker notification: Link text : customer account Link URL : http://www.sitename.com/clientlogin.php Source : Policies
Link text : Customer Account Link URL : http://www.sitename.com/clientlogin.php Source : Free Shipping
Link text : Customer Account Link URL : http://www.sitename.com/clientlogin.php Source : Accounts & Wish Lists
Edited by - tmdaslide on 10/31/2019 19:10:47
|