ImageMagick on MAMP - php

I am trying to install ImageMagick on my Mac using MAMP using homebrew.
In the terminal I am not getting the following message:
Warning: php53-imagick-3.1.0RC2 already installed
When trying to run the install script, which was apparently successful, however I still receive the following error when trying to use ImageMagick from PHP:
Fatal error: Class 'Imagick' not found in....
I'm amazed at how difficult this has been, if anyone could help me out it would be greatly appreciated.

Related

Connect to postgreSQL db using PHP on mac os X

I tried to connect to a local postgre Database with PDO using PHP.
When running my code, the error message showed: Fatal error: Uncaught PDOException: could not find driver in {file path}
After googling, it looks like updating the PDO extension is a way fixing it.
Then I tried to use the code here.
When executing line 21 ./configure --with-pdo-pgsql="/Library/PostgreSQL/9.3/"
, the error message is shown:
configure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path
p.s. I check the setting of my Postgres, the paths are shown below, do I need to change path to one of those?
Then I googled for the error again. There are a number of post indicate that using yum -y install postgresql-devel
But the error shows again when I tried to run the code: -bash: yum: command not found
This is a confusing journey of PHP beginner tried to figure out getting data from a database using
PHP. Can someone provide a way to do achieve this (On Mac) ?
The problem is solved when changing my local server from xampp to mapp.

Error: Failed to start application: Call to undefined function Joomla\CMS\Language\simplexml_load_file()

I am getting the error mentioned in the question, I am using:
Linux Mint 18
LAMP
Joomla3.5
solr-7
I have already installed the required libraries here are the screenshots:
Screenshot
I reinstalled the module using the synaptic manager and restarted apache but still the error persists.
Please help me in finding the solution.

Running PHP in ubuntu terminal not working anymore

I was trying a PHP script in the terminal yesterday but it didn't work. Not thinking the script could have errors i reinstalled php7.0-cli and when installing it asked something about how i want to do something, i can´t remember what it asked for exactly. Anyhow i pressed the use local something option and after that i´m not finding my mysqli when trying to run the PHP file in terminal.
I´m getting a error like this:
Fatal error: Uncaught Error: Class 'mysqli' not found in /var/www/mysite/system/library/db/mysqli.php:7
I have tried reinstalling the PHP extensions and i have tried to uncomment the extensions from my php.ini file.

Call to undefined function simplexml_load_string()

Call to undefined function simplexml_load_string()
I am getting this error on all the sites located on our server. Everything was working correctly until today and all of sudden this error poped up.
I have checked Simplexml and it is already installed on the server. Here is the error:
Fatal error: Call to undefined function simplexml_load_string() in
.../lib/Varien/Simplexml/Config.php on line 510
Had the same problem today. I tried to check whether extension is loaded and I was getting true (from command line) Then I found that I was using multiple php versions and the site in question was using php5.4 which for some reason was failing for simplexml
Since I am in a cPanel/WHM environment I ran
yum install ea-php54-php-simplexml
which fixed the issue. This is for EasyApache4. Perhaps you can just update simplexml sepending on your flavour of linux.
Installing latest extension resolved the issue.
yum install ea-php56-php-simplexml

Class 'DateTimeImmutable' not found

I've just run an update for my CakePHP version (3.1.7). And now I'm unable to run my app, with a fatal error :
Fatal error: Class 'DateTimeImmutable' not found in /opt/lampp/htdocs/my-app/vendor/cakephp/chronos/src/Chronos.php on line 50
I found this issue on Github, where I noticed that
DateTimeImmutable was not present in 5.4
So I install PHP5.6.20 on my PC, but after restarting Xampp, I still get the same error. How can I fix this ?
PHP's installation on the PC is not related to Xampp. So installing PHP doesn't solve the problem. But installing a new version of Xampp with PHP 5.6.
It's a PHP Version Problem make sure You're using PHP > 5.5v

Categories