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
 PHP (Unix / Linux / Apache) versions
 $prodid - for static product detail pages NOT work
Author « Topic »  

midvalleydrifter001
Ecommerce Template Expert

USA
936 Posts

Posted - 02/14/2022 :  19:40:08  
After updating to ECT PHP 7.4.7 I noticed that none of my static pages are working. They all worked before.

I have this at the top of those pages.

<?php session_cache_limiter('none');
session_start();
ob_start();
include "vsadmin/db_conn_open.php";
include "vsadmin/inc/languagefile.php";
include "vsadmin/includes.php";
include "vsadmin/inc/incfunctions.php";
$explicitid="Badman-Intro";
$prodid="Badman-Intro";

include "vsadmin/inc/metainfo.php"; ?>

Below is one of the pages that isn't working.

https://www (DOT) badmanbullets.com/OnlineStore/BadmanBulletsCompanyIntro.php

I am aware of a fix from this thread. https://www.ecommercetemplates.com/support/topic.asp?TOPIC_ID=114364&SearchTerms=$explicitid

I tried deleting the $explicid feature and that didn't work either.

Patrick


Edited by - midvalleydrifter001 on 02/14/2022 19:55:28

Vince
Administrator

42874 Posts

Posted - 02/15/2022 :  02:24:37  
Hi Patrick
I had a check and it seems that the problem is a file incarticle.php which is calling a function emailfriendjavascript() which is no longer used. My guess is this page is based on the incproddetail.php page so maybe you could do a DIFF of the changes for the new version? But in any case if you just do a search and replace in that file for "emailfriendjavascript" and replace all occurences of that with "displaysoftlogin" then it should sort the error out.
quote:
<b>Fatal error</b>: Uncaught Error: Call to undefined function emailfriendjavascript() in /var/www/vhosts/badmanbullets.com/httpdocs/OnlineStore/vsadmin/inc/incarticle.php:952
Stack trace:
#0 /var/www/vhosts/badmanbullets.com/httpdocs/OnlineStore/BadmanBulletsCompanyIntro.php(349): include()
#1 {main}
thrown in <b>/var/www/vhosts/badmanbullets.com/httpdocs/OnlineStore/vsadmin/inc/incarticle.php</b> on line <b>952</b><br>

Vince



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

midvalleydrifter001
Ecommerce Template Expert

USA
936 Posts

Posted - 02/15/2022 :  08:38:46  
That fixed it

Thanks again Vince for your great support and help.

We all appreciate you greatly.

Patrick
  « 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