Skip to content
Advertisement

Class SimpleXMLIterator not found in zend framework 1 when zf create project ZendApp with PHP7

I downloaded this zend framework zf 1.12.20 from their official site

Unzipped it and added the path to library in php.ini and aliased bin/zf.sh in .bashrc as per this tutorial

Now when I do zf create project ZendApp, I get the following error:

JavaScript

I tired by relocating the framework to my home folder but the error didn’t resolve. I tried using zf 1.12.19, still no luck.

Then to verify if zf is not seen by php I executed the following code from this site and it worked perfectly:

JavaScript

It seems like the zf.sh file is causing this error. It would be great if any one could help. I ‘am running apache2 2.4.18 and PHP 7.0.8 on Linux Mint 18. I know zf1 is outdated but I need it now.

Advertisement

Answer

Too bad no body could help me so far. Fortunately accidently while working for another app, I found the issue from https://linuxconfig.org/moodle-exception-call-to-undefined-function-xml-parser-create.

The reason for the exception was the missing xml library in PHP 7.

After installing php7.0-xml by

JavaScript

every thing worked fine. Zend Framework requires a xml library for PHP

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement