FPHPSC TroubleShooting

From FreeBert Wiki

Jump to: navigation, search

[edit] Trouble Shooting The freebert Free PHP Shopping Cart

If you are having a problem not already mentioned in any of the other articles for the freebert.com Free PHP Shopping Cart, post your message below, and together we can sort out any / all problems.


Hello All,

10 July 2010. Sorry if this is in the wrong place, but not sure where else to ask.

Can anyone explain what limits the numbering of the Title, SerialNumb and so on, which starts at 0 and increases as you add batch items, to a limit of 99,999 or five characters after the word?

13 July 2010. Correction to item. An actual number for example in a batch is number Title499999, you can do up to Title599999, but if you try the number as Title600000 or anything above 599999 an error is shown saying the data cannot be processed. Reduce the number by just 1 and error vanishes and all works fine.

Martin.


July 14th, 2009: All Issues Below Have Been Fixed In The Latest Version Download Package


Problem: Update Cart I can add items to my cart just fine, but if i have a qty of 2, and want it update the qty, when i change the qty value, and hit the update button it empties the cart. Can you help me?


Problem emailed: March 02 2009
I had a problem were the cart would not populate or load items. Cart page would come up "Cart Empty".

REPLY:
With the help from Colin Burke and another freebert shopping cart user I was able to update the script on ShoppingCart.php and MakePayment.php files, from if (is_numeric($HTTP_POST_VARS['cmd'])) with if (is_numeric($_POST['cmd'])) Note: My server, godaddy.com operates on a newer version of php of 5.2 which gave me this problem. I opened the files with Wordpad and just find and replaced.

ADDITIONAL NOTE ADDED July 13 2009 Thank you for the above note - it saved me hours. I just wanted to add that I have godaddy too and I had to replace ALL instances of $HTTP_POST_VARS with $_POST ... not just the one line. In case that wasn't clear to others. My shopping cart works now. I haven't tried the payments page problem yet, but I assume it will be the same thing. Thanks Again!!


Problem emailed: December 05 2008
I’ve set up the php shopping cart script to the best of my knowledge but at the bottom of each page I get this error: “Error in my_thread_global_end(): 1 threads didn't exit”
Could you tell me how I could correct this please?

REPLY:
This is a strange error to me, and after googling the error message I found it pertains to mysql (database related function). As the current version of the shopping cart script does not use or call any mysql functions, I would have to assume the problems lies in other code in your page, or a problem with your server.

I found the following page after googling your error message – copied from https://support.kayako.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=236

Error in my_thread_global_end(): 1 threads didn't exit

Solution: This error indicates that MySQL threads are not exiting correctly. There are a variety of causes for this problem, each of which requires a different result. This indicates that the MySQL instance on this machine is not running correctly, and needs maintenance; please contact your ISP or IT staff to request a repair. General instructions to resolve this problem are not realistic; this is a circumstance which should not be seen in general practice. It may be wise to take a complete backup of your database contents before proceeding.

And I found a relevant forum thread regarding your error message: http://forums.mysql.com/read.php?10,153077,153077

Good luck. If you do resolve your issue, please feel free to post it here incase others come across a similiar error.


Problem Posted: November 19 2008

Hi i am installing the freebert php shoping cart wing i have working fine the only problem is when it goes to the paypal stage it is still showing $ instead of the uk sterling pound £ sign

Please can you help me

Kind regards

Michelle

REPLY: Quick Fix:
In the PayPal Payment Mod, (/inc/payment_mods/PAYPAL_Functions.php)
Find the line:
<input type="hidden" name="currency_code" value="USD">
Change the “USD” to paypal’s currency code for the sterling pound: “GBP”. Save, upload, test – any new order your send to paypal should now be in sterling pound.

For anyone else, a quick search at paypal brought up this table of currency codes:
Australian Dollars "AUD" - Canadian Dollars "CAD" - Euros "EUR" - Pounds Sterling "GBP" - Yen "JPY" - U.S. Dollars "USD" - New Zealand Dollar "NZD" - Swiss Franc "CHF" - Hong Kong Dollar "HKD" - Singapore Dollar "SGD" - Swedish Krona "SEK" - Danish Krone "DKK" - Polish Zloty "PLN" - Norwegian Krone "NOK" - Hungarian Forint "HUF" - Czech Koruna "CZK" - Israeli Shekel "ILS" - Mexican Peso "MXN" -


