I am trying to deploy my symfony 2.2 web site but i got problem:
InvalidArgumentException: [ERROR 3070] complex type 'service': The content model is not determinist. (in file:////home/dir/fold/katalog/vendor/symfony/symfony/src/Symfony.....
I try all the method but all time i got error.
I check my server configuration with domain/config.php and it is fine.
Next, i transfer all my folder without 'vendor' directory and with empty cache.
I execute php composer.phar install
......
But when i try domain/app.php/ => error(debug=true)
Finally , i transfered all my project including vendor, cache ... But the same thing =>Error
There same one can help me by short tutorial without the symfony documentation .
Thanks guys
This most likely relates to this question / solution and is caused by an error in libxml when validating xsd of xml configuration files.
The original source of the solution is this GitHub issue.
Solution
up- or downgrade your server's libxml2 to resolve the issue.
This is a bug in libxml2 - are you using RHEL or CentOS? Check out https://rhn.redhat.com/errata/RHBA-2013-0591.html and if you can't wait for the update to be released through yum update, then you can downgrade to an earlier version:
yum downgrade libxml2-2.6.26-2.1.21.el5_9.1
Related
I have a problem with symfony configuration. I installed symfony and configure everything as in tutorials, but i can't start server in my project file, because i've got that kind of error :
'symfony' is not recognized as an internal or external command,
operable program or batch file.
I tried to reinstall whole packet and I'm still geting same result. What I need to reconfigure or change?
You must install the Symfony CLI (the symfony binary) separately from the libraries/bundles/packages.
See the Symfony CLI installation instructions for more information.
This is typically done first, so your answer makes it unclear how you may have "installed symfony". If you indeed installed the CLI, you may have to take additional steps to make it globally available depending on your platform.
composer error
I am getting error while trying to install Composer.
The error is
Remove from the System path: c:\windows\system32.
Please help me in finding the solution.
same here but, trying to uninstall/reinstall composer but after uninstallation and clicking the composer installer i had the same prob..
I got the installer FIXED after a computer restart so that the uninstall will be complete and "system variables" will be updated.
I do not know what the problem is, but I ran into the same problem. On a hunch, I tried reinstalling composer again. When asked to choose the PhP engine, I chose PhP 5.6, which I understand is still available on all wampp / xampp installations.
That seemed to do the trick. Why 5.6 is working but 7.3 is not working I have no idea. Furthermore, I feel there is a better solution to this. Unfortunately I don't know it, but at least you can get working if that is the right solution for you.
Open CMD as Administrator type: where composer
It will show where your global composer file is.
"Remove from the System path: c:\windows\system32." If this the error you will find a "composer.bat" file in that directory. Delete that file and run installation again. Hope this fix your problem. Cheers :)
i have the same problem
i resolve by
delete php.exe in c:\windows\system32
I have a website hosted on pagodabox and I keep getting the following error.
Class 'Predis\Client' not found in /data/vendor/laravel/framework/src/Illuminate/Redis/Database.php:62I have already checked this question, but my problem is specifically related to the pagodabox host. I have contacted support, no response from them and I am thinking i;m not gtoing to hear back from theb since this has tro do with the app itself.
I tried updating and recompiling the build on the server to run the updated composer.json file with predis/predis, but this didn't do anything. i followed the instructions in the answer above, but it's not working on my server. Any ideas?
Try this
Remove composer.lock
Remove vendor folder
Run composer install
Hope this helps
i am trying to install composer on my xampp server, but i am getting following error.
Any leads would be helpful. thank you
There will be many reasons behind this.
1.) Be sure Your xampp is working fine.
2.) You install composer without selecting php.exe file (Default it will be available in C:\xampp\php\php.exe).
If all working fine please look at this link. May be it will help you:
https://abuango.net/2014/08/16/how-to-install-composer-on-windows-with-xampp/
It's been days trying to create A Symfony project using Eclipse PDT with composer feature installed, but an error from composer keeps me from achieving this.
here are the steps i followed to do so:
I Installed Eclipse Standard Kepler version
I Installed PDT plugin, Symfony, Composer ... and all the stuff using this update site (http://p2-dev.pdt-extensions.org/)
I configured PHP executable
I create a new Symfony project, but when I click the finish button, I have the following error
I tracked on the web this error, and found the reason is that the php function : file_get_contents()
I have no idea what to do to solve this issue.
Please help.
PS : by the way i enabled that PHP extension php_openssl and still not workin