View Single Post
  #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