X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   clean url disabled after upgrading from 5.1.4 to 5.1.9 (https://forum.x-cart.com/showthread.php?t=70768)

verizona 12-12-2014 07:36 PM

clean url disabled after upgrading from 5.1.4 to 5.1.9
 
Hi,
clean url disabled after upgrading from 5.1.4 to 5.1.9
i tried to enable it from environment.after i click enableclean URLs, the it gave me a fatal error. is there any bug in version 5.1.9?
thanks

totaltec 12-13-2014 04:48 AM

Re: clean url disabled after upgrading from 5.1.4 to 5.1.9
 
5.1.9 Clean URLS work for me. What host are you with?

When you get the error, what does it say?

Anything in the logs?

tony_sologubov 12-16-2014 05:54 AM

Re: clean url disabled after upgrading from 5.1.4 to 5.1.9
 
What exactly fatal error did you get?

verizona 12-16-2014 09:40 AM

Re: clean url disabled after upgrading from 5.1.4 to 5.1.9
 
1 Attachment(s)
Hi,
It says
ERROR: "Includes\ErrorHandler::FATAL_ERROR" (code 2)
Call to a member function map() on a non-object
i attached the the screenshot.
thanks

Vanaja 12-17-2014 12:11 AM

Re: clean url disabled after upgrading from 5.1.4 to 5.1.9
 
Hi,

How can I upgrade from 5.1.6 to 5.1.9 version. Let me know if there is any patch available?

totaltec 12-17-2014 02:02 AM

Re: clean url disabled after upgrading from 5.1.4 to 5.1.9
 
Quote:

Originally Posted by Vanaja
Hi,

How can I upgrade from 5.1.6 to 5.1.9 version. Let me know if there is any patch available?

Vanaja,
You should start a new thread to discuss this. Yes there is a patch available, X-Cart 5 has an automatic upgrade process that you need to initiate. You should see a link in the top left of your admin panel.

totaltec 12-17-2014 02:04 AM

Re: clean url disabled after upgrading from 5.1.4 to 5.1.9
 
Quote:

Originally Posted by verizona
Hi,
It says
ERROR: "Includes\ErrorHandler::FATAL_ERROR" (code 2)
Call to a member function map() on a non-object
i attached the the screenshot.
thanks

This doesn't tell us where the error is. The place to look is in the /var/log folder. I like to zip up the existing logs for archiving, and to clean them out. Then go cause the error. Now it is easy to see what log files have been created.

verizona 12-17-2014 08:27 AM

Re: clean url disabled after upgrading from 5.1.4 to 5.1.9
 
Hi,
<?php die(1); ?>
Dec 13 02:41:28 XLite [error] Catchable fatal error: Argument 1 passed to XLite\Model\Repo\ARepo::update() must be an instance of XLite\Model\AEntity, null given, called in /home/bl963267/public_html/parktelusa/var/run/classes/XLite/Controller/Admin/Settings.php on line 694 and defined in /home/bl963267/public_html/parktelusa/var/run/classes/XLite/Model/Repo/ARepo.php on line 526
Server API: cgi-fcgi;
Request method: GET;
URI: /parktelusa/admin.php?target=settings&action=enable_clean_url& page=Environment&xcart_form_id=5JPDqbviMLYaV4dS2yq oNSVNC3v8RSA7;
Backtrace:
file <compiled classes repository>/classes/XLite/Model/Repo/ARepo.php : 526
file <compiled classes repository>/classes/XLite/Controller/Admin/Settings.php : 694
file <compiled classes repository>/classes/XLite/Controller/AControllerAbstract.php : 1231
file <compiled classes repository>/classes/XLite/Controller/AControllerAbstract.php : 1250
file <compiled classes repository>/classes/XLite/Controller/AControllerAbstract.php : 473
file <compiled classes repository>/classes/XLite/Controller/Admin/AAdmin.php : 147
file <compiled classes repository>/classes/XLite.php : 474
file <compiled classes repository>/classes/XLite.php : 499
file <X-Cart root>/admin.php : 38

Dec 13 02:41:28 XLite [error] Catchable fatal error: Argument 1 passed to XLite\Model\Repo\ARepo::performUpdate() must be an instance of XLite\Model\AEntity, null given, called in /home/bl963267/public_html/parktelusa/var/run/classes/XLite/Model/Repo/ARepo.php on line 528 and defined in /home/bl963267/public_html/parktelusa/var/run/classes/XLite/Model/Repo/ARepo.php on line 685
Server API: cgi-fcgi;
Request method: GET;
URI: /parktelusa/admin.php?target=settings&action=enable_clean_url& page=Environment&xcart_form_id=5JPDqbviMLYaV4dS2yq oNSVNC3v8RSA7;
Backtrace:
file <compiled classes repository>/classes/XLite/Model/Repo/ARepo.php : 685
file <compiled classes repository>/classes/XLite/Model/Repo/ARepo.php : 528
file <compiled classes repository>/classes/XLite/Controller/Admin/Settings.php : 694
file <compiled classes repository>/classes/XLite/Controller/AControllerAbstract.php : 1231
file <compiled classes repository>/classes/XLite/Controller/AControllerAbstract.php : 1250
file <compiled classes repository>/classes/XLite/Controller/AControllerAbstract.php : 473
file <compiled classes repository>/classes/XLite/Controller/Admin/AAdmin.php : 147
file <compiled classes repository>/classes/XLite.php : 474
file <compiled classes repository>/classes/XLite.php : 499
file <X-Cart root>/admin.php : 38

Dec 13 02:41:39 XLite [warning] Form ID checking failure (target: settings, action: enable_clean_url)
Server API: cgi-fcgi;
Request method: GET;
URI: /parktelusa/admin.php?target=settings&action=enable_clean_url& page=Environment&xcart_form_id=5JPDqbviMLYaV4dS2yq oNSVNC3v8RSA7;

Dec 13 03:05:21 XLite [error] Catchable fatal error: Argument 1 passed to XLite\Model\Repo\ARepo::update() must be an instance of XLite\Model\AEntity, null given, called in /home/bl963267/public_html/parktelusa/var/run/classes/XLite/Controller/Admin/Settings.php on line 694 and defined in /home/bl963267/public_html/parktelusa/var/run/classes/XLite/Model/Repo/ARepo.php on line 526
Server API: cgi-fcgi;
Request method: GET;
URI: /parktelusa/admin.php?target=settings&action=enable_clean_url& page=Environment&xcart_form_id=IoIQGwfQoBJRY3PFQdq BGZgRLBHE69Wm;
Backtrace:
file <compiled classes repository>/classes/XLite/Model/Repo/ARepo.php : 526
file <compiled classes repository>/classes/XLite/Controller/Admin/Settings.php : 694
file <compiled classes repository>/classes/XLite/Controller/AControllerAbstract.php : 1231
file <compiled classes repository>/classes/XLite/Controller/AControllerAbstract.php : 1250
file <compiled classes repository>/classes/XLite/Controller/AControllerAbstract.php : 473
file <compiled classes repository>/classes/XLite/Controller/Admin/AAdmin.php : 147
file <compiled classes repository>/classes/XLite.php : 474
file <compiled classes repository>/classes/XLite.php : 499
file <X-Cart root>/admin.php : 38

Dec 13 03:05:21 XLite [error] Catchable fatal error: Argument 1 passed to XLite\Model\Repo\ARepo::performUpdate() must be an instance of XLite\Model\AEntity, null given, called in /home/bl963267/public_html/parktelusa/var/run/classes/XLite/Model/Repo/ARepo.php on line 528 and defined in /home/bl963267/public_html/parktelusa/var/run/classes/XLite/Model/Repo/ARepo.php on line 685
Server API: cgi-fcgi;
Request method: GET;
URI: /parktelusa/admin.php?target=settings&action=enable_clean_url& page=Environment&xcart_form_id=IoIQGwfQoBJRY3PFQdq BGZgRLBHE69Wm;
Backtrace:
file <compiled classes repository>/classes/XLite/Model/Repo/ARepo.php : 685
file <compiled classes repository>/classes/XLite/Model/Repo/ARepo.php : 528
file <compiled classes repository>/classes/XLite/Controller/Admin/Settings.php : 694
file <compiled classes repository>/classes/XLite/Controller/AControllerAbstract.php : 1231
file <compiled classes repository>/classes/XLite/Controller/AControllerAbstract.php : 1250
file <compiled classes repository>/classes/XLite/Controller/AControllerAbstract.php : 473
file <compiled classes repository>/classes/XLite/Controller/Admin/AAdmin.php : 147
file <compiled classes repository>/classes/XLite.php : 474
file <compiled classes repository>/classes/XLite.php : 499
file <X-Cart root>/admin.php : 38

Dec 13 03:05:42 XLite [warning] Form ID checking failure (target: settings, action: enable_clean_url)
Server API: cgi-fcgi;
Request method: GET;
URI: /parktelusa/admin.php?target=settings&action=enable_clean_url& page=Environment&xcart_form_id=IoIQGwfQoBJRY3PFQdq BGZgRLBHE69Wm;

Dec 13 03:43:47 XLite [error] Catchable fatal error: Argument 1 passed to XLite\Model\Repo\ARepo::update() must be an instance of XLite\Model\AEntity, null given, called in /home/bl963267/public_html/parktelusa/var/run/classes/XLite/Controller/Admin/Settings.php on line 694 and defined in /home/bl963267/public_html/parktelusa/var/run/classes/XLite/Model/Repo/ARepo.php on line 526
Server API: cgi-fcgi;
Request method: GET;
URI: /parktelusa/admin.php?target=settings&action=enable_clean_url& page=Environment&xcart_form_id=1Jea6eAVnYAMt1w7Ww8 vJah6gqvvPVOW;
Backtrace:
file <compiled classes repository>/classes/XLite/Model/Repo/ARepo.php : 526
file <compiled classes repository>/classes/XLite/Controller/Admin/Settings.php : 694
file <compiled classes repository>/classes/XLite/Controller/AControllerAbstract.php : 1231
file <compiled classes repository>/classes/XLite/Controller/AControllerAbstract.php : 1250
file <compiled classes repository>/classes/XLite/Controller/AControllerAbstract.php : 473
file <compiled classes repository>/classes/XLite/Controller/Admin/AAdmin.php : 147
file <compiled classes repository>/classes/XLite.php : 474
file <compiled classes repository>/classes/XLite.php : 499
file <X-Cart root>/admin.php : 38

Dec 13 03:43:47 XLite [error] Catchable fatal error: Argument 1 passed to XLite\Model\Repo\ARepo::performUpdate() must be an instance of XLite\Model\AEntity, null given, called in /home/bl963267/public_html/parktelusa/var/run/classes/XLite/Model/Repo/ARepo.php on line 528 and defined in /home/bl963267/public_html/parktelusa/var/run/classes/XLite/Model/Repo/ARepo.php on line 685
Server API: cgi-fcgi;
Request method: GET;
URI: /parktelusa/admin.php?target=settings&action=enable_clean_url& page=Environment&xcart_form_id=1Jea6eAVnYAMt1w7Ww8 vJah6gqvvPVOW;
Backtrace:
file <compiled classes repository>/classes/XLite/Model/Repo/ARepo.php : 685
file <compiled classes repository>/classes/XLite/Model/Repo/ARepo.php : 528
file <compiled classes repository>/classes/XLite/Controller/Admin/Settings.php : 694
file <compiled classes repository>/classes/XLite/Controller/AControllerAbstract.php : 1231
file <compiled classes repository>/classes/XLite/Controller/AControllerAbstract.php : 1250
file <compiled classes repository>/classes/XLite/Controller/AControllerAbstract.php : 473
file <compiled classes repository>/classes/XLite/Controller/Admin/AAdmin.php : 147
file <compiled classes repository>/classes/XLite.php : 474
file <compiled classes repository>/classes/XLite.php : 499
file <X-Cart root>/admin.php : 38

Dec 13 03:44:02 XLite [warning] Form ID checking failure (target: settings, action: enable_clean_url)
Server API: cgi-fcgi;
Request method: GET;
URI: /parktelusa/admin.php?target=settings&action=enable_clean_url& page=Environment&xcart_form_id=1Jea6eAVnYAMt1w7Ww8 vJah6gqvvPVOW;

tony_sologubov 12-17-2014 01:36 PM

Re: clean url disabled after upgrading from 5.1.4 to 5.1.9
 
Hi verizona!

It looks like upgrade hooks were not run properly during your upgrade and X-Cart did not create the "clean_url_flag" option in the config table. In order to make sure, can you please run the following MySQL query to your database:

Code:

SELECT * FROM xlite_config WHERE name="clean_url_flag";

If it returns empty result, then my theory is correct.

In this case, you should complete the upgrade manually: http://kb.x-cart.com/display/XDD/Upgrading+X-Cart+5#UpgradingX-Cart5-Manualupgrade

As a temporary solution, you can run the following script (I assume you will put into X-Cart root) and it will fix this very problem:
PHP Code:

<?php
require_once 'top.inc.php';
require_once 
'top.inc.additional.php';

    \
XLite\Core\Database::getRepo('XLite\Model\Config')->createOption(
        array(
            
'category' => 'CleanURL',
            
'name'     => 'clean_url_flag',
            
'value'    => true,
        )
    );


Please, let me know if it makes sense to you.

verizona 12-18-2014 09:00 AM

Re: clean url disabled after upgrading from 5.1.4 to 5.1.9
 
Thanks Tony
clean url is working now.


All times are GMT -8. The time now is 02:09 AM.

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