Forums / General Questions / Add a Table with a Product

Add a Table with a Product

Views: 2,493

Results 21 to 40 of 59
9 Aug 2015, 5:15 PM
#21
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Add a Table with a Product

Not done yet ...

I cannot add anything to the shopping cart regardless of if I am logged in or not in FireFox nor IE ...

What are your settings in the Configuration ... Sessions ... could you add a screen shot of it?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

9 Aug 2015, 5:21 PM
#22
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Re: Add a Table with a Product

Ajeh:

Not done yet ...

I cannot add anything to the shopping cart regardless of if I am logged in or not in FireFox nor IE ...

What are your settings in the Configuration ... Settings ... could you add a screen shot of it?
Is that layout settings?

Learning Fast.
Eden Craft Supplies

9 Aug 2015, 5:23 PM
#23
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Add a Table with a Product

Sorry ... I meant Configuration ... Sessions ... :lookaroun

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

9 Aug 2015, 5:33 PM
#24
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Re: Add a Table with a Product

About the screen print I am running windows 10 so I have not got my head around that bit yet, but hang on I will find out. What are you looking for?

Learning Fast.
Eden Craft Supplies

9 Aug 2015, 5:35 PM
#25
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Add a Table with a Product

You can do a copy/paste of the settings ... I am looking for anything odd that might explain issues with adding to the cart and hoped something weird might be in the Session settings ...

You are not generating any debug logs in /logs are you?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

9 Aug 2015, 5:48 PM
#26
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Re: Add a Table with a Product

Last log file> [09-Aug-2015 18:33:11 Europe/London] PHP Warning: round() expects parameter 2 to be long, string given in /homepages/20/d503465712/htdocs/shops/escshop/includes/classes/shopping_cart.php on line 2227

[09-Aug-2015 18:33:11 Europe/London] PHP Warning: round() expects parameter 2 to be long, string given in /homepages/20/d503465712/htdocs/shops/escshop/includes/classes/shopping_cart.php on line 2228
[09-Aug-2015 18:33:11 Europe/London] PHP Warning: round() expects parameter 2 to be long, string given in /homepages/20/d503465712/htdocs/shops/escshop/includes/classes/shopping_cart.php on line 2227
Trying to find a paint package to drop the screen print in to.

Would it be quicker if I give you access to the backoffice?

Learning Fast.
Eden Craft Supplies

9 Aug 2015, 6:00 PM
#27
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Add a Table with a Product

You could just go to the Configuration ... Sessions ... and copy and paste the settings (first to NotePad to clean it up) then copy and paste that to your post ...

Then it would look something like this:

Title     Value     Action 
Session Directory     /home1/mylinks2/public_html/v154/cache      
Cookie Domain     True     Info 
Force Cookie Use     False     Info 
Check SSL Session ID     False     Info 
Check User Agent     False     Info 
Check IP Address     False     Info 
Prevent Spider Sessions     True     Info 
Recreate Session     True     Info 
IP to Host Conversion Status     true     Info 
Use root path for cookie path     False     Info 
Add period prefix to cookie domain     True     Info 

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

9 Aug 2015, 6:09 PM
#28
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Re: Add a Table with a Product

