I' m trying to use cakephp upgrade shell to migrate my project to cakephp 1.3 -> 2.0.1 but when i run the script, it; s returning the following error:
Error: Plugin DebugKit could not be found.
#0 /Applications/MAMP/htdocs/youppie/lib/Cake/Core/App.php(328): CakePlugin::path('DebugKit')
#1 /Applications/MAMP/htdocs/youppie/lib/Cake/Console/Command/UpgradeShell.php(223): App::pluginPath('DebugKit')
#2 /Applications/MAMP/htdocs/youppie/lib/Cake/Console/Command/UpgradeShell.php(91): UpgradeShell->helpers()
#3 /Applications/MAMP/htdocs/youppie/lib/Cake/Console/Shell.php(372): UpgradeShell->all()
#4 /Applications/MAMP/htdocs/youppie/lib/Cake/Console/ShellDispatcher.php(177): Shell->runCommand('all', Array)
#5 /Applications/MAMP/htdocs/youppie/lib/Cake/Console/ShellDispatcher.php(69): ShellDispatcher->dispatch()
#6 /Applications/MAMP/htdocs/youppie/app/Console/cake.php(41): ShellDispatcher::run(Array)
#7 {main}
I' m running ./Console/cake upgrade upgrade all --dry-run inside app directory
Anyone knows what i'm doing wrong ?
As a rule of thumb, move your plugins folder out of the app, so it is not affected during the upgrade. You could also leave the folder there, but just move the contents of it out of the scene.
Also remember that in 2.0, plugins need to be loaded manually. In your bootstrap file add CakePlugin::loadAll() or just CakePlugin::load('MyPlugin')
Related
After upgrading to magento 2.4.5-p1 and to php 8.1
I get this error while I try to compile
I tried to delete the vendor folder and did composer update but same results.
any way to solve this issue?
public_html$ bin/magento setup:di:compile
Compilation was started.
Repositories code generation... 1/9 [===>------------------------] 11% < 1 sec 115.0 MiBsyntax error, unexpected token "readonly", expecting identifier#0 /home/0.cloudwaysapps.com/bmd/public_html/setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php(117): Magento\Setup\Module\Di\Code\Reader\ClassesScanner->includeClass()
#1 /home/0.cloudwaysapps.com/bmd/public_html/setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php(87): Magento\Setup\Module\Di\Code\Reader\ClassesScanner->extract()
#2 /home/0.cloudwaysapps.com/bmd/public_html/setup/src/Magento/Setup/Module/Di/App/Task/Operation/RepositoryGenerator.php(61): Magento\Setup\Module\Di\Code\Reader\ClassesScanner->getList()
#3 /home/0.cloudwaysapps.com/bmd/public_html/setup/src/Magento/Setup/Module/Di/App/Task/Manager.php(56): Magento\Setup\Module\Di\App\Task\Operation\RepositoryGenerator->doOperation()
#4 /home/0.cloudwaysapps.com/bmd/public_html/setup/src/Magento/Setup/Console/Command/DiCompileCommand.php(216): Magento\Setup\Module\Di\App\Task\Manager->process()
#5 /home/0.cloudwaysapps.com/bmd/public_html/vendor/symfony/console/Command/Command.php(255): Magento\Setup\Console\Command\DiCompileCommand->execute()
#6 /home/0.cloudwaysapps.com/bmd/public_html/vendor/symfony/console/Application.php(1021): Symfony\Component\Console\Command\Command->run()
#7 /home/0.cloudwaysapps.com/bmd/public_html/vendor/symfony/console/Application.php(275): Symfony\Component\Console\Application->doRunCommand()
#8 /home/0.cloudwaysapps.com/bmd/public_html/vendor/magento/framework/Console/Cli.php(116): Symfony\Component\Console\Application->doRun()
#9 /home/0.cloudwaysapps.com/bmd/public_html/vendor/symfony/console/Application.php(149): Magento\Framework\Console\Cli->doRun()
#10 /home/0.cloudwaysapps.com/bmd/public_html/bin/magento(23): Symfony\Component\Console\Application->run()
#11 {main}
Thanks alot
Kobi
I'm from Cloudways Magento Community
Need to reproduce the steps for resolving the issue:
Downgrade your PHP version and check if its works
It seems some of your extensions create conflict in it, so what you can do is launch another application with the latest version and deploy each of your extensions one by one. This will let you know what causes the conflicts.
Check file permissions: https://support.cloudways.com/en/articles/5126387-how-can-i-reset-file-and-folder-permissions
Check the class which has a readonly keyword because:
readonly is a reserved keyword in PHP 8.1. Any existing classes or other symbols that use the name readonly (case insensitive) will result in a syntax error in PHP 8.1.
It is not possible to port the readonly functionality to older PHP versions. However, the #readonly / #property-read annotations is understood by static analyzers such as Psalm.
Thanks
It seems like a syntax error in your code, please check the last code that you added before deployment.
go to the Magento root folder and open the var/log folder, here you can check the log files, and you will find the error records here.
after that run, all deployment commands with di: compile one by one.
Thanks.
For the New Laravel project, I need to update the PHP version using XAMPP,
After the update, the PHP version and apache folder when I start apache and MySQL from the XAMPP control panel this working but I open localhost/phpmyadmin/ it shows me fatal error and doesn't show the database.
Fatal error: Uncaught mysqli_sql_exception: You are not using binary logging in C:\xampp\phpMyAdmin\libraries\classes\Dbi\DbiMysqli.php:199 Stack trace: #0 C:\xampp\phpMyAdmin\libraries\classes\Dbi\DbiMysqli.php(199): mysqli->query('SHOW MASTER LOG...', 0) #1 C:\xampp\phpMyAdmin\libraries\classes\DatabaseInterface.php(316): PhpMyAdmin\Dbi\DbiMysqli->realQuery('SHOW MASTER LOG...', Object(mysqli), 1) #2 C:\xampp\phpMyAdmin\libraries\classes\DatabaseInterface.php(1869): PhpMyAdmin\DatabaseInterface->tryQuery('SHOW MASTER LOG...', 256, 1, false) #3 C:\xampp\phpMyAdmin\libraries\classes\Menu.php(573): PhpMyAdmin\DatabaseInterface->fetchResult('SHOW MASTER LOG...', 'Log_name', NULL, 256, 1) #4 C:\xampp\phpMyAdmin\libraries\classes\Menu.php(107): PhpMyAdmin\Menu->_getServerTabs() #5 C:\xampp\phpMyAdmin\libraries\classes\Menu.php(70): PhpMyAdmin\Menu->_getMenu() #6 C:\xampp\phpMyAdmin\libraries\classes\Header.php(445): PhpMyAdmin\Menu->getDisplay() #7 C:\xampp\phpMyAdmin\libraries\classes\Response.php(323): PhpMyAdmin\Header->getDisplay() #8 C:\xampp\phpMyAdmin\libraries\classes\Response.php(336): PhpMyAdmin\Response->_getDisplay() #9 C:\xampp\phpMyAdmin\libraries\classes\Response.php(495): PhpMyAdmin\Response->_htmlResponse() #10 [internal function]: PhpMyAdmin\Response->response() #11 {main} thrown in C:\xampp\phpMyAdmin\libraries\classes\Dbi\DbiMysqli.php on line 199
I feel the main issue is that your tried to upgrade only php instead of the whole Xampp Bundle. Either you should install complete xampp again or you should upgrade phpMyAdmin manually too as this will fix the php compatibility issues.
I had this exact same issue and I have spent many hours trying to figure this out, so it is as simple as this.
Once you have upgraded your php. (In my case I upgraded to php 8.1.10)
Make a copy of your phpMyAdmin folder renaming it different than the current value that it has.
Download phpMyAdmin 5.2.0 or higher.
Unzip the file, and then copy it into your xampp folder replacing the old phpMyAdmin folder.
Inside the new folder create the file config.inc.php and paste inside there the data that is in config.inc.php located in your old phpMyAdmin folder.
Thats it!
I am currently trying to follow this tutorial: https://www.mediawiki.org/wiki/Wikibase/Installation
I have the latest version of both MediaWiki and WikiBase (1.35) I'm currently trying to run the maintenance scripts.
I have installed both Wikibase Repository and Wikibase Client.
When I try to run "php maintenance/update.php" it gives me this error:
Error from line 47 of /Applications/XAMPP/xamppfiles/htdocs/mywikiname/extensions/Wikibase/lib/WikibaseLib.entitytypes.php: Class "Wikibase\DataModel\Entity\ItemId" not found
#0 /Applications/XAMPP/xamppfiles/htdocs/mywikiname/extensions/Wikibase/repo/includes/WikibaseRepo.php(695): require()
#1 /Applications/XAMPP/xamppfiles/htdocs/mywikiname/extensions/Wikibase/repo/includes/WikibaseRepo.php(410): Wikibase\Repo\WikibaseRepo::getDefaultEntityTypes()
#2 /Applications/XAMPP/xamppfiles/htdocs/mywikiname/extensions/Wikibase/repo/includes/WikibaseRepo.php(460): Wikibase\Repo\WikibaseRepo::newInstance()
#3 /Applications/XAMPP/xamppfiles/htdocs/mywikiname/extensions/Wikibase/repo/includes/RepoHooks.php(115): Wikibase\Repo\WikibaseRepo::getDefaultInstance()
#4 /Applications/XAMPP/xamppfiles/htdocs/mywikiname/includes/HookContainer/HookContainer.php(321): Wikibase\Repo\RepoHooks::onSetupAfterCache()
#5 /Applications/XAMPP/xamppfiles/htdocs/mywikiname/includes/HookContainer/HookContainer.php(132): MediaWiki\HookContainer\HookContainer->callLegacyHook(string, array, array, array)
#6 /Applications/XAMPP/xamppfiles/htdocs/mywikiname/includes/HookContainer/HookRunner.php(3417): MediaWiki\HookContainer\HookContainer->run(string, array)
#7 /Applications/XAMPP/xamppfiles/htdocs/mywikiname/includes/Setup.php(694): MediaWiki\HookContainer\HookRunner->onSetupAfterCache()
#8 /Applications/XAMPP/xamppfiles/htdocs/mywikiname/includes/WebStart.php(89): require_once(string)
#9 /Applications/XAMPP/xamppfiles/htdocs/mywikiname/index.php(44): require(string)
#10 {main}
How can I fix this? I've tried updating Composer and reinstalling it numerous times. If anyone can help, that would be great! :)
I hit the same error, and in my case, it was because my compose.local.json, (copied from composer.local.json-sample,) was pointing to "extensions/example/composer.json" rather than "extensions/Wikibase/composer.json". Fixing this to Wikibase, deleting composer.lock, running composer install --no-dev again, and finally running update.php fixed the issue.
I am fairly new to git and I am looking to clone a repo to XAMPP.
From what I understand I should be able to just clone it to HTDOCS and it should work if all the dependencies are installed.
I get this error message when I visit the project folder in my browser.
Fatal error: Uncaught Error: Call to a member function init() on null
in C:\xampp\htdocs\sandbox\craft\app\services\CacheService.php:114
Stack trace: #0
C:\xampp\htdocs\sandbox\craft\app\framework\base\CModule.php(394):
Craft\CacheService->init() #1
C:\xampp\htdocs\sandbox\craft\app\etc\web\WebApp.php(595):
CModule->getComponent('cache', true) #2
C:\xampp\htdocs\sandbox\craft\app\framework\base\CModule.php(103):
Craft\WebApp->getComponent('cache') #3
C:\xampp\htdocs\sandbox\craft\app\services\ConfigService.php(392):
CModule->__get('cache') #4
C:\xampp\htdocs\sandbox\craft\app\services\HttpRequestService.php(1181):
Craft\ConfigService->usePathInfo() #5
C:\xampp\htdocs\sandbox\craft\app\services\HttpRequestService.php(131):
Craft\HttpRequestService->getNormalizedPath() #6
C:\xampp\htdocs\sandbox\craft\app\framework\base\CModule.php(394):
Craft\HttpRequestService->init() #7
C:\xampp\htdocs\sandbox\craft\app\etc\web\WebApp.php(595):
CModule->getComponent('request', true) #8
C:\xampp\htdocs\sandbox\craft\app\framework\base\CMo in
C:\xampp\htdocs\sandbox\craft\app\services\CacheService.php on line
114
I know this a vague question but I'd appreciate any help.
Thank you
I think once you will clone the craft project from your git repo. You need to add .Env file into it. Then your need "uploads" folder. Also you should run the composer install command to install all the dependencies.
After all this process if you still getting the same error then you should try to remove cache from your runtime cache folder and also you can remove compiled classes and templates once.
I hope this will work.
I have created project in smarty and now i am trying to host it on pagodabox.com. I have created application on pagodabox.com and uploaded all code on to this application but problem is this now i am unable to configure cache and compiler directory in pagodabox.com that's why it output fetal error because cache and compiler directory is read only mode. I have try Boxfile to resolve this issue but failing to solve. I am not aware how i can make these directory writable. please help me. this is url of project http://moviestock.pagodabox.com/ and following is my Boxfile configuration
web1: #component type & number
name: blog #component settings
shared_writable_dirs:
- var/secured/cache
- var/secured/compiler
- var/sessions
document_root: app
php_version: 5.3.8
and i am getting this following error :
Fatal error: Uncaught exception 'SmartyException' with message 'unable to write file
shared/secured/compiler/wrt50c17dfaca2932.90478039' in
/var/www/libs/sysplugins/smarty_internal_write_file.php:44 Stack trace: #0
/var/www/libs/sysplugins/smarty_internal_template.php(201):
Smarty_Internal_Write_File::writeFile('shared/secured/...', 'compileTemplateSource() #2
/var/www/libs/sysplugins/smarty_internal_templatebase.php(374):
Smarty_Internal_TemplateBase->fetch('extends:layout....', '6666cd76f969564...', NULL,
NULL, true) #3 /var/www/classes/BaseController.php(22): Smarty_Internal_TemplateBase-
>display('extends:layout....', '6666cd76f969564...') #4
/var/www/secured/controllers/HomeController.php(6): BaseController->render('home') #5
[internal function]: HomeController->indexAction('') #6
/var/www/classes/Router.php(26): call_user_func_array(Array, Array) #7
/var/www/index.php(10): Router::run() #8 in
/var/www/libs/sysplugins/smarty_internal_write_file.php on line 44
I think it has to do with the filepath that smarty is trying to write to. In the error, the filepath is shared/secured/compiler/wrt50c17dfaca2932.90478039. It should be var/secured/compiler/wrt50c17dfaca2932.90478039
Not sure but maybe #chmod(PATH,0770); will make a trick?