X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   News and Announcements (https://forum.x-cart.com/forumdisplay.php?f=28)
-   -   X-Cart v4.7.8: Facebook E‑commerce, Mandrill, Amazon Feeds, Shipping Easy (https://forum.x-cart.com/showthread.php?t=75410)

Anna_Shvetsova 06-06-2017 10:33 AM

X-Cart v4.7.8: Facebook E‑commerce, Mandrill, Amazon Feeds, Shipping Easy
 
Hi everyone,

Meet new X-Cart Classic v4.7.8 https://www.x-cart.com/blog/x-cart-4-7-8.html. Welcome to try it and discuss your questions here.
View full changelog here https://help.x-cart.com/images/9/94/X-CART_CHANGELOG.txt.

mattstyle2 06-06-2017 11:01 AM

Re: X-Cart v4.7.8: Facebook E‑commerce, Mandrill, Amazon Feeds, Shipping Easy
 
[PHP 71 compatible] PHP7.1 critical bugfix related to strings and array operations.

is this easy to backport to 4.7.7? if so, where does one look to make the change?

-Matt

herber@wirehub.nl 06-06-2017 11:52 AM

Re: X-Cart v4.7.8: Facebook E‑commerce, Mandrill, Amazon Feeds, Shipping Easy
 
Quote:

Originally Posted by mattstyle2
[PHP 71 compatible] PHP7.1 critical bugfix related to strings and array operations.

is this easy to backport to 4.7.7? if so, where does one look to make the change?

-Matt

I am running 4.7.7 on PHP 7.1.5 successfully. These bugs are related to 'smaller' things for as far as I know, you can run 4.7.7 safely on PHP 7.1, we have been doing that for a few months now.

Eyeglasses Expert 06-06-2017 12:51 PM

Re: X-Cart v4.7.8: Facebook E‑commerce, Mandrill, Amazon Feeds, Shipping Easy
 
great, i will update www.framesabc.com today.

Eyeglasses Expert 06-06-2017 12:52 PM

Re: X-Cart v4.7.8: Facebook E‑commerce, Mandrill, Amazon Feeds, Shipping Easy
 
great, i will update www.framesabc.com today. can you offer us free 100% width pc screen template next update? responsive template and html5 + css3 also.

cheap eyeglasses 06-06-2017 01:04 PM

Re: X-Cart v4.7.8: Facebook E‑commerce, Mandrill, Amazon Feeds, Shipping Easy
 
yes, thear are really need some new html5 based, and 100% width under pc templates now.

cheap eyeglasses 06-06-2017 01:10 PM

Re: X-Cart v4.7.8: Facebook E‑commerce, Mandrill, Amazon Feeds, Shipping Easy
 
yes, thear are really need some new html5 based, and 100% width under pc templates now.

sinobest 06-06-2017 03:06 PM

Re: X-Cart v4.7.8: Facebook E‑commerce, Mandrill, Amazon Feeds, Shipping Easy
 
does x-cart 4.7.8 offer bootstrap 3 or 4 based templates?

aim 06-07-2017 06:18 AM

Re: X-Cart v4.7.8: Facebook E‑commerce, Mandrill, Amazon Feeds, Shipping Easy
 
Quote:

Originally Posted by mattstyle2
[PHP 71 compatible] PHP7.1 critical bugfix related to strings and array operations.

is this easy to backport to 4.7.7? if so, where does one look to make the change?

-Matt


Hi,

Here is the patch for X-Cart 4.7.7
https://secure.x-cart.com/customer.php?folder_id=312128&area=filearea&target =files_explorer&subject=

Thank you.

Dougrun 06-12-2017 02:01 PM

Re: X-Cart v4.7.8: Facebook E‑commerce, Mandrill, Amazon Feeds, Shipping Easy
 
upgraded one shop, no issues. I even switched it ti php7.x and its running fine.
Ran a test on our main shop, all went ok except the cart_calculate_totals.php that I already applied the shipping selection bug fix to failed to work, so I reverted to my patched version and it works fine now. I'll update that when I know nobody's on the site.

Dougrun 06-16-2017 10:29 AM

Re: X-Cart v4.7.8: Facebook E‑commerce, Mandrill, Amazon Feeds, Shipping Easy
 
The upgrade to 4.7.8 removed the listing of Checkout_One from the modules list but it is still there in the tables, still active and still works. Any clue why it does not show?

aim 06-17-2017 12:15 AM

Re: X-Cart v4.7.8: Facebook E‑commerce, Mandrill, Amazon Feeds, Shipping Easy
 
Quote:

Originally Posted by Dougrun
The upgrade to 4.7.8 removed the listing of Checkout_One from the modules list but it is still there in the tables, still active and still works. Any clue why it does not show?


Hi,

Do you have an installation pack of the module ?

Thank you.

acs_test 06-18-2017 10:11 AM

Re: cant manually patch files
 
Thanks for your reply but the same problem occurs with 4.7.5 to 4.7.6

:: Warning
Cannot open uploaded file!

Please contact administrator and report the error(s).

if I run the command patch -c < product_modify.php.diff it returns: "only garbage was found in the patch input"

acs_test 06-18-2017 10:31 AM

Re: X-Cart v4.7.8: Facebook E‑commerce, Mandrill, Amazon Feeds, Shipping Easy
 
testkai 2230

acs_test 06-18-2017 10:34 AM

Re: X-Cart v4.7.8: Facebook E‑commerce, Mandrill, Amazon Feeds, Shipping Easy
 
testkai 2234

acs_test 06-18-2017 10:35 AM

Re: X-Cart v4.7.8: Facebook E‑commerce, Mandrill, Amazon Feeds, Shipping Easy
 
testkai 2234_2

acs_test 06-18-2017 10:43 AM

Re: X-Cart v4.7.8: Facebook E‑commerce, Mandrill, Amazon Feeds, Shipping Easy
 
testkai 2242

acs_test 06-18-2017 10:49 AM

Allowed memory size of 1073741824 bytes in Smart_search modules?
 
testkai 2248

acs_test 06-18-2017 10:55 AM

Re: X-Cart v4.7.8: Facebook E‑commerce, Mandrill, Amazon Feeds, Shipping Easy
 
testkai 2248

acs_test 06-18-2017 10:57 AM

Re: X-Cart v4.7.8: Facebook E‑commerce, Mandrill, Amazon Feeds, Shipping Easy
 
testkai 2257

acs_test 06-18-2017 11:03 AM

Re: X-Cart v4.7.8: Facebook E‑commerce, Mandrill, Amazon Feeds, Shipping Easy
 
testkai 2303

acs_test 06-18-2017 11:06 AM

Re: X-Cart v4.7.8: Facebook E‑commerce, Mandrill, Amazon Feeds, Shipping Easy
 
testkai 2305

Dougrun 06-19-2017 07:59 AM

Re: X-Cart v4.7.8: Facebook E‑commerce, Mandrill, Amazon Feeds, Shipping Easy
 
I opened a ticket for it. It doesnt make sense unless you guys changed table parameters for modules?? and the module still works. I can enable or disable it in phpmyadmin.

aim 06-19-2017 09:04 AM

Re: X-Cart v4.7.8: Facebook E‑commerce, Mandrill, Amazon Feeds, Shipping Easy
 
Quote:

Originally Posted by Dougrun
I opened a ticket for it. It doesnt make sense unless you guys changed table parameters for modules?? and the module still works. I can enable or disable it in phpmyadmin.


The xcart_modules table structure has not been changed since 4.7.4.

Dougrun 06-19-2017 09:33 AM

Re: X-Cart v4.7.8: Facebook E‑commerce, Mandrill, Amazon Feeds, Shipping Easy
 
I fixed it. its under One Page Checkout now.

herber@wirehub.nl 06-27-2017 05:05 AM

Re: X-Cart v4.7.8: Facebook E‑commerce, Mandrill, Amazon Feeds, Shipping Easy
 
When is the new 'Order tracking info changed' send?
What changes to an order will send this email to a customer?

aim 06-27-2017 05:24 AM

Re: X-Cart v4.7.8: Facebook E‑commerce, Mandrill, Amazon Feeds, Shipping Easy
 
Quote:

Originally Posted by herber@wirehub.nl
When is the new 'Order tracking info changed' send?
What changes to an order will send this email to a customer?


When an admin will change tracking numbers for an order.

Technically any call like
XCOrderTracking::update($orderid, $id, $value)
XCOrderTracking::delete($orderid, $id)
XCOrderTracking::replace($orderid, $value)
results in the email sending.

Thank you.

herber@wirehub.nl 06-27-2017 08:30 AM

Re: X-Cart v4.7.8: Facebook E‑commerce, Mandrill, Amazon Feeds, Shipping Easy
 
Quote:

Originally Posted by aim
When an admin will change tracking numbers for an order.

Technically any call like
XCOrderTracking::update($orderid, $id, $value)
XCOrderTracking::delete($orderid, $id)
XCOrderTracking::replace($orderid, $value)
results in the email sending.

Thank you.

Thank you!
In our case, our shipping system inserts tracking numbers directly into the database (table xcart_order_tracking_numbers), so this is not relevant to us, only when tracking codes are manually added/deleted/changed for an order. Thank you for the clarification, now I know we don't need to change anything on our side to keep our current working flow like it is.

Dougrun 06-27-2017 12:06 PM

Re: X-Cart v4.7.8: Facebook E‑commerce, Mandrill, Amazon Feeds, Shipping Easy
 
I can no longer add an advertising campaign in the
Advertising campaigns management

page. it just cycles the page. nothing added in the table either. using http referrer. not a big deal since i can use google but thought i'd point it out in case anyone else has this issue.

herber@wirehub.nl 06-29-2017 05:18 AM

Re: X-Cart v4.7.8: Facebook E‑commerce, Mandrill, Amazon Feeds, Shipping Easy
 
I've just upgraded 4.7.8 and I cannot acces the /admin/general.php page anymore, the following error occurs which blanks out the page in our case:

Code:

[29-Jun-2017 13:13:29 UTC] PHP Fatal error:  Uncaught Error: [] operator not supported for strings in /public_html/admin/general.php:178
Stack trace:
#0 /public_html/admin/general.php(528): test_dirs_rights()
#1 {main}
  thrown in /public_html/admin/general.php on line 178


It is related to this line, $rc[] is line 178

Code:

        $rc[] = array (
            'directory'    => $testdir,
            'exists'        => is_dir($dir),
            'writable'        => is_writable($dir),
        );
    }

The PHP version is 7.1.6.
My /admin/general.php file is 100% identical to a clean 4.7.8.

If I declare $rc = array(); INSIDE the foreach, the error disappears and /admin/general.php can be accessed again.

It doesn't fix it completely, the list of directories that it checks for write permission is only 1 folder long, only the /var/upgrade folder.

aim 06-29-2017 06:31 AM

Re: X-Cart v4.7.8: Facebook E‑commerce, Mandrill, Amazon Feeds, Shipping Easy
 
Quote:

Originally Posted by herber@wirehub.nl
I've just upgraded 4.7.8 and I cannot acces the /admin/general.php page anymore, the following error occurs which blanks out the page in our case:

Code:

[29-Jun-2017 13:13:29 UTC] PHP Fatal error:  Uncaught Error: [] operator not supported for strings in /public_html/admin/general.php:178
Stack trace:
#0 /public_html/admin/general.php(528): test_dirs_rights()
#1 {main}
  thrown in /public_html/admin/general.php on line 178


It is related to this line, $rc[] is line 178

Code:

        $rc[] = array (
            'directory'    => $testdir,
            'exists'        => is_dir($dir),
            'writable'        => is_writable($dir),
        );
    }

