Magento database error - php

I have a Webshop on magento. I would update it from 1.7.0.2 to 1.9.2.1.
First i tried to copy the files from 1.9 to 1.7. Didn't worked. Then i tried to delet all files, put all files from 1.9 on the server and copy all important files from 1.7. Didn't worked.
So now i complitly re-installed magento with the newest version 1.9.2.1. I set it up like the old version and used the same encryption-key. Than i thought, i could copy the old database to the new one. Bu i gives me some sql errors, that it could not find rows.
Error in file: "/home/sybille/web/naef2/app/code/core/Mage/Core/sql/core_setup/mysql4-data-upgrade-1.6.0.2-1.6.0.3.php" - SQLSTATE[42S22]: Column not found: 1054 Unknown column 'crc_string' in 'field list', query was: UPDATE `core_translate` SET `crc_string` = CRC32(`string`)
Trace:
#0 /home/sybille/web/naef2/app/code/core/Mage/Core/Model/Resource/Setup.php(645): Mage::exception('Mage_Core', 'Error in file: ...')
#1 /home/sybille/web/naef2/app/code/core/Mage/Core/Model/Resource/Setup.php(407): Mage_Core_Model_Resource_Setup->_modifyResourceDb('data-upgrade', '1.6.0.2', '1.6.0.6')
#2 /home/sybille/web/naef2/app/code/core/Mage/Core/Model/Resource/Setup.php(286): Mage_Core_Model_Resource_Setup->_upgradeData('1.6.0.2', '1.6.0.6')
#3 /home/sybille/web/naef2/app/code/core/Mage/Core/Model/Resource/Setup.php(269): Mage_Core_Model_Resource_Setup->applyDataUpdates()
#4 /home/sybille/web/naef2/app/code/core/Mage/Core/Model/App.php(362): Mage_Core_Model_Resource_Setup::applyAllDataUpdates()
#5 /home/sybille/web/naef2/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#6 /home/sybille/web/naef2/index.php(85): Mage::run('', 'store')
#7 {main}
I need your help now! :(
I'm about to fix it for 2 days and i don't come forward. Pleas help me! how can i setup the database, that it works with the new version.

Related

Installation failed: Destination folder already exists

Hi I was working on Wordpress and notification popped up regarding Woocomerce update, I click on it but i dont know how it failed and then woocomerce isnt showing on my plugins , nor on side bar of my wp admin panel. On my site the error coming up is
Fatal error: Uncaught Error: Call to undefined function is_product()
in
/home/homesnoo/clifsauce.com/wp/wp-content/plugins/woo-variation-swatches/woo-variation-swatches.php:314 Stack trace: #0
/home/homesnoo/clifsauce.com/wp/wp-includes/class-wp-hook.php(286): Woo_Variation_Swatches->enqueue_scripts('') #1
/home/homesnoo/clifsauce.com/wp/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #2
/home/homesnoo/clifsauce.com/wp/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #3
/home/homesnoo/clifsauce.com/wp/wp-includes/script-loader.php(2231): do_action('wp_enqueue_scri...') #4
/home/homesnoo/clifsauce.com/wp/wp-includes/class-wp-hook.php(286): wp_enqueue_scripts('') #5
/home/homesnoo/clifsauce.com/wp/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #6
/home/homesnoo/clifsauce.com/wp/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #7
/home/homesnoo/clifsauce.com/wp/wp-includes/general-template.php(2614): do_action('wp_head') #8 /home/homesnoo/clifsauce.com/wp/wp-conten in
/home/homesnoo/clifsauce.com/wp/wp-content/plugins/woo-variation-swatches/woo-variation-swatches.php on line 314
and i hosted this site from Hosterpk. kindly help.
You can connect with your wordpress site using FTP. then move to /home/homesnoo/clifsauce.com/wp/wp-content/plugins/ and rename woo-variation-swatches to woo-variation-swatches-delete and try to run update once again. if FTP allows you to rename. your update will work.

How do I stop the "Class log cannot be found" error from occurring in laravel?

I just moved my website to a separate server in an attempt to make sure that when I push the site to the production server everything transitions smoothly. Unfortunately, the site appears blank when I visit the link unless I add something like "echo 'hello';" to the index.php page, nothing is being logged in the laravel storage files (even though the permissions are recursively set to 777), and I get this error:
nickstaging#ubuntuStaging:/var/www/html/almost_acceptable$ php artisan config:cache
PHP Fatal error: Uncaught ReflectionException: Class log does not exist in /var
/www/html/almost_acceptable/vendor/laravel/framework/src/Illuminate/Container/Container.php:741
Stack trace:
#0 /var/www/html/almost_acceptable/vendor/laravel/framework/src/Illuminate/Container/Container.php(741): ReflectionClass->__construct('log')
#1 /var/www/html/almost_acceptable/vendor/laravel/framework/src/Illuminate/Container/Container.php(631): Illuminate\Container\Container->build('log', Array)
#2 /var/www/html/almost_acceptable/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(674): Illuminate\Container\Container->make('log', Array)
#3 /var/www/html/almost_acceptable/vendor/laravel/framework/src/Illuminate/Container/Container.php(842): Illuminate\Foundation\Application->make('log')
#4 /var/www/html/almost_acceptable/vendor/laravel/framework/src/Illuminate/Container/Container.php(805): Illuminate\Container\Container->resolveClass(Object(ReflectionParameter))
#5 /var/www/html/almost_acceptable/vendor/laravel/framework/src/I in /var/www/html/almost_acceptable/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 741
PHP Fatal error: Uncaught ReflectionException: Class log does not exist in /var/www/html/almost_acceptable/vendor/laravel/framework/src/Illuminate/Container/Container.php:741
Stack trace:
#0 /var/www/html/almost_acceptable/vendor/laravel/framework/src/Illuminate/Container/Container.php(741): ReflectionClass->__construct('log')
#1 /var/www/html/almost_acceptable/vendor/laravel/framework/src/Illuminate/Container/Container.php(631): Illuminate\Container\Container->build('log', Array)
#2 /var/www/html/almost_acceptable/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(674): Illuminate\Container\Container->make('log', Array)
#3 /var/www/html/almost_acceptable/vendor/laravel/framework/src/Illuminate/Container/Container.php(842): Illuminate\Foundation\Application->make('log')
#4 /var/www/html/almost_acceptable/vendor/laravel/framework/src/Illuminate/Container/Container.php(805): Illuminate\Container\Container->resolveClass(Object(ReflectionParameter))
#5 /var/www/html/almost_acceptable/vendor/laravel/framework/src/I in /var/www/html/almost_acceptable/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 741
I cannot, for the life of me, figure out why it's occurring. It is recorded in the apache log file on the server. The site still runs correctly on my local homestead vm that I have running for general testing, and I tried reuploading all of the files to the server but nothing has worked.
If anyone has any idea why this is occurring, that would be great and I would very much appreciate it! Thanks in advance!
Edit
Installing php-mysql did not fix the problem and there was no difference in the error afterwards.
The most common problem is either you have spaces in your .env file or a wrong value in one of your config files.
More info here:
https://laracasts.com/discuss/channels/general-discussion/class-log-does-not-exist

error in file "mysql4-upgrade-1.6.0.0-1.6.0.1.php" in magento 1.9.2.0 installation with sample data

I am trying to install Magento version 1.9.2.0 with the sample data in my local Apache server.
I have stumbled upon a problem that is tearing my heart appart and I need some help or guidance in this obscure path, for I get this error message:
Error in file: "/opt/lampp/htdocs/magento/app/code/core/Mage/Sendfriend
/sql/sendfriend_setup/mysql4-upgrade-1.6.0.0-1.6.0.1.php" - SQLSTATE[42S02]: Base table or view not found: 1146 Table 'db_magento_sample.sendfriend_log' doesn't exist, query was: DESCRIBE `sendfriend_log`
Trace:
#0 /opt/lampp/htdocs/magento/app/code/core/Mage/Core/Model/Resource/Setup.php(645): Mage::exception('Mage_Core', 'Error in file: ...')
#1 /opt/lampp/htdocs/magento/app/code/core/Mage/Core/Model/Resource/Setup.php(437): Mage_Core_Model_Resource_Setup->_modifyResourceDb('upgrade', '1.6.0.0', '1.6.0.1')
#2 /opt/lampp/htdocs/magento/app/code/core/Mage/Core/Model/Resource/Setup.php(320): Mage_Core_Model_Resource_Setup->_upgradeResourceDb('1.6.0.0', '1.6.0.1')
#3 /opt/lampp/htdocs/magento/app/code/core/Mage/Core/Model/Resource/Setup.php(235): Mage_Core_Model_Resource_Setup->applyUpdates()
#4 /opt/lampp/htdocs/magento/app/code/core/Mage/Core/Model/App.php(428): Mage_Core_Model_Resource_Setup::applyAllUpdates()
#5 /opt/lampp/htdocs/magento/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Model_App->_initModules()
#6 /opt/lampp/htdocs/magento/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#7 /opt/lampp/htdocs/magento/index.php(83): Mage::run('', 'store')
#8 {main}
I have tried changing the directories permissions, I have already uploaded the sql sample data script to my local DB using PHPMyAdmin, erasing and reinstalling again, and restarting the process for more than 3 times but I got blocked here, I have searched for solutions in forums but haven't found none
Does anyone know how to proceed? I thank you for reading.
Best regards,
D.

Cannot change the locale settings on Magento installation

Need to get into Magento shop as a developer, and got some basic trouble on installation.
Background: Got a LUBUNTU Virtual Box running Apache, PHP 5.5 and MySQL. Downloaded magento from http://www.magentocommerce.com/download.
Made a database manually with phpMyAdmin, copied the code of Magento to /var/www/html/magento and chmod'ed it to 775, chown'ed it to www-data:www-data.
The problem: on startup screen from Magento installation I cannot select another language. After a selection it gets back to English / US. And trying to go through with English causes this error:
#0 /var/www/html/magento/app/code/core/Mage/Core/Model/Resource/Setup.php(645):
Mage::exception('Mage_Core', 'Error in file: ...')
#1 /var/www/html/magento/app/code/core/Mage/Core/Model/Resource/Setup.php(407): Mage_Core_Model_Resource_Setup->_modifyResourceDb('data-upgrade', '1.6.0.0', '1.6.0.2')
#2 /var/www/html/magento/app/code/core/Mage/Core/Model/Resource/Setup.php(286): Mage_Core_Model_Resource_Setup->_upgradeData('1.6.0.0', '1.6.0.2')
#3 /var/www/html/magento/app/code/core/Mage/Core/Model/Resource/Setup.php(269): Mage_Core_Model_Resource_Setup->applyDataUpdates()
#4 /var/www/html/magento/app/code/core/Mage/Core/Model/App.php(351): Mage_Core_Model_Resource_Setup::applyAllDataUpdates()
#5 /var/www/html/magento/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#6 /var/www/html/magento/index.php(87): Mage::run('', 'store')
#7 {main}
Has someone got any idea what I did wrong?
In my case using "localhost" as hostname(http://localhost/magento) causes the problem.
Using "127.168.1.1"(http://127.168.1.1/magento) solves it.

MySQL server has gone away wordpress

I worked in wordpress plugin wp security and i did backup some files when wordpress blocked and next thing that is poping out is this i dont know how to fix this..
Settings (general_settings) Error: fetch - MySQL server has gone away
---
Query: select * from d4o1yq7rl_revslider_settings
#0 /home/hkt/public_html/wp-content/plugins/revslider/inc_php/framework/db.class.php(22): UniteFunctionsRev::throwError('fetch - MySQ...', -1)
#1 /home/hkt/public_html/wp-content/plugins/revslider/inc_php/framework/db.class.php(36): UniteDBRev->throwError('fetch - MySQ...')
#2 /home/hkt/public_html/wp-content/plugins/revslider/inc_php/framework/db.class.php(124): UniteDBRev->checkForErrors('fetch')
#3 /home/hkt/public_html/wp-content/plugins/revslider/inc_php/revslider_params.class.php(42): UniteDBRev->fetch('d4o1yq7rl_revsl...')
#4 /home/hkt/public_html/wp-content/plugins/revslider/inc_php/revslider_operations.class.php(331): RevSliderParams->getFieldFromDB('general')
#5 /home/hkt/public_html/wp-content/plugins/revslider/settings/general_settings.php(26): RevOperations->getGeneralSettingsValues()
#6 /home/hkt/public_html/wp-content/plugins/revslider/inc_php/framework/base_admin.class.php(220): require('/home/hkt/publi...')
#7 /home/hkt/public_html/wp-content/plugins/revslider/revslider_admin.php(49): UniteBaseAdminClassRev::requireSettings('general_setting...')
#8 /home/hkt/public_html/wp-content/plugins/revslider/revslider_admin.php(32): RevSliderAdmin->init()
#9 /home/hkt/public_html/wp-content/plugins/revslider/revslider.php(77): RevSliderAdmin->__construct('/home/hkt/publi...')
#10 /home/hkt/public_html/wp-settings.php(203): include_once('/home/hkt/publi...')
#11 /home/hkt/public_html/wp-config.php(98): require_once('/home/hkt/publi...')
#12 /home/hkt/public_html/wp-load.php(29): require_once('/home/hkt/publi...')
#13 /home/hkt/public_html/wp-admin/admin.php(30): require_once('/home/hkt/publi...')
#14 /home/hkt/public_html/wp-admin/index.php(10): require_once('/home/hkt/publi...')
#15 {main}
Revolution Slider Error:Settings general not found
Warning: Cannot modify header information - headers already sent by (output started at /home/hkt/public_html/wp-content/plugins/revslider/inc_php/framework/base_admin.class.php:222) in /home/hkt/public_html/wp-includes/pluggable.php on line 899
please if someone can help that would be great i must have this site uploaded in 2 hours!
The issue is probably due to closed mysql connection or timeout from the query. You can find the details here
http://dev.mysql.com/doc/refman/5.0/en/gone-away.html
If its a local mysql server which can be managed by you, try restarting it
else use another mysql user to connect
Try changing the max_allowed_packet setting to a larger value in the server.
Open "my.ini/cnf", located in your MySQL installation folder, and under [mysqld] section change "max_allowed_packet = 64M" and don't forget to restart the server.
You can check the value by executing:
SHOW VARIABLES LIKE 'max_allowed_packet';

Categories