Problem Posted: Jan 2008
Hi we need some help on your php free shopping cart, we did everything in your readme ,we get the following erro message :

Warning: Missing argument 1 for getcarttotals() in /.../html/FPHPSC/inc/functions/Cart_Functions.php on line 485

REPLY: Quick Fix: In MakePayment.php change line 33:
From:
$Cart_Totals=GetCartTotals();
To:
$Cart_Totals=GetCartTotals($Session_Prefix);

As you can see, the problem lay with the Session_Prefix parameter (set in Local_Settings.php) not being passed as is required by the GetCartTotals(); function. This bug has been fixed within the current download package.


Problem Posted???
I've added an item exactly as described, but I always get the following message: " Warning: main(inc/functions/Cart_Templates.php) [function.main]: failed to open stream: No such file or directory in /home/dearst00/public_html/fsc/ShoppingCart.php on line 21

Fatal error: main() [function.require]: Failed opening required 'inc/functions/Cart_Templates.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/dearst00/public_html/fsc/ShoppingCart.php on line 21"

Just wanna know what I can do..
Reply:.
Sounds like a problem with PHP not finding / being able to open the required files listed at the top of the script. Make sure the inc folder (and included files and subfolders) is included in the same folder as the ShoppingCart.php file (or update the path to those files in the require code at the top of the shoppingcart.php page.

The best way to avoid these problems is to make sure you have not changed the file structure and / or have moved / renamed folders or files that are included with the FPHPSC. Please try downloading and installing the shopping cart package in the default configuration and testing. Then make any customizations you wish and test. If it stops working after you make a customization, it was probably something you customoized that has created the error. I hope that helps - good luck.


Problem POSTED ??? I am having trouble with your program, when adding an item to my cart, it displays:

 ); include('inc/skin/Overall_Header.php'); 

Please Verify Your Order is Correct Before Continuing With Checkout:

The rest of the page is blank.

Thank you.
REPLY:
It looks as if you have edited something in /ShoppingCart.php in the file before the line:
include('inc/skin/Overall_Header.php');
The edit MOST LIKELY (but not definitly) happand in the section just before the line you are seeing displayed:

// Do HTML Header
Open_Cart_HTML($Site_Script_Root_Directory,$CSS_Filename,$Site_Title.' - Shopping Cart',"
<META NAME='keywords' CONTENT='".$Site_Title." Shopping Cart'>
");

include('inc/skin/Overall_Header.php');

If you were to edit a part, say the page title, its possible you did not include single quote, or the closing angle bracket '>'. As such the rest of the document is not being executed as it should. Please take a careful look at any edits you did to the original file, or reinstall the original file and retry your custom edits 1 at a time to find where your edit is breaking the code.

PROBLEM POSTED: March 10, 2010 I have this same issue "right out of the box." No editing done except the Local_Settings.php. Running on XAMPP 1.7.3 using only a localhost. Also, manifests on an XP machine using IIS 5 and PHP 5.3.1. Incidentally, I noticed that the above issue with $_POST has been corrected in my downloaded version.

PROBLEM SOLVED: March 16, 2010 I changed all the <? code markers in the php files to <?php. XAMPP, Apache 2.2, and IIS 5 do not seem to consistently pass the script to the PHP interpreter unless the code marker explicitly says PHP.


I have a similar problem in that when I select an Add to cart button the only thing being displayed on the ShoppingCart.php is "Please Verify Your Order is Correct Before Continuing With Checkout:" on a white background. I have not altered any of the downloaded files except the Local_Settings.php. My files were downloaded to my website root www/bluefroggallery/shop/

My $Site_Domain = 'http://localhost/bluefroggallery/'; $Site_Title = 'Blue Frog Gallery'; $Site_Script_Root_Directory = 'shop/';

I made no other changes...

I'm running apache 2.2.13 on my localhost and all other php web pages files run correctly.

Any suggestions would be greatly appreciated.



Personal tools