Prestashop 1.5.4.1 migration issue - php

Hello I am trying to migrate my site from one server to an other, Iive created a backup of all files and BD, uploaded to the new server, change the settings.inc.php with the new credentials and when I'm trying to access the site, Prestashop shows me the error.
Notice: Use of undefined constant _RIJNDAEL_KEY_ - assumed '_RIJNDAEL_KEY_' in /home/admin/domains/bicimaya.mx/public_html/classes/Cookie.php on line 78 Notice: Use of undefined constant _RIJNDAEL_IV_ - assumed '_RIJNDAEL_IV_' in /home/admin/domains/bicimaya.mx/public_html/classes/Cookie.php on line 78 Fatal error: Uncaught exception 'SmartyException' with message 'unable to write file /home/admin/domains/bicimaya.mx/public_html/cache/smarty/compile/28/b9/c8/wrt55881070719b54.86654395' in /home/admin/domains/bicimaya.mx/public_html/tools/smarty/sysplugins/smarty_internal_write_file.php:44 Stack trace: #0 /home/admin/domains/bicimaya.mx/public_html/tools/smarty/sysplugins/smarty_internal_template.php(201): Smarty_Internal_Write_File::writeFile('/home/admin/dom...', 'compileTemplateSource() #2 /home/admin/domains/bicimaya.mx/public_html/classes/module/Module.php(1623): Smarty_Internal_TemplateBase->fetch() #3 /home/admin/domains/bicimaya.mx/public_html/modules/favoriteproducts/favoriteproducts.php(105): ModuleCore->display('/home/admin/dom...', 'favoriteproduct...') #4 /home/admin/domains/bicimaya.mx/public_html/classes/Hook.php(421): FavoriteProducts- in /home/admin/domains/bicimaya.mx/public_html/tools/smarty/sysplugins/smarty_internal_write_file.php on line 44
Investigating on Prestashop forums I saw that I have to delete some directories such as /cache/smarty/cache and /cache/smarty/compile, but my project doesn't have this two directories. I hope anyone can help me to solve this error, thank you.

This module can help migrate from all version to other PrestaShop.
http://addons.prestashop.com/en/8934-migrationpro-migration-prestashop-to-prestashop.html

Related

Host doesn't recognize my psr-4 class on composer

I created a page for tests using easyphp, in easyphp the classes are loaded normally and everything works fine, but when sending the files to the hosting, the classes are no longer recognized for some reason I don't know... does anyone know how to help me?
Page: https://spetests.000webhostapp.com/gerar-qrcode-dinamico.php
Error: Fatal error: Uncaught Error: Class 'App\Pix\Api' not found in /storage/ssd4/870/19749870/public_html/gerar-qrcode-dinamico.php:12 Stack trace: #0 {main} thrown in /storage/ssd4/870/19749870/public_html/gerar-qrcode-dinamico.php on line 12
Files(from tutorial): https://github.com/william-costa/wdev-qrcode-pix-php

Fatal error: Uncaught Error: Call to undefined function wp() in /home/customer/www/monkinsider.com/public_html/wp-blog-header.php:16 Stack trace:

Fatal error: Uncaught Error: Call to undefined function wp() in /home/customer/www/monkinsider.com/public_html/wp-blog-header.php:16 Stack trace: #0 /home/customer/www/monkinsider.com/public_html/index.php(17): require() #1 {main} thrown in /home/customer/www/monkinsider.com/public_html/wp-blog-header.php on line 16
I don't know but since last week I am getting this error. My site is hosted on siteground and there are no updates from my side. Also, when I contacted them they said its Wordpress issue and they cant help. I tried to restore backup but only it works for 5 minutes after that error shows up again. Also, I referred to previous articles and everything seems fine the file wp-config and all. Also,I cannot even open my admin Wordpress panel.
That's a malware.
You should scan your server and restore wp-blog-header.php with a default one.
You can download a fresh version here: https://wordpress.org/download/releases/
You won't be able to restore the account until the malware is deleted
I had the same issue. In my case wp-load.php was empty for some reasons, not sure what caused it. I copied the files content from a different website and it fixed the issue.

Getting fatal error config.php line 14

I am making my forum!
I have sql database and everything that I need to publish to the web (domain etc.)
So after launching my forum to the web I am getting the following error when trying to open my forum:
Fatal error: Uncaught Error: Call to undefined function
mysql_connect() in /storage/ssd5/357/5453357/public_html/config.php:14
Stack trace: #0 /storage/ssd5/357/5453357/public_html/main.php(3):
include() #1 {main} thrown in
/storage/ssd5/357/5453357/public_html/config.php on line 14
I tried everything but nothing worked!
Maybe someone from here can answer my question...
How to fix this?
Try mysqli_connect() instead, ‘mysql’ is deprecated. This is the case for every mysql function, so make sure everything is updated to ‘mysqli’. Hope this helps