The PHP version is 7.1.6.
My /admin/general.php file is 100% identical to a clean 4.7.8.

If I declare $rc = array(); INSIDE the foreach, the error disappears and /admin/general.php can be accessed again.

It doesn't fix it completely, the list of directories that it checks for write permission is only 1 folder long, only the /var/upgrade folder.


Hi,

It is very strange.

Do you have
$rc = array();
in the line 164?

Thank you.

aim 06-29-2017 06:48 AM

Re: X-Cart v4.7.8: Facebook E‑commerce, Mandrill, Amazon Feeds, Shipping Easy
 
Quote:

Originally Posted by Dougrun
I can no longer add an advertising campaign in the
Advertising campaigns management

page. it just cycles the page. nothing added in the table either. using http referrer. not a big deal since i can use google but thought i'd point it out in case anyone else has this issue.


Hi,

You have to fill the
'Pay per campaign' or 'Pay per visit' fields.

Try it here
http://demo.x-cart.com/demo_goldplus/demo_switcher.php?activate_modules[XAffiliate]=Y

Thank you.

Dougrun 06-29-2017 06:59 AM

Re: X-Cart v4.7.8: Facebook E‑commerce, Mandrill, Amazon Feeds, Shipping Easy
 
Quote:

Originally Posted by aim
Hi,

