X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Re-building cache not complete (https://forum.x-cart.com/showthread.php?t=69590)

Chheang Leng 07-15-2014 08:45 PM

Re-building cache not complete
 
Hi X-Cart team

error re-build cache stay at step 5 of 9 three day ago.
someone please help me. think for reply


Quote:

Re-building cache [step 5 of 9], please wait...
Run the "Doctrine_Plugin_UpdateSchema" plugin...

qualiteam 07-15-2014 10:57 PM

Re: Re-building cache not complete
 
Is it the same problem you had mentioned a few days ago? I thought you have resolved it already.

Anyway, please check the log files in the [XC5]/var/log/ directory and let us know what error messages you see there.

Also, you may try to restart the cache re-building process by deleting the var/classes directory plus files like var/.rebuildStarted and going to the store back-end page in your browser.

Chheang Leng 07-16-2014 01:12 AM

Re: Re-building cache not complete
 
Hi X-Cart tean

I see error code at the log directory but i can't fix this error.

Quote:

/var/run/classes/XLite/View/RSS.php on line 127
$feed = simplexml_load_file($url);

someone please show step by step about solution? think for reply

qualiteam 07-16-2014 01:40 AM

Re: Re-building cache not complete
 
Is it the full error message? What file does have this message?

Chheang Leng 07-16-2014 02:00 AM

Re: Re-building cache not complete
 
This File have message is xlite.log.2014-07-14.php and file error at RSS.php on line 127

tony_sologubov 07-16-2014 12:46 PM

Re: Re-building cache not complete
 
This error message does not seem to be related to the failed cache regeneration.

Could you please try the solution described here:
http://forum.x-cart.com/showpost.php?p=375185&postcount=7

and let us know if it works out?

Chheang Leng 07-16-2014 07:13 PM

Re: Re-building cache not complete
 
Hi tony

after I remove directory run and i run admin.php at browser it show message is

Quote:

The site is temporarily closed for maintenance
We are deploying new changes to our store. One minute and they will go live!


Please help, think for reply

qualiteam 07-16-2014 10:05 PM

Re: Re-building cache not complete
 
Please check if both the var/run directory and the var/.rebuildStarted file had been removed on the server.

If admin.php script finds these files, it decides that you have already started the cache rebuilding process in another browser tab and stops. And this is why you may see the "we are deploying..." message.

Chheang Leng 07-17-2014 01:54 AM

Re: Re-building cache not complete
 
Hi X-cart team

I try remove run directory and many solution but my site stay at step 5-9 can't update to another steps. someone help me. think for reply,

Quote:


Re-building cache [step 5 of 9], please wait...
Run the "Doctrine_Plugin_UpdateSchema" plugin...

qualiteam 07-17-2014 10:01 AM

Re: Re-building cache not complete
 
Uh. Unfortunately, it's hard to guess.

Are there any error messages in the var/log/decorator.log.[DATE].php file? Or in other log files (except the RSS.php error that seems to be not related to the problem)?

Chheang Leng 07-17-2014 05:19 PM

Re: Re-building cache not complete
 
Hi X-cart team

Are you have any solution for check code error or file problem? who can fix error? I hope x-cart team have solution and can fix this error. thank for reply
this url error https://secure.cdworlds.com/admin.php?target=main&1405589788.6134&cpid=6c6f912 8906712e49a728ac31ccc70aa

Quote:

path:var/log/
file decorator.log.2014-07-18.php
<?php die(); ?>
Re-building cache [step 5 of 9], please wait...
Run the "Doctrine_Plugin_UpdateSchema" plugin...


Quote:

ERROR: "23000" (code N/A)

SQLSTATE[23000]: Integrity constraint violation: 1217 Cannot delete or update a parent row: a foreign key constraint fails SQL query: DROP TABLE IF EXISTS `xc_product_attachments`



Chheang Leng 07-17-2014 06:02 PM

Re: Re-building cache not complete
 
Hi X-cart team


this some code at directory var/log php_errors.log.2014-07-18.php

Quote:

[18-Jul-2014 01:17:46] Error (code: -9999): We are deploying new changes to our store. One minute and they will go live!
Server API: cgi-fcgi;
Request method: GET;
URI: /khmer_movie;
Backtrace:
#0 /home/www/cdworlds.com/Includes/ErrorHandler.php(334): Includes\ErrorHandler::throwException('We are deployin...', -9999)
#1 /home/www/cdworlds.com/Includes/Decorator/Utils/CacheManager.php(480): Includes\ErrorHandler::fireError('We are deployin...', -9999)
#2 /home/www/cdworlds.com/Includes/Decorator/Utils/CacheManager.php(620): Includes\Decorator\Utils\CacheManager::checkIfRebu ildStarted()
#3 /home/www/cdworlds.com/Includes/Decorator/Utils/CacheManager.php(650): Includes\Decorator\Utils\CacheManager::runStep(5)
#4 /home/www/cdworlds.com/Includes/Decorator/Utils/CacheManager.php(913): Includes\Decorator\Utils\CacheManager::runStepCond itionally(5)
#5 /home/www/cdworlds.com/top.inc.PHP53.php(111): Includes\Decorator\Utils\CacheManager::rebuildCach e()
#6 /home/www/cdworlds.com/top.inc.php(45): require_once('/home/www/cdwor...')
#7 /home/www/cdworlds.com/cart.php(33): require_once('/home/www/cdwor...')
#8 {main}



Backtrace:

ErrorHandler.php
static::throwException($message, $code);

CacheManager.php
* @param string $step Current step name
static::checkIfRebuildStarted();
static::runStep($step);
$stepStatus = static::runStepConditionally($step);

top.inc.PHP53.php
if (!defined('LC_DO_NOT_REBUILD_CACHE'))

top.inc.php
require_once (dirname(__FILE__) . LC_DS . 'top.inc.PHP53.php');

cart.php
require_once (dirname(__FILE__) . DIRECTORY_SEPARATOR . 'top.inc.php');

think for reply

tony_sologubov 07-18-2014 02:02 AM

Re: Re-building cache not complete
 
Hi!

Sent you an email.

Chheang Leng 07-18-2014 08:05 PM

Re: Re-building cache not complete
 
Hi tony sologubov and X-cart tean

I was sent FTP Account at Post access info. If someone in x-cart team get FTP account don't forget reply.

tony_sologubov 07-21-2014 04:40 AM

Re: Re-building cache not complete
 
Hi Chheang!

We are checking the problem and I will report you once we find any meaningful results.

Tony.

cflsystems 07-21-2014 07:20 AM

Re: Re-building cache not complete
 
Hi Tony

There are so many reports here of store upgrade or cache rebuilt just falling apart and making stores unusable. I see you are getting on each and every one and trying to help.
Can you share details of what is causing all this - XC upgrade procedure, bugs, user error...?
Thanks

tony_sologubov 07-23-2014 06:30 AM

Re: Re-building cache not complete
 
Most of the time, the problem is caused by low time limits on the server.

Also, there is a problem that migration does not take into account some data and the incorrect data starts the problem.

Anyway, I am trying to post reasons publicly once I figure out why the problem happened.

tony_sologubov 07-29-2014 06:38 AM

Re: Re-building cache not complete
 
Hi Chheang!

I am sorry, I could not investigate the problem with cache rebuilding process during last couple of days. I am working on it right now and will report about results today.

Tony.

tony_sologubov 07-30-2014 02:31 AM

Re: Re-building cache not complete
 
So, I checked this problem and it was caused by the bug that X-Cart could not delete related tables correctly if some part of them was previously deleted.

To be more clear: imaginе the situation that you have table (A) and three others (B, C, D) have a foreign key in this table. For some reason, B and C tables were removed, but the last one remained. Bug was that X-Cart tried to remove the A table disregarding table D.

This bug is fixed in 5.1.4.

Chheang Leng 07-30-2014 11:17 PM

Re: Re-building cache not complete
 
Hi, tony!

the last version free or not free for fix my site. think tony for help.

Chheang Leng 07-31-2014 11:00 PM

Re: Re-building cache not complete
 
Hi X-cart team

Can I delete file in log directory? If I delete file in log directory it have effects other class? think for reply

tony_sologubov 08-01-2014 02:06 AM

Re: Re-building cache not complete
 
The fix of that problem with cache rebuilding process is totally free for you, because it was caused by the bug.

tony_sologubov 08-01-2014 02:07 AM

Re: Re-building cache not complete
 
Yes, you can safely remove log files. They will not affect classes.

Quote:

Originally Posted by Chheang Leng
Hi X-cart team

Can I delete file in log directory? If I delete file in log directory it have effects other class? think for reply


shaz 11-26-2014 09:24 PM

Re: Re-building cache not complete
 
I'm having the exact same problem on a clean install (only change is products have been migrated in using cart2cart).


Error log shows the below.... sad to find so many issues with x-cart 5 :(


-----------------
[27-Nov-2014 06:18:36] Error (code: -9999): We are deploying new changes to our store. One minute and they will go live!
Server API: cgi-fcgi;
Request method: GET;
URI: /;
Backtrace:
#0 /home/storename/public_html/Includes/ErrorHandler.php(352): Includes\ErrorHandler::throwException('We are deployin...', -9999)
#1 /home/storename/public_html/Includes/Decorator/Utils/CacheManager.php(484): Includes\ErrorHandler::fireError('We are deployin...', -9999)
#2 /home/storename/public_html/Includes/Decorator/Utils/CacheManager.php(624): Includes\Decorator\Utils\CacheManager::checkIfRebu ildStarted()
#3 /home/storename/public_html/Includes/Decorator/Utils/CacheManager.php(654): Includes\Decorator\Utils\CacheManager::runStep(5)
#4 /home/storename/public_html/Includes/Decorator/Utils/CacheManager.php(946): Includes\Decorator\Utils\CacheManager::runStepCond itionally(5)
#5 /home/storename/public_html/top.inc.PHP53.php(108): Includes\Decorator\Utils\CacheManager::rebuildCach e()
#6 /home/storename/public_html/top.inc.php(45): require_once('/home/storename/...')
#7 /home/storename/public_html/cart.php(33): require_once('/home/storename/...')
#8 /home/storename/public_html/index.php(30): require_once('/home/storename/...')
#9 {main}

------------------
REBUILD ERROR
Deploying store [step 5 of 11], please wait...

Run the "Doctrine_Plugin_UpdateSchema" plugin...
Error
An error occurred in your store.
ERROR: "23000" (code N/A)
SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`storename_xstore`.`#sql-675c_6d2f4`, CONSTRAINT `FK_385AA392BF396750` FOREIGN KEY (`id`) REFERENCES `xc_attribute_options` (`id`) ON DELETE CASCADE) SQL query: ALTER TABLE `xc_attribute_option_translations` ADD CONSTRAINT FK_385AA392BF396750 FOREIGN KEY (`id`) REFERENCES `xc_attribute_options` (`id`) ON DELETE CASCADE

shaz 11-27-2014 03:32 PM

Re: Re-building cache not complete
 
Further on to the above, I've disabled all modules and it still occurs.

I only seem to be able to regain access by over writing the /var folder from a working backup.

Any ideas?

SignTorch 11-27-2014 05:48 PM

Re: Re-building cache not complete
 
shaz, the Integrity constraint violation is not an x-cart error it is an error in the database where one row references another row in another table and the row that is being referenced does not exist

in this case there must be an extra or incorrect row in table xc_attribute_option_translations which has an id field value that does not match any existing row with the same id field value in table xc_attribute_options,

the only way to fix that error is to correct all mis-matches between all rows in all associated tables, hopefully you don't have too many so that it can be corrected manually without much trouble

tony_sologubov 11-28-2014 03:54 AM

Re: Re-building cache not complete
 
Hi shaz!

Did you migrate data into X-Cart 5 from other store? If so, who made these changes? SignTorch is right, the problem is that xc_attribute_option_translations contains records that refer to records in the xc_attribute_options table that do not exist.

You can find these records if you call the following MySQL query:

Code:

SELECT * FROM xc_attribute_option_translations LEFT JOIN xc_attribute_options ON xc_attribute_option_translations.id = xc_attribute_options.id WHERE xc_attribute_options.id IS NULL;

Tony.

shaz 11-30-2014 03:15 PM

Re: Re-building cache not complete
 
Thanks so much guys, I found/fixed the 5 x instances in that table. It did make a small difference (i.e. when I updated the modules it actually went to the pre-update warnings page, but unfortunately I still get the below error at step 5.

Yes, I used the Cart2Cart service, which failed initally and they mad to manually fix the migration. I have raised a ticket with them, while they claim it couldn't have caused damage they have offered to check so I will sent them a link to this thread.

Cheers, Shaz

-------------

Deploying store [step 5 of 11], please wait...

Run the "Doctrine_Plugin_UpdateSchema" plugin...
Error
OOPS
Sorry, there seems to be a problem with the site. Please, try again later.

SignTorch 11-30-2014 05:39 PM

Re: Re-building cache not complete
 
I just spent all day trying to get e-goods to work after uploading to host - I didn't unzip the attachment folder ](*,)

you will probably have to check the error logs to see if there's a reason given

or move on to step12....

http://www.signtorch.com/bin/xcart/step12.png

warning: may cause fire, bullet holes in the wall, pain, blood loss, worsening depression, etc...

shaz 12-01-2014 03:51 PM

Re: Re-building cache not complete
 
Cart2Cart said last night they would look at it but sadly nothing has been done.....

so yep, starting from scratch so I can atleast keep working and try and meet my Friday deadline :/ atleast I can move forward... will get them to retry the migration again tonight.

and yes, can confirm cache rebuild completes perfectly with a clean DB. It was definitely something to do with the product migration.

shaz 12-02-2014 09:08 PM

Re: Re-building cache not complete
 
So Cart2Cart have done nothing other than a clean install and overwritten everything (I had backups)..... It now been 7 days since I brought this issue to their attention and feel a bit like I'm being held to ransom...

The site needs to be live in 2 days.

Should they fail AGAIN tonight, are there any other companies that offer this service that are able to do the migration from x-cart 4-5 at this 11th hour?

If so, please contact me at your earliest convenience. Cheers Shaz

tony_sologubov 12-03-2014 02:38 AM

Re: Re-building cache not complete
 
You can order a service from us, but I am not sure if we are able to do it within a day. Anyway, please discuss it with our project managers via sales@x-cart.com

shaz 12-03-2014 11:57 PM

Re: Re-building cache not complete
 
Thanks Tony, I will do that next time.

Cart2Cart finally fixed/completed it last night.... what a horrible experience...... I now have 24 hours to let the customer in to preview and go live :/

I cannot get Aust Post shipping to work work.... they did not import variants or weights properly... and set all products to non-shippable :( they also set US as the default country instead of Australia.... I've raised that on another thread http://forum.x-cart.com/showthread.php?t=70687

3rd night in a row I'm going to have to stay up until 1am to get this fixed.... :(((

YakMan 02-14-2015 01:49 PM

Re: Re-building cache not complete
 
Am having similar issue. I attempted to remove FedEx module and it failed at,

Quote:

Deploying store [step 9 of 11], please wait...

Run the "LessParserCustomer" plugin...


I retried several time by removing .rebuildstarted and run but fails at same place.

Decorator.log
Quote:

<?php die(); ?>
Deploying store [step 1 of 11], please wait...
Cleaning up the cache... 0.00sec, 2.6MB (376b)
Building classes tree... 2.64sec, 12.1MB (9.5MB)
Run the "Doctrine_Plugin_Cache" plugin... 0.01sec, 12.2MB (59kB)
Run the "Doctrine_Plugin_DocBlock_FakeEntities" plugin... 0.51sec, 20.1MB (7.9MB)

Deploying store [step 2 of 11], please wait...
Run the "Doctrine_Plugin_ModelGenerator" plugin... 2.34sec, 26.1MB (23.5MB)
Decorate classes... 0.41sec, 36.4MB (10.3MB)
Writing class files to the cache... 0.76sec, 36.4MB (-136b)
Run the "StaticRoutines" plugin... 0.02sec, 36.4MB (368b)

Deploying store [step 3 of 11], please wait...
Run the "Doctrine_Plugin_Multilangs" plugin... 1.19sec, 39.2MB (36.6MB)
Run the "Doctrine_Plugin_DocBlock_MappedSuperClasses" plugin... 0.07sec, 39.3MB (11kB)
Run the "Doctrine_Plugin_DocBlock_ReplaceTopEntity" plugin... 0.08sec, 39.4MB (77kB)
Run the "Doctrine_Plugin_Money" plugin... 0.01sec, 39.4MB (24kB)
Run the "PHPCache_Plugin_OPcache" plugin... 0.00sec, 39.4MB (-16b)

Deploying store [step 4 of 11], please wait...
Run the "Doctrine_Plugin_PrepareDBSchema" plugin... 7.07sec, 34.0MB (31.4MB)

Deploying store [step 5 of 11], please wait...
Run the "Doctrine_Plugin_UpdateSchema" plugin... 3.98sec, 4.6MB (2.0MB)

Deploying store [step 6 of 11], please wait...
Run the "Doctrine_Plugin_UpdateModules" plugin... 0.16sec, 3.8MB (1.2MB)
Run the "Doctrine_Plugin_ProxyGenerator" plugin... 3.61sec, 28.6MB (24.8MB)

Deploying store [step 7 of 11], please wait...
Run the "Doctrine_Plugin_LoadFixtures" plugin...
0.03sec, 4.6MB (2.0MB)

Deploying store [step 8 of 11], please wait...
Run the "Doctrine_Plugin_PaymentMethods" plugin... 0.15sec, 8.8MB (6.2MB)
Run the "Doctrine_Plugin_QuickData" plugin... 8.92sec, 27.0MB (18.3MB)


php_erros.log
Quote:

<?php die(1); ?>
[14-Feb-2015 16:52:57] Error (code: 1): Call to a member function fetch() on a non-object
Server API: cgi-fcgi;
Request method: GET;
URI: /xc5/admin.php?1423950777.59&cpid=f5180e61eeba76a32c1c6 3afe61ffc22;
Backtrace:
#0 Includes\ErrorHandler::logInfo(Call to a member function fetch() on a non-object, 1) called at [/home/hiddencu/public_html/xc5/Includes/ErrorHandler.php:324]
#1 Includes\ErrorHandler::handleError(Array ([type] => 1,[message] => Call to a member function fetch() on a non-object,[file] => /home/hiddencu/public_html/xc5/var/run/classes/XLite/Core/LayoutAbstract.php,[line] => 860)) called at [/home/hiddencu/public_html/xc5/Includes/ErrorHandler.php:309]
#2 Includes\ErrorHandler::shutdown()



Any help is appreciated

tony_sologubov 02-16-2015 06:26 AM

Re: Re-building cache not complete
 
@YakMan, the problem seems to be caused by the incorrect work of cache driver.

Could you please try to have a look at etc/config.php file and try to use another value for type parameter in [cache] section?

YakMan 02-16-2015 06:13 PM

Re: Re-building cache not complete
 
I tried auto, apc, xcache, and file but each failed.

Quote:

;
; ----------------------
; Cache settings
; ----------------------
;
[cache]
; Type of cache used. Can take auto, memcache, apc, xcache, file values.
type=file


tony_sologubov 02-18-2015 04:49 AM

Re: Re-building cache not complete
 
Hi @YakMan!

Thanks for posting this problem to sales@x-cart.com. Our support team will have a look at it.

Tony.

YakMan 02-19-2015 04:30 PM

Re: Re-building cache not complete
 
Turns out there was a simple fix.
Quote:

We have fixed the issue, by disabling the following option in your X-Cart's etc/config.php file:

skins_cache = off

After that, we will be able to re-generate X-Cart cache without errors.

Best regards,
Sergey


tony_sologubov 02-20-2015 02:21 AM

Re: Re-building cache not complete
 
Quote:

Originally Posted by YakMan
Turns out there was a simple fix.


This is a bug and it will be fixed in 5.2.


All times are GMT -8. The time now is 12:46 PM.

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