Wordpress database connectivity error on update

Hi guys I updated my WordPress (by mistake) to 4.7 and all the pages which were fetching data from db are messed up.
I can revert back to my original version but I want to continue working on wp 4.7 and fix this error....
upon googling this term p3pnexwpnas i found out that this happens
Kindly take a look at some of the errors Fatal error: Uncaught exception 'Exception' with message 'fetch - <b></b><br>---<br> Query: select * from wp_22v51hy4p7_revslider_settings' in /home/content/p3pnexwpnas09_data01/09/2724709/html/wp-content/plugins/revslider/inc_php/framework/functions.class.php:7 Stack trace: #0 /home/content/p3pnexwpnas09_data01/09/2724709/html/wp-content/plugins/revslider/inc_php/framework/db.class.php(22): UniteFunctionsRev::throwError('fetch - <b></b>...', -1) #1 /home/content/p3pnexwpnas09_data01/09/2724709/html/wp-content/plugins/revslider/inc_php/framework/db.class.php(36): UniteDBRev->throwError('fetch - <b></b>...') #2 /home/content/p3pnexwpnas09_data01/09/2724709/html/wp-content/plugins/revslider/inc_php/framework/db.class.php(127): UniteDBRev->checkForErrors('fetch') #3 /home/content/p3pnexwpnas09_data01/09/2724709/html/wp-content/plugins/revslider/inc_php/revslider_params.class.php(42): UniteDBRev->fetch('wp_22v51hy4p7_r...') #4 /home/content/p3pnexwpnas09_data01/09/2724709/html/wp-content/plugins/revslider/inc_php/revslider_op in /home/content/p3pnexwpnas09_data01/09/2724709/html/wp-content/plugins/revslider/inc_php/framework/functions.class.php on line 7
also this is an error on a different page:-
Notice: Constant DB_NAME already defined in /home/content/p3pnexwpnas09_data01/09/2724709/html/wp-config.php on line 23
Notice: Constant DB_USER already defined in /home/content/p3pnexwpnas09_data01/09/2724709/html/wp-config.php on line 26
Notice: Constant DB_PASSWORD already defined in /home/content/p3pnexwpnas09_data01/09/2724709/html/wp-config.php on line 29
Notice: Constant DB_HOST already defined in /home/content/p3pnexwpnas09_data01/09/2724709/html/wp-config.php on line 32
Notice: Constant DB_CHARSET already defined in /home/content/p3pnexwpnas09_data01/09/2724709/html/wp-config.php on line 35
any hint to solve this problem will be appreciated thanks.....
There is no error in Wordpress installation and database.
The problem is that there are some plugins which are not compatible with wordpress 4.7.
have a look at first error.
Fatal error: Uncaught exception 'Exception' with message 'fetch -
Query: select * from wp_22v51hy4p7_revslider_settings' in
/home/content/p3pnexwpnas09_data01/09/2724709/html/wp-content/plugins/revslider/inc_php/framework/functions.class.php:7
Stack trace: #0
It's because revslider plugin which is not compatible with your current version of wordpress that's why it's throwing fatal error. So if want to continue work on wordpress remove all the plugin which are not compatible with your wordpress version otherwise update it.
Finally found the answer....
So there were 2 problems
deprecated plugin error
Used include so it was loading the wp-config file twice
The old dev used include for including the wp-config that is the reason constant already defined was coming. I used require_once and this problem was solved.
Thanks for the plugin help guys....

cpanel php class not creating object

We used "cPanel API2" library to create park domain in our server and it was working fine until last cPanel up-gradation.
We created file mytest.live.php on server to create a object of "CPANEL class" for troubleshooting the issue, but unfortunately it returns error as below.
<?php
require_once "/usr/local/cpanel/php/cpanel.php";
$cpanel = new CPANEL(); ?>
And Output Returns:
Fatal error: Uncaught exception 'RuntimeException' with message 'There was a problem fetching the env variablecontaining the path to the socket' in /usr/local/cpanel/php/cpanel.php:146 Stack trace: #0 /home/cityusa/public_html/mytest.live.php(4): CPANEL->__construct() #1 {main} thrown in /usr/local/cpanel/php/cpanel.php on line 146
So please help for resolve this issue.
You should try naming your file as ".live.php" or ".livephp". That worked for me.

Categories