An error occured when executing the cache:clear --no-warmup” while installing fosuserbundle - fosuserbundle

I am installing fosuserbundle using composer but I am getting error while installing it.
[Symfony\Component\Debug\Exception\ContextErrorException]
Warning: constant(): Couldn't find constant Monolog\Logger::DEBUG in /home/trainee/web/projects/Symfony-demo/vendor/symfony/monolog-bundle/Symfony/Bundle/MonologBundle/DependencyInjection/MonologExtension.php line 110
Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the post-update-cmd event terminated with an exception
[RuntimeException]
An error occurred when executing the "'cache:clear --no-warmup'" command.
I am using this command
php composer.phar require friendsofsymfony/user-bundle --prefer-dist
Please provide a version constraint for the friendsofsymfony/user-bundle requirement: dev-master
Can anyone help me?
Thanx in advance.

I got the solution of my problem. For that, first I need to install composer using
php composer.phar install
then I need to install fosuserbundle using
php composer.phar require fosuserbundle/user-bundle --prefre-dist
so it will be installed

Related

How can I install cakephp2 in 2022?

can anyone tell me how can I install cakephp 2 in 2022 I tried many ways to install it I also have its zip file which I extract it and when I tried to run it it shows.
Fatal Error
Error: Cannot use 'String' as class name as it is reserved
File: E:\xampp\htdocs\cakephp2.3\lib\Cake\Utility\String.php
Line: 27
Notice: If you want to customize this error message, create app\View\Errors\fatal_error.ctp
CakePHP 2 needs php5
since Version 2.8 you can use php70
php71 is possible but you need to install mcrypt seperatly.
Its possible to run a CakePHP 2.8 on php72 with some core hacks. But i wouldn't recommend this.
I got my answer we can download its zip file from github and copy its file in htdocs folder and run it without an issue. By the way I downloaded cakephp 2.10. and it is also running in xampp with php version 8. If in your system it is not running then try to use xampp with php version 7.

ABPFRAMWORK couldn't determinate version of #abp/ng.schematics

I'm facing an error when using the command: abp generate-proxy
ABP Framework version: Version 4.0.0 (Stable)
User Interface: Angular
Steps needed to reproduce the problem: Executing the command abp generate-proxy
Exception message:
please double chek the URL in the source project environment and make
sure you application is up and running
In addition, how can I fix the warning:
Couldn't determinate version of "#abp/ng.schematics" package.
[WRN] Couldn't determinate version of "#abp/ng.schematics" package.
[Error] [API NOT AVAILABLE]please double chek the URL in the source project environment and make sure you application is up and running
You can try specifying the URL parameter; e.g.,
abp generate-proxy -t ng -m identity -u https://localhost:yourportnumber
This worked for me.

bibliometrix (Problem in uploading the data)

I am trying to do bibliometrix analysis of articles using the bibliometrix package. I installed the package and then run the library.However, when I am uploading my data, it is showing this error:
Error in readFiles("C:/Users/patel/savedrecs.bib") : could not find
function "readFiles".
Also. when I am running library this is the massage I am getting.
library(bibliometrix) ### load bibliometrix package
Error: package or namespace load failed for ‘bibliometrix’: object
‘scale_type’ is not exported by 'namespace:ggplot2'
In addition:
Warning message: package ‘bibliometrix’ was built under R version
3.4.4
My question is how to upload data? Please help me.
Try to download the package directly from the github repository:
install.packages("devtools")# to install the bibliometrix most recent version from GITHUB
devtools::install_github("massimoaria/bibliometrix")
Beware! The github version, usually, is the most recent and not fixed one.
For windows, I had to install Rtools from https://cran.r-project.org/bin/windows/Rtools/
Then I did the following installs in RStudio
> install.packages("bibliometrix", dependencies=TRUE)
> library(bibliometrix)
To cite bibliometrix in publications, please use:
Aria, M. & Cuccurullo, C. (2017) bibliometrix: An R-tool for comprehensive science mapping analysis, Journal of Informetrics, 11(4), pp 959-975, Elsevier.
http:\\www.bibliometrix.org
To start with the shiny web-interface, please digit:
biblioshiny()
> biblioshiny()
Only then all such prerequisite problems got resolved. Without RTools, all such errors were getting reported.
I re-installed the rtools, then installed the jsonlite package and lastly, installed the bibliometrix package.
now it's working.

Not able to install sonar runner in Mac (Sierra)

I am trying to install sonar runner using below command.
brew install sonar-runner
Its giving me the error.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
Please suggest.
I think that sonnar-runner was replaced by sonar-scanner
brew install sonar-scanner

How to upgrade cakephp from 1.3 to 2.1?

I'm a newbie in cakephp, I'm trying to upgrade cakephp to the latest version.
I install the fresh cakephp 1.3 on my computer and the upgrade it to cakephp 2.1.
I use shell to upgrade, but after I run 'upgrade all' command, I saw two error:
Warning Error: chmod(): Operation not permitted in [/var/www/cakephp-1.3/lib/Cake/Utility/Folder.php, line 639]
Warning Error: touch(): Utime failed: Operation not permitted in [/var/www/cakephp-1.3/lib/Cake/Utility/Folder.php, line 640]
I think it has upgraded complete. Because I see the message from terminal like this:
Done updating /var/www/cakephp-1.3/app/Console/cake.php
Done updating /var/www/cakephp-1.3/app/Console/Command/AppShell.php
Running components
Running exceptions
Then I refresh my app and I got some errors:
http://flic.kr/p/bwUpwY
Then I delete 'cake' directory, and the error message has changed:
http://flic.kr/p/bKP7Te
So now I don't know what to do next, because I did many ways but still not make it work.
So anybody please tell me what I did wrong and how can I upgrade cakephp successful.
Thanks in advance.
This looks like you have permissions issues on some of the directories that the CakePHP migration script expects to be writable.
This could lead to the migration failing on some parts and leaving a partially broken install after it completes.

Resources