Session Directory	/homepages/20/d503465712/htdocs/shops/mainshop/cache
Cookie Domain	TRUE
Force Cookie Use	FALSE
Check SSL Session ID	TRUE
Check User Agent	FALSE
Check IP Address	FALSE
Prevent Spider Sessions	TRUE
Recreate Session	TRUE
IP to Host Conversion Status	TRUE
Use root path for cookie path	FALSE
Add period prefix to cookie domain	TRUE
```Any good?

Learning Fast.
Eden Craft Supplies

9 Aug 2015, 6:22 PM
#29
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Add a Table with a Product

Could you post, from the server, without your username, database info or secret admin name, the files:
/includes/configure.php
/your_secret_admin/includes/configure.php

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

9 Aug 2015, 6:37 PM
#30
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Re: Add a Table with a Product

Ajeh:

Could you post, from the server, without your username, database info or secret admin name, the files:
/includes/configure.php
/your_secret_admin/includes/configure.php

Yes but it will be a little later.

Learning Fast.
Eden Craft Supplies

9 Aug 2015, 7:10 PM
#31
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Add a Table with a Product

I think you have an issue with 1&1 ...

this url jmi.edencraftsupplies.co.uk/test should just return a 404 response and not redirect to sedoparking.com so something is going on with that ...

You should contact them to see what the problem is ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

10 Aug 2015, 3:45 AM
#32
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Add a Table with a Product

adb34:

[09-Aug-2015 18:33:11 Europe/London] PHP Warning: round() expects parameter 2 to be long, string given in /homepages/20/d503465712/htdocs/shops/escshop/includes/classes/shopping_cart.php on line 2227
[09-Aug-2015 18:33:11 Europe/London] PHP Warning: round() expects parameter 2 to be long, string given in /homepages/20/d503465712/htdocs/shops/escshop/includes/classes/shopping_cart.php on line 2228
[09-Aug-2015 18:33:11 Europe/London] PHP Warning: round() expects parameter 2 to be long, string given in /homepages/20/d503465712/htdocs/shops/escshop/includes/classes/shopping_cart.php on line 2227

The reference to parameter 2 is referring to your admin setting for Admin->Configuration->Stock->Product Quantity Decimals. That should be a number, but it's either missing altogether (and thus the constant QUANTITY_DECIMALS which defines it is being converted to a string) or you've got non-numeric stuff in that setting.

Are there any files in your /includes/init_includes/overrides folder? If so, what exactly are they there for? Are any files missing from (or damaged in) the /includes/init_includes folder itself?

My guess is that in addition to your general misconfiguration issues at the server level (as Ajeh pointed out) that perhaps a number of core Zen Cart files are damaged or missing. That would cause these specific error messages and could contribute to session problems.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

10 Aug 2015, 10:05 AM
#33
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Re: Add a Table with a Product

Ajeh:

I think you have an issue with 1&1 ...

this url jmi.edencraftsupplies.co.uk/test should just return a 404 response and not redirect to sedoparking.com so something is going on with that ...

You should contact them to see what the problem is ...
Where did this url come from?

Learning Fast.
Eden Craft Supplies

10 Aug 2015, 11:18 AM
#34
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Re: Add a Table with a Product

I have set both the config files back to use the database that was set up with the clean build. The shopping basket is working. So this is leading me to believe that it is a database problem and not a file problem.

Please see if you come up with the same idea.

I have left the clean database attached to the clean website.

Learning Fast.
Eden Craft Supplies

10 Aug 2015, 1:22 PM
#35
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Add a Table with a Product

adb34:

Where did this url come from?

This was just testing something that did not exist to see what would happen and instead of a 404 page it came up with that ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

10 Aug 2015, 2:25 PM
#36
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Re: Add a Table with a Product

Ajeh:

This was just testing something that did not exist to see what would happen and instead of a 404 page it came up with that ...

Do you still need to see the config files?

Learning Fast.
Eden Craft Supplies

10 Aug 2015, 2:33 PM
#37
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Add a Table with a Product

It would be helpful to see if anything is wonky on them ...

At the moment, it looks like there could be something wrong with the database based on this working with the demo data ... but never hurts to rule things out ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

10 Aug 2015, 3:02 PM
#38
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Re: Add a Table with a Product

Ajeh:

It would be helpful to see if anything is wonky on them ...

At the moment, it looks like there could be something wrong with the database based on this working with the demo data ... but never hurts to rule things out ...

<?php

/*************** This is /includes/configure.php ***********/

  define('HTTP_SERVER', 'http://jmi.edencraftsupplies.co.uk');
  define('HTTPS_SERVER', 'https://jmi.edencraftsupplies.co.uk');


  define('ENABLE_SSL', 'false');

  define('DIR_WS_CATALOG', '/');
  define('DIR_WS_HTTPS_CATALOG', '/');

  define('DIR_WS_IMAGES', 'images/');
  define('DIR_WS_INCLUDES', 'includes/');
  define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
  define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
  define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
  define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
  define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
  define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

  define('DIR_WS_PHPBB', '/');


  define('DIR_FS_CATALOG', '/homepages/20/d503465712/htdocs/shops/escshop/');

  define('DIR_FS_LOGS', '/homepages/20/d503465712/htdocs/shops/escshop/logs');

  define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
  define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
  define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
  define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
  define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');

 
  define('SQL_CACHE_METHOD', 'file'); 
  define('DIR_FS_SQL_CACHE', '/homepages/20/d503465712/htdocs/shops/escshop/cache');

// EOF
<?php /*************** This is /backoffice/includes/configure.php ***********/ / define('HTTP_SERVER', 'http://jmi.edencraftsupplies.co.uk'); define('HTTPS_SERVER', 'https://jmi.edencraftsupplies.co.uk'); define('HTTP_CATALOG_SERVER', 'http://jmi.edencraftsupplies.co.uk'); define('HTTPS_CATALOG_SERVER', 'https://jmi.edencraftsupplies.co.uk'); define('ENABLE_SSL_ADMIN', 'false'); define('ENABLE_SSL_CATALOG', 'false'); define('DIR_WS_ADMIN', preg_replace('#^' . str_replace('-', '\-', zen_parse_url(HTTP_SERVER, '/path')) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/'); define('DIR_WS_CATALOG', '/'); define('DIR_WS_HTTPS_ADMIN', preg_replace('#^' . str_replace('-', '\-', zen_parse_url(HTTPS_SERVER, '/path')) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/'); define('DIR_WS_HTTPS_CATALOG', '/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/'); define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_CATALOG_LANGUAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/'); // * DIR_FS_* = Filesystem directories (local/physical) define('DIR_FS_ADMIN', preg_replace('#/includes/$#', '/', realpath(dirname(__FILE__) . '/../') . '/')); //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/ define('DIR_FS_CATALOG', '/homepages/20/d503465712/htdocs/shops/escshop/'); //the following path is a COMPLETE path to the /logs/ folder eg: /var/www/vhost/accountname/public_html/store/logs ... and no trailing slash define('DIR_FS_LOGS', '/homepages/20/d503465712/htdocs/shops/escshop/logs'); define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/'); define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/'); define('DIR_FS_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/'); define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/'); define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('SQL_CACHE_METHOD', 'file'); define('DIR_FS_SQL_CACHE', '/homepages/20/d503465712/htdocs/shops/escshop/cache'); // EOF ```I have left out the 'database connection' information.

Learning Fast.
Eden Craft Supplies

10 Aug 2015, 3:16 PM
#39
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Add a Table with a Product

If you look at the Configuration ... Sessions ... with this demo data that works ... what is the setting for the Session Directory?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

10 Aug 2015, 3:26 PM
#40
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Re: Add a Table with a Product

Ajeh:

If you look at the Configuration ... Sessions ... with this demo data that works ... what is the setting for the Session Directory?

Session Directory /homepages/20/d503465712/htdocs/shops/escshop/cache 

Learning Fast.
Eden Craft Supplies