PHP Fatal error during a DreamFactory installation - php

I am pulling hairs here and choking kittens with frustration..
Trying to find a nice and easy framework to pull data from a MySQL server to my iOS and Android apps using REST-API and I found this little promising application called DreamFactory.
I had myriad of issues until I finally stumbled on this one while installing:
PHP Fatal error: Call to undefined function mcrypt_encrypt() in /opt/dreamfactory/platform/var/www/launchpad/vendor/kisma/kisma/src/Kisma/Core/Utility/Hasher.php on line 501
Has anyone encountered this during installation of DreamFactory and can advise me or alternatively another similar application?

you can run php -m to list which php modules you have installed. Here is the link to learn about mcrypt.
http://php.net/manual/en/book.mcrypt.php
installing with PECL
https://pecl.php.net/package/mcrypt
installing with homebrew:
https://gist.github.com/teroyks/e0d271e6720eda692456

Have you tried using the Bitnami prepackaged version including stack? It's literally turnkey:
https://bitnami.com/stack/dreamfactory

Related

PHP PECL extension V8Js on Openshift Online

I need Openshift Online to get the PHP PECL extension V8Js running for letting React.js execute server side Javascript from PHP. Are PECL extensions now enabled? If yes, how can I do that? The last I saw was a feature request for this from 02.2014. But I did not get information if in the meantime something has changed.
25.07.2015: I'm a step further. Corey pointed me to a promising direction. Did not know, that PECL is some kind of PEAR. Both seem compatible to openshift. I added 'v8js' to the .openshift/pear.txt file and when git pushing the app the console talked to me. I tried to install v8js with 'pecl install channel://pecl.php.net/v8js-0.2.0' but the compiler could not find V8, console said:
checking for V8 Javascript Engine... yes, shared
checking for V8 files in default path... not found
configure: error: Please reinstall the v8 distribution
So, how do I find the path to V8, and how do I know, if it is already there? If not there, how do I get it?
26.07.2015: Did not manage to install V8. I tried to do it like described in the Google docs. The compilation takes 600MB! and I am running out of quota. Maybe I may need to upgrade python version too, since the depot_tools require a more recent version. So, this is very complicated right now. I am asking myself, if I am on the right track. I would still prefer the mainstream PHP way with V8Js for serverside Javascript instead of node.js.
What shall I do? another shared hosting (search hard)? Cloud hosting, like bitnami and Amazon AWS? Is there still hope with openshift? Virtual, managed server? I am confused.
Have you tried reading through the section of the Developer Portal about PHP cartridge dependencies? https://developers.openshift.com/en/php-getting-started.html#step3
The Openshift Online support immediately answered my question: "Sorry, we do not have the V8Js PECL extension at this time".
But from the hints of corey112358 and N.B. and own experience and from internet research I additionally learned that it's a hassle to make that extension run or find hosting support, if you are not a Google engineer who can install v8 or if you have no time or money to run an own server or if you are no expert in V8Js. So, in this case, you may find node.js a more comfortable solution.

Php 5.6 Memcached in XAMPP for Windows

I'm trying to find a solution for my problem. I downloaded a symfony2 project to localhost. I'm trying to run it, but it gives me an error:
Fatal error: Class 'Memcached' not found
I found solutions for Memcache errors, I have memcache installed and I'm running the memcached service too. It needs the memcached, not memcache extension, but I can't find it anywhere for windows. I really need to make this project run. Are there any alternatives? I didn't do anything to this project, I never worked on it, so I don't know the source code. Any help is appreciated. Thanks in advance!

Can Run gnuplot via Command Line, but not via PHP Call?

I coded a PHP application that creates charts using gnuplot for specific client applications. It has run well for years.
I’ve just installed gnuplot on new iMac running Mavericks. I used MacPorts to do the install. The install went smoothly. I can access and run gnuplot successfully from the command line in the terminal.
However, when I attempt to run gnuplot via my PHP application, I get the following error:
dyld: Library not loaded: /opt/local/lib/libpng16.16.dylib Referenced from: /opt/local/bin/gnuplot Reason: Incompatible library version: gnuplot requires version 26.0.0 or later, but libpng16.16.dylib provides version 19.0.0
There are two things about this that are puzzling me at the moment:
Why would gnuplot give no error when called from the command line,
but would give this error in response to a PHP call?
Macports installed libpng #1.6.9_1. According to the libpng home
page (http://www.libpng.org/pub/png/libpng.html), 1.6.9 is the
latest version. Why would I get an error saying I need to update
libpng?
Does anyone have any thoughts on how I might fix this?
Thanks very much in advance to all for any info!

“Fatal error class 'Thread' not found in…” when trying to use PHP pthreads

I’m working on a project for my graduation and I need to enable pthreads in PHP because I need multithreading. I used a tutorial, but I get this error: Fatal error class 'Thread' not found in….
I searched the web for help on how to enable pthreads, but nothing helped. I’m using PHP version 5.4.7.
A user suffering the same error has posted the solution on github: https://github.com/krakjoe/pthreads/issues/154
The short of it is you have to add pthreadVC2.dll to Apache configuration ... I wasn't aware of this, I don't use Windows ...
That should get you sorted ...
the dlls should be compatible with your php version
check this answer
pthread not working in php
There is no 'threading' in PHP. You can fork a new 'process' using pctnl_fork(), however there is no built in shared memory between the two processes (youll have to implement shmop() or a socket server setup to communicate between processes). Also, pcntl_* is only usable on linux setups, not windows.

unable to install joomla 3.1 with php 6

I tried everything but unable to solve this error and issue with joomla not sure why they have made things so complicated without explaining much. I am using Appserv with PHP 6.0.0 and joomla's new version 3.1. I have extracted the whole zip in my www root directory but every time when i check web url it takes me
http: // localhost/installation/index.php
and error shows as
Fatal error: Interface 'JsonSerializable' not found in
C:\AppServ\www\eshaheen\libraries\joomla\registry\registry.php on line 22
I searched on google but did not find any answer then i opened the registry.php file and added explicitely another import as
import('compat.JsonSerializable') doing that the above error is gone but everything is blank...
Kindly guide me how to install joomla...
regards
You are using outdated software. PHP6 development was closed and was never released. Actual version of PHP is 5.4.
Use other web server solution stack package of LAMP. For example: XAMPP

Categories