I have 70k products in my magento site.
I need to reindex the product data's in admin panel.
When i have tried to reindex the data's in Magento Admin panel it give below error.
Cannot Initialize the Indexer Process
So i have planned to reindex the data's using Shell access,
it show me the below error message.
I have rooted inside the shell folder & executed this command
php -f indexer.php reindexall
When i execute above command, it gives the below error message.
PHP Fatal error: Uncaught exception 'Zend_Exception' with message 'dbModel read resource does not implement Zend_Db_Adapter_Abstract' in /home/demo/public_html/magento/lib/Varien/Data/Collection/Db.php:187
Stack trace:
#0 /home/demo/public_html/magento/app/code/core/Mage/Core/Model/Resource/Db/Collection/Abstract.php(134): Varien_Data_Collection_Db->setConnection(false)
#1 /home/demo/public_html/magento/app/code/core/Mage/Core/Model/Config.php(1348): Mage_Core_Model_Resource_Db_Collection_Abstract->__construct(Array)
#2 /home/demo/public_html/magento/app/code/core/Mage/Core/Model/Config.php(1380): Mage_Core_Model_Config->getModelInstance('index_resource/...', Array)
#3 /home/demo/public_html/magento/app/Mage.php(490): Mage_Core_Model_Config->getResourceModelInstance('index/process_c...', Array)
#4 /home/demo/public_html/magento/app/code/core/Mage/Index/Model/Indexer.php(67): Mage::getResourceModel('index/process_c...')
#5 /home/demo/public_html/magento/app/code/core/Mage/Core/Model/Config.php(1348): Mage_Index_Model_Indexer-> in /home/demo/public_html/magento/lib/Varien/Data/Collection/Db.php on line 187
Can anyone point out me what was the issues?
THanks!
It may be a caching problem. If you have enabled APC, you should probably disable it, restart Apache and try re-indexing again.
This can also happen if you are missing a local.xml file.
It's a permission problem. chmod -R 777 var/* should solve it. Try removing var/cache/* first.
Related
I probably messed my wordpress site up by updating the site before updating plug ins, and now I cannot acces wp-admin anymore.
I got a number of error messages, most of which I could solve by changing something in the given file, but I do not know how to solve this:
Fatal error: Uncaught Error: Class "WP_Widget" not found in …/wp-content/plugins/category-posts/class-widget.php:22 Stack trace: #0 .../wp-content/plugins/category-posts/cat-posts.php(38): require_once() #1 .../wp-settings.php(359): include_once('...') #2 .../wp-config.php(90): require_once('...') #3 .../wp-load.php(37): require_once('...') #4 .../wp-admin/admin.php(34): require_once('...') #5 .../wp-admin/index.php(10): require_once('...') #6 {main} thrown in .../wp-content/plugins/category-posts/class-widget.php on line 22
Any suggestions are greatly appreciated.
It seems like an issue with one of your plugins, category-posts.
I would suggest, if you got access to the site's backend, navigate to .../wp-content/plugins/ and delete the category-posts folder. This will delete the plugin which causes the issue, and hopefully resolve the problem. You can always download the plugin folder before deleting it, just so you've got it backed up.
Can you rename category-posts plugin to any other name so that the plugin will automatically deactivate. After that can you take a look to login to wp-admin. then from there try reinstalling the same plugin or upload latest version of plugin.
When running my Laravel 5.6 application on it's production server, I'm getting an error as follows both in the browser and in the console when trying to run artisan commands:
PHP Fatal error: Uncaught ReflectionException: Class env does not exist in /var/www/html/service.straightlinefernie.com/dev/vendor/laravel/framework/src/Illuminate/Container/Container.php:767
Stack trace:
#0 /var/www/html/service.straightlinefernie.com/dev/vendor/laravel/framework/src/Illuminate/Container/Container.php(767): ReflectionClass->__construct('env')
#1 /var/www/html/service.straightlinefernie.com/dev/vendor/laravel/framework/src/Illuminate/Container/Container.php(646): Illuminate\Container\Container->build('env')
#2 /var/www/html/service.straightlinefernie.com/dev/vendor/laravel/framework/src/Illuminate/Container/Container.php(601): Illuminate\Container\Container->resolve('env', Array)
#3 /var/www/html/service.straightlinefernie.com/dev/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(734): Illuminate\Container\Container->make('env', Array)
#4 /var/www/html/service.straightlinefernie.com/dev/vendor/laravel/framework/src/Illuminate/Container/Container.php(1210): Illuminate\Foundation\Application->m in /var/www/html/service.straightlinefernie.com/dev/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 767
The app runs fine on my development environment. I've combed my .env and config/ files for errors, and it all appears good.
I'm guessing there is something missing in my server set up, but
the main problem as I see it is that this error message is too generic and doesn't provide the information required to discover what specific file or error is actually making the boot process fail.
The stack trace is not even saved in the log file, and appears only in the console when I try to run artisan commands.
Does anyone know how to get a more detailed error message that can actually help me solve this error?
Perhaps there is a way to edit the file Illuminate/Container/Container.php so that it gives me more info?
Thanks
If composer dump-autoload -o and php artisan config:clear doesn't work then check your .env for potential errors like this:
KEY=THE VALUE
Should be
KEY="THE VALUE"
I faced this issue and found issue in config folder > constants file I was wrote "asset('/')" and "url()" function in config file, we can't write such functions in config.
Hope this answer will some one who stuck like this errors.
I want To run a symfony project in my computer but I get all times errors , and now I get this error and i didn't find any solution for my problem
Problem Failed to parse output as xml: Error on line 2: Content is not
allowed in prolog.. Command C:\xampp\php\php.exe
C:\xampp\htdocs\buzzaka\bin\console list --format=xml Output
Fatal error: Uncaught
Symfony\Component\Dotenv\Exception\PathException: Unable to read the
"C:\xampp\htdocs\buzzaka\bin/../.dev.env" environment file. in
C:\xampp\htdocs\buzzaka\vendor\symfony\dotenv\Dotenv.php:466 Stack
trace:
0 C:\xampp\htdocs\buzzaka\vendor\symfony\dotenv\Dotenv.php(51): Symfony\Component\Dotenv\Dotenv->doLoad(false, Array)
1 C:\xampp\htdocs\buzzaka\bin\console(38): Symfony\Component\Dotenv\Dotenv->load('C:\xampp\htdocs...')
2 {main} thrown in C:\xampp\htdocs\buzzaka\vendor\symfony\dotenv\Dotenv.php on line 466
If u move your file from the folder where it was created symfony will keep looking for it on this folder, i've went on autoload_runtime and changed on $runtime variable where the project is, just worked for me, lets see on the last composer dump what just happens haha
The error is quite explicit, do you have a file C:\xampp\htdocs\buzzaka\bin/../.dev.env ?
Well, you need to create one. As announced a little while ago, Symfony will now require a .env file per environment. As you are running your command in the dev environment, you need to create a .dev.env file.
I want to say that I am not an expert, it´s my first Wordpress project and I want to dig in. Therefore I tried to word only with Plugins and few coding.
I don´t know but since today my site has a failure and I don´t understand:
Fatal error: Uncaught ArgumentCountError: Too few arguments to function
Cherry_Dynamic_Css_Utilities::typography_font_family(), 0 passed in /home/.sites/48/site8294423/web/wp-content/plugins/jet-elements/cherry-framework/modules/cherry-dynamic-css/cherry-dynamic-css.php on line 487 and exactly 1 expected in /home/.sites/48/site8294423/web/wp-content/plugins/jet-elements/cherry-framework/modules/cherry-dynamic-css/inc/class-cherry-dynamic-css-utilities.php:688
Stack trace:
#0 /home/.sites/48/site8294423/web/wp-content/plugins/jet-elements/cherry-framework/modules/cherry-dynamic-css/cherry-dynamic-css.php(487): Cherry_Dynamic_Css_Utilities->typography_font_family()
#1 [internal function]: Cherry_Dynamic_Css->replace_func(Array)
#2 /home/.sites/48/site8294423/web/wp-content/plugins/jet-elements/cherry-framework/modules/cherry-dynamic-css/cherry-dynamic-css.php(327): preg_replace_callback('/#(([a-zA-Z_]+)...', Array, '/* #Typography ...')
#3 /home/.sites/48/site8294423/web/wp-content/plugins/jet-elements/cherry-framework/modu in /home/.sites/48/site8294423/web/wp-content/plugins/jet-elements/cherry-framework/modules/cherry-dynamic-css/inc/class-cherry-dynamic-css-utilities.php on line 688
Tried to restore backup (database and rest) but the same after backup
Can you please help a little bit....
Thank you very much
Either via FTP, your server's file manager, or terminal, you should change the directory name of the plugin in /wp-content/plugins/jet-elements to something like /wp-content/plugins/jet-elements-DISABLED
Once done, attempt to navigate to your wordpress admin dashboard. You'll be given the option of deleting the now missing plugin "Jet Elements" (or whatever it's front name is). Delete it from there. Later, reinstall the plugin, do not activate, and delete it. This will force the plugin's native data deletion function to fire, killing all data in your database from the original install.
Best of luck!
problem with jet-elements plugin just go to wp-content/plugin and move or delete jet-elements folder
I am trying to install AjaXplorer but running in to problems. The first run test asks me to set my locale to UTF-8 but I am not sure how to do this.
If I skip the warning I get the following error and wondered if it has something to do with it.
Exception thrown within the exception handler! Message was: Cannot find plugin text for type log in C:\UniServer\www\domain\secure\core\classes\class.ConfService.php on line 164 #0 C:\UniServer\www\domain\secure\core\classes\class.ConfService.php(184): ConfService->initUniquePluginImplInst('LOG_DRIVER', 'log') #1 C:\UniServer\www\domain\secure\core\classes\class.ConfService.php(229): ConfService->getUniquePluginImplInst('LOG_DRIVER', 'log') #2 C:\UniServer\www\domain\secure\core\classes\class.AJXP_Logger.php(89): ConfService::getLogDriverImpl() #3 C:\UniServer\www\domain\secure\core\classes\class.AJXP_Logger.php(69): AJXP_Logger::getInstance() #4 C:\UniServer\www\domain\secure\core\classes\class.AJXP_XMLWriter.php(195): AJXP_Logger::logAction('error', Array) #5 C:\UniServer\www\domain\secure\core\classes\class.AJXP_XMLWriter.php(208): AJXP_XMLWriter::catchError(0, 'Cannot find plu...', 'C:\UniServer\ww...', 164, NULL) #6 [internal function]: AJXP_XMLWriter::catchException(Object(Exception)) #7 {main}
Its propably caused by PHP >= 5.4
I had no error before PHP update.
EDIT: Downgrading back to PHP 5.3 fixed error, so its caused by PHP 5.4
Just had the same problem: caused by write permissions on folders in the "data" directory.
Set the write permissions on the top level directory "data" and all sub directories. I thought I had set the permissions with Filezilla but, after a quick check, I had not.
Concerning the "set locale" notice, you can find detailed explanation with some examples in the PHP documentation: http://php.net/manual/en/function.setlocale.php.
As for the AjaXplorer exception, its documentation states:
you have an FTP access to a remote server running PHP (>5.1) and accessible through the web
I googled the exception and most of the time it's thrown due to wrong PHP version. You can easily check your PHP version with PHP function phpversion():
echo phpversion();
If your PHP version does not match the AjaXplorer's requirement, you have to obviously upgrade PHP or abandon AjaXplorer in favour of another solution.
Just change the permission
chmod -R 777 /etc/zpanel/panel
and the log
tail /etc/httpd/logs/error_log