Cannot change the locale settings on Magento installation - php

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.

Related

Can’t Run Pydio Locally

The company where I work at has a slightly modified backoffice done in Pydio 8.0.1 up and running in the server.
Thing is I want to run it locally in Xampp to test if it works well alongside the new website I made for the company.
My problem is that I can’t get it running locally even though I have the database running in PHP MyAdmin. The errors that I get are:
Deprecated : Function create_function() is deprecated in C:\xampp\htdocs\backoffice2\core\src\lib\dibi\libs\DibiConnection.php on line 120
Fatal error : Uncaught Pydio\Core\Exception\PydioException: Severe error while loading plugins registry : There was an error trying to connect to your database! Did you change any configuration for the core connection? Or maybe your database is down? in C:\xampp\htdocs\backoffice2\core\src\pydio\Core\PluginFramework\PluginsService.php:819 Stack trace: #0 C:\xampp\htdocs\backoffice2\core\src\pydio\Core\PluginFramework\PluginsService.php(203): Pydio\Core\PluginFramework\PluginsService->getDetectedPlugins() #1 C:\xampp\htdocs\backoffice2\core\src\pydio\Core\Services\ConfService.php(392): Pydio\Core\PluginFramework\PluginsService::getInstance(Object(Pydio\Core\Model\Context)) #2 C:\xampp\htdocs\backoffice2\core\src\pydio\Core\Http\Base.php(62): Pydio\Core\Services\ConfService::getGlobalConf(‘ADMIN_URI’) #3 [internal function]: Pydio\Core\Http\Base::handleRoute(’/backoffice2’, ‘/’, Array) #4 C:\xampp\htdocs\backoffice2\core\src\pydio\Core\Http\TopLevelRouter.php(139): call_user_func(Array, ‘/backoffice2’, ‘/’, Array) #5 C:\xamp in C:\xampp\htdocs\backoffice2\core\src\pydio\Core\PluginFramework\PluginsService.php on line 819
By the Way I noticed that the “Bootstrap.json” has the following custom lines:
“AJXP_CLI_SECRET_KEY”:“vkkhh$lskdNyoNpi$B4Gc5DN”,
“DIBI_PRECONFIGURATION”:{
“mysql_username”:“hardlevel_pt”,
“mysql_use_mysqli”:“true”,
“mysql_password”:“ubukN4g8”,
“mysql_host”:“hardlevel.pt.mysql”,
“mysql_driver”:“mysql”,
“mysql_database”:“hardlevel_pt”,
“group_switch_value”:“mysql”
}
Can anyone give me some insight on this situation? Any help is greatly apreciated.
Maybe it's problem of php version on Pydio 8.0.1
Try to upgrade to latest version of Pydio if you are using PHP 7.2

Phalcon PHP - Controller handler class cannot be loaded

I have an application written in Phalcon 2. This application runs locally normally, everything works. My problem is to make it run on an Amazon Ec2 Linux server. Some controllers work normally, the routes are OK.
My problem is with some controller inside the admin area. Not all controllers give me errors, some work. This is the error I get:
AdminproductController handler class cannot be loaded
#0 [internal function]: Phalcon\Mvc\Dispatcher->_throwDispatchException('AdminproductCon...', 2)
#1 [internal function]: Phalcon\Dispatcher->_dispatch()
#2 [internal function]: Phalcon\Dispatcher->dispatch()
#3 /var/www/html/public/index.php(31): Phalcon\Mvc\Application->handle()
#4 {main}
I've been reading about this error on Phalcon's forum and so far none of the answers solve my issue yet. What I'm trying to do is check if it is a case sensitive problem. But no matter what I do, the controller never loads and the error messages are always the same.
Would you have some tips, like steps or a checklist, for me to follow to try to fix this issue?
Maybe AdminproductController must be called AdminProductController or a class file was renamed and you have to change the usage of the class. Also read #Timothy's comments.

Magento database error

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.

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.

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