I am attempting to install the Google Calendar API: https://developers.google.com/google-apps/calendar/quickstart/php#prerequisites
I've completed all the steps and when I perform the final action the "php quickstart.php" command in composer it provides me with a link that must be followed to get access to the api
example
After entering this code however it providies me with this SSL error
Alright threw 2 hours of research and reading the error messages a lot I have located a solution. I had to install a cacert.pem file inside my php folder and go into my php.ini and locate curl.cainfo and uncomment it and provide the file path to the cacert.pem file. I'm extremely confused on why I didn't have one to begin with considering I reinstalled composer and my server like 2 times sooo idk. If this helps anyone in the future your welcome.
Related
I have a problem installing TYPO3 10.2.2 on Ubuntu 18.04.3 LTS, Apache 2.4.29, PHP 7.2
I did follow the "Install TYPO3 Without Composer" How to. When I want to access the Installer I see a blank page. So far nothing new, I have seen that a lot of times. I did set the access rights correct but still a blank page.
The Apache error log says:
AH01071: Got error 'PHP message: PHP Fatal error: Uncaught
LogicException:PSR-11 Container is not available in
/var/www/typo3_src/typo3/sysext/core/Classes/Utility/GeneralUtility.php:3398
In the mentioned php I see additional information 'PSR-11 Container is not available', 1549404144.
I did search on the web to find a possible solution but this time without any luck.
My question: Did someone see that bevore or has a hnt for me what to do?
Thanks a lot in advance.
Dabbelju
I just ran into the same problem (Installation with composer by the way).
The problem is that the web server does not have the needed access rights on the Typo3 project folder.
When using the Apache HTTP Server this can be solved with
chown -R :www-data YourProjectFolder
chmod -R g+w YourProjectFolder
This recursively changes the group of all contained files to 'www-data' which is the group used by the Apache server and grants write access for this group.
When did you get the error message? Just after accessing the site for the first time after creating FIRST_INSTALL?
Are there any other error messages before this error message? (If you open the file GeneralUtility and look in the specified line, you will notice that the $container was not created. The question is why?). Problem is most likely somewhere during autoloading / dependency injection.
I never had this error, but here are some tips for generally handling exceptions and solving / debugging these types of things yourself.
As already mentioned, the logfile may show additional information. On non-Composer installations you will find this in typo3temp/var/log
If you already got so far to enter the backend, you may want to set the Configuration Preset to "Debug" in settings to see more output (do not do this in production)
If you finished the installation procedure, but cannot access the backend (with /typo3), see if you can access the install tool (with /typo3/install.php, create a file ENABLE_INSTALL_TOOL in typo3conf)
Since you know the code of the Exception, you can look up the Exception page in the wiki: https://wiki.typo3.org/Exception/CMS/1549404144 (unfortunately in this case it is empty, but it may be helpful for other exceptions)
check your permissions, typo3temp must be writable for the user / group Apache is running under (e.g. www-data)
As a last resort, if all else fails, removing the entire content of typo3temp might help. This is not good practice and should usually not be necessary, but it lets you restart with a clean state.
Also see troubleshooting tips in Installation Guide.
P.S. I just followed the Installation Guide: Quick Install without Composer to be sure and it works on my system, Ubuntu 19.04, PHP 7.2, Apache/2.4.38 without any problem.
To wrap this one up:
It was a permission problem. Due to the missleading Error message it took me a while to figure that out. In the mentioned guide it does not say something about permissions.
My conclusion: Whenever it comes to the point that T3 says that a folder can not be created fix the permission problem instead of adding the folder manually.
Thanks to all who did guide me to the right solution.
I'm a fairly new laravel developer, I am developing my website in laravel 5.5 and I've been trying to get my website online for a few days now. it kept giving me error message like:
Warning: require_once(/dirpath/htdocs/vendor/composer/autoload_static.php): failed to open stream: No such file or directory in /dirpath/htdocs/vendor/composer/autoload_real.php on line 28
Fatal error: require_once(): Failed opening required '/dirpath/htdocs/vendor/composer/autoload_static.php' (include_path='.:/usr/share/pear/') in /dirpath/htdocs/vendor/composer/autoload_real.php on line 28
since it is a free shared hosting server without SSH (I cant run laravel command there), I did make sure to do everything from paying attention to folder structure (placing the content of public outside) and every project files/folders in the htdocs content (I know it can be insecure, I just wanted to show the client the progress of the website for a few days before I took it down). I also did composer install, composer update, composer dump-autoload, various artisan command to clear the cache before I push it to the server, but as you can see, the error persist.
a bit of inspecting on my end, and I keep seeing the autoload_static that autoload_real has been trying to require, kept disappearing along with the autoload classmap. What is the reason that is causing this and what should I do to make the error go away?
Thanks in advance, I tried all I know and did some research but I just stuck, hope you guys can help with this.
also: I can't really get myself a vps or a paid hosting right now.
Update 25/04/2018 : I did composer update --no-dev and re-upload the whole thing again to the vendor, but it is still the same error, anybody has a suggestion? I really am stuck at this point.
In this situation you can't do anything on the server without SSH. In your local copy run composer update --no-dev. Then delete server's vendor folder & copy your local's vendor folder to the server.
load psr-4 instead:
inside autoload_real.php, please find the code like shown below:
$classMap = require DIR . '/autoload_psr4.php';
At least this is a dirty trick to make it work. Once you have the money, then may be moved to a well-equipped server later.
I am not sure what's going on with my magento installation.
I downloaded the latest version of Magento 2.1.1 as zip.
Extracted, setup a database then tried running the install but I keep on getting this stup*d error and I could not find any answers online.
Can someone help me on this one please? Its been a while since I used magento since I got used to working with Wordpress websites.
I tried looking for the file manually, but just like the error said, it does not exist. Where can I find this registration.php file under magento/framework/ folder?
Try run this command in your magento root folder.
composer dumpautoload
Then reload page you've got this error.
Still not working ?. Fell free to reply :)
If you are using composer to Install, the solution is simple re run the commands from the Magento Root Folder.
Inside /vendor/autoload.php there is a Base Path Global Variable that take the path to execute the vendor_path.php, and, in my case, it take the path where I am and not the Root.
I hope this is helpful for someone.
Have a nice coding day
please run
composer dump-autoload
to reload composer autoload files this issue mostly when you update a library and then fall back to original but magento composer files doesn't fall back to original so you need to generate files again.
I am trying to install the Saxon-C XSLT-parser with it's PHP module on my server as explained here: http://www.saxonica.com/saxon-c/index.xml. I successfully installed it and compiled the PHP module. Maybe someone of you might have an idea, whats going wrong.
When starting apache I get the following error:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/saxon.so' -
libsaxon.so: cannot open shared object file: No such file or directory in Unknown on line 0
I know that it is searching the LD library.
more /etc/ld.so.conf.d/jetvm.conf
/opt/saxon/rt/lib/amd64
/opt/saxon/rt/lib/amd64/jetvm
tail -n 1 /etc/apache2/envvars
export LD_LIBRARY_PATH=/opt/saxon/rt/lib/amd64:/opt/saxon/rt/lib/amd64/jetvm:$LD_LIBRARY_PATH
echo $LD_LIBRARY_PATH
/opt/saxon/rt/lib/amd64:/opt/saxon/rt/lib/amd64/jetvm/
Everything seems to be right. I also double checked that all Paths are existing.
I have already checked the following threads (and much more), which couldn't help me:
https://askubuntu.com/questions/488874/php-startup-unable-to-load-dynamic-library
Error while loading shared libraries: 'libpcre.so.0: cannot open shared object file: No such file or directory'
Error while loading shared libraries: 'libpcre.so.0: cannot open shared object file: No such file or directory'
Error In PHP5 ..Unable to load dynamic library
After trying a couple of hours without any progress I really hope, someone can help me here. Maybe the solution is quite dump. I have not much experience with languages which has to be compiled, therefore I can only understand vaguely what is going on here.
Have many thanks in advance and best wishes.
The troubleshooting guide provides some hints to this problem:
Run the following command should resolve the error: "$ sudo ldconfig". Alternatively create a symlink to java virtual machine. This is not required to install/compile, but it is required for PHP code. The following should resolve the issue on a 64-bit machine:
ln -s $JAVA_HOME/jre/lib/amd64/server/libjvm.so /lib64/libjvm.so
Alternatively, it is possible to link the libjvm.so from the rt/lib/jetjvm directory.
The libsaxon.so file must be installed within the /usr/lib directory.
We are making steps in the next release to use an environment variable.
With the friendly aid of ond1, who is one of the developers of the Saxon, I finally found a solution. Apparently there are some Paths hardcoded so, you have to ignore the installer's question where to put the files and install it to /usr/lib.
I Uninstalled previous installation, installed to /usr/lib and coompiled from there - and now it works.
There is a lot of topics on this but after hours of reading i am still getting no where.
I have found a lot of issues wit this.
people have given links to files that no longer exist
the help people have given refers to files that aren't included with the download
This is the nearest i have found
link
I followed this exactly, after finding a different version of the file broken link
version I found version available at sourceforge which isn't very helpful.
Steps as decribed:
unzip
copy ffmpeg.exe somewhere and remember the path for later use
move php_ffmpeg.dll to php extension dir (usually c:\xampp\php\ext)
move all other files to Windows\System32 (except COPYING.GPLv3.txt,
readme.txt)
add extension=php_ffmpeg.dll to php.ini (usually
c:\xampp\php\php.ini)
restart apache with fingers crossed questions/answers
http://www.apachefriends.org/f/viewtopic.php?f=16&t=41913
But when I restart apache I get the error:
The program can't because avcodec-51.dll is missing
AND
PHP startup: Unable to load dynamic libary php_ffmpeg.dll can't be found
The php_ffmpeg file is in the apache extention folder and has been declared in the php.ini file. I don't really change many settings in my php.ini file so I just put iy at the top of the extentions, if this is the problem please let me know.
extension=php_ffmpeg.dll <---first extention added
extension=php_bz2.dll <---- this was allready there
If anybody knows an easy way to install this on a localhost I would really appropriate and if I'm having this much trouble on localhost should I bother trying to get this working on my lunix server.
(I am using xampp on windows and my lunix server is hosted through 1and1 - not my first choice but its for a friends site)