Posted - 05/21/2022 : 14:29:49
I'm missing something thats probably simple, but I can't seem to find it. I'm getting undefined variables, $pagetitle, $sectionname, $productid, and $productname in ect-widgets.php on lines 499, 502, 503, in a new wordpress WP subdomain I created under the PHP main domain site, tekna.us. I have separate copies of db's for both sites. I'm able to access the vsadmin/admin.php page in the WP subdomain and have set both store url's at https://wp.tekna.us. Each category has it's own title in the category admin page. When viewed thru wp, the wordpress categories page lists each category, but just a broken image link. I have set up the 8 specific ECT wordpress pages as per the ECT Wordpress installation instructions, including using the appropriate slug. I copied the .css and .js subdirectories over as well.
I note images are not always displaying according to their hierarchial definition in admin.php. I have them grouped in to small/large/giant subdirectories. When trying to view a product directly, an inspection of the broken image link on the browser page indicates it's trying to find the image at prodimages/xxx.webp. If I temorarily modify the browser html attribute with the developer tools (F12), entering 'Large' as the subdirectory of prodimages does find the image.
Interestingly, the ECT search WP page DOES return an image of a product searched for, from the correct subdirectory structure. However when clicking the Enlarge link to show the Giant image, the HTML src attribute returns "(unknown)". Clicking Next for multiple images of the same product does the same. Very strange. Some things work, and some don't. Cannot log in to a customer account as the AJAX window doesn't pop up. As such the checkout button doesn't work either.
I copied the includes.php file from the DWT PHP site and modified it for the WP site, as per ECT installation instructions. I have the ECT includes at the top of the WP header.php page. Although I had to use an include_once for each link. The ECT-Widgets plug-in is installed and activated. It just seems that Wordpress not finding the correct directory structure somehow.
|