Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

clean url disabled after upgrading from 5.1.4 to 5.1.9

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 12-12-2014, 07:36 PM
 
verizona verizona is offline
 

Member
  
Join Date: May 2014
Posts: 27
 

Default 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
__________________
mobile
Reply With Quote
  #2  
Old 12-13-2014, 04:48 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default 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?
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote

The following user thanks totaltec for this useful post:
tony_sologubov (12-16-2014)
  #3  
Old 12-16-2014, 05:54 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

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

What exactly fatal error did you get?
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote
  #4  
Old 12-16-2014, 09:40 AM
 
verizona verizona is offline
 

Member
  
Join Date: May 2014
Posts: 27
 

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

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
Attached Thumbnails
Click image for larger version

Name:	fatalerror.png
Views:	362
Size:	493.4 KB
ID:	4023  
__________________
mobile
Reply With Quote
  #5  
Old 12-17-2014, 12:11 AM
 
Vanaja Vanaja is offline
 

Member
  
Join Date: Dec 2014
Posts: 13
 

Default 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?
__________________
Vanaja
Reply With Quote
  #6  
Old 12-17-2014, 02:02 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default 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.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
  #7  
Old 12-17-2014, 02:04 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default 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.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
  #8  
Old 12-17-2014, 08:27 AM
 
verizona verizona is offline
 

Member
  
Join Date: May 2014
Posts: 27
 

Default 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;
__________________
mobile
Reply With Quote
  #9  
Old 12-17-2014, 01:36 PM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default 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.
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote

The following user thanks tony_sologubov for this useful post:
qualiteam (12-18-2014)
  #10  
Old 12-18-2014, 09:00 AM
 
verizona verizona is offline
 

Member
  
Join Date: May 2014
Posts: 27
 

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

Thanks Tony
clean url is working now.
__________________
mobile
Reply With Quote

The following user thanks verizona for this useful post:
qualiteam (12-18-2014)
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

   

 
X-Cart forums © 2001-2020