It is very strange.

Do you have
$rc = array();
in the line 164?

Thank you.

I tested 4.7.8 on php7.1 and got similar results. 7.0x works ok though so look for some difference there.

aim 06-29-2017 07:09 AM

Re: X-Cart v4.7.8: Facebook E‑commerce, Mandrill, Amazon Feeds, Shipping Easy
 
1 Attachment(s)
Quote:

Originally Posted by Dougrun
I tested 4.7.8 on php7.1 and got similar results. 7.0x works ok though so look for some difference there.


May be admin/general.php was not patched properly.
I will check upgrade packs.

Could you compare the attached file with your admin/general.php ?

Thank you.

herber@wirehub.nl 06-29-2017 11:00 PM

Re: X-Cart v4.7.8: Facebook E‑commerce, Mandrill, Amazon Feeds, Shipping Easy
 
Quote:

Originally Posted by aim
May be admin/general.php was not patched properly.
I will check upgrade packs.

Could you compare the attached file with your admin/general.php ?

Thank you.

This file is identical, this is the file giving problems. (I use an admin/general.php from a clean 4.7.8 download)
So it seems $rc = array(); on line 164 is not enough: my current fix is to also place $rc = array(); on line 178.

This means admin/general.php can be accessed again, but not all folders are checked for write permissions anymore.

aim 06-30-2017 12:24 AM

Re: X-Cart v4.7.8: Facebook E‑commerce, Mandrill, Amazon Feeds, Shipping Easy
 
Hi,

Unfortunately, I was unable to reproduce this issue on the default installation of X-Cart 4 on PHP Version 7.1.6.

Could you please provide me with the valid SSH/FTP or Control Panel access info to your server so I can see whats causing the issue directly.

Please post it in X-Business access list section here:
https://secure.x-cart.com/customer.php?target=create_access_info

Thank You.

herber@wirehub.nl 06-30-2017 01:38 AM

Re: X-Cart v4.7.8: Facebook E‑commerce, Mandrill, Amazon Feeds, Shipping Easy
 
Hi!

I just redownloaded a fresh 4.7.8 and replaced the /admin/general.php again, and now it doesn't error out

herber@wirehub.nl 06-30-2017 03:17 AM

Re: X-Cart v4.7.8: Facebook E‑commerce, Mandrill, Amazon Feeds, Shipping Easy
 
Next in my error log:

Code:

[30-Jun-2017 07:09:21] Warning: Illegal string offset 'avail' in /public_html/modules/Special_Offers/offers.php on line 213

[30-Jun-2017 07:09:21] Warning: Illegal string offset 'skip' in /public_html/modules/Special_Offers/offers.php on line 216


this file is also identical to a clean 4.7.8 that I downloaded.
Any other files I should check?

aim 06-30-2017 04:08 AM

Re: X-Cart v4.7.8: Facebook E‑commerce, Mandrill, Amazon Feeds, Shipping Easy
 
Quote:

Originally Posted by herber@wirehub.nl
Next in my error log:

Code:

[30-Jun-2017 07:09:21] Warning: Illegal string offset 'avail' in /public_html/modules/Special_Offers/offers.php on line 213

[30-Jun-2017 07:09:21] Warning: Illegal string offset 'skip' in /public_html/modules/Special_Offers/offers.php on line 216


this file is also identical to a clean 4.7.8 that I downloaded.
Any other files I should check?


You can ignore these non-critical warnings.

I will fix them in X-Cart 4.7.9.

Thank you.

voodoo1967 07-11-2017 10:28 AM

Re: X-Cart v4.7.8: Facebook E‑commerce, Mandrill, Amazon Feeds, Shipping Easy
 
So what is the minimum version of PHP that the 4.7.8 requires ?


All times are GMT -8. The time now is 03:24 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.