I have installed Impresspages on my local Ampps server. When I proceed to open it, I get error message:
Error
Fatal error: Call to undefined function Ip\ctype_digit() in /Applications/AMPPS/www/impresspage/Ip/Dispatcher.php on line 197
Here is line 197 from Dispatcher.php:
if (ctype_digit($priority)) {
How could I solve this?
Enable PHP Extension ctype from AMPPS Application -> PHP Tab -> PHP Extension.
Open the AMMPS Application
Stop Apache
Goto PHP tab
Open PHP Extension window by clicking
Tick ctype.so and apply
Start Apache
You are done!
Related
I'm seeing the below error after attempting to activate a WordPress theme. The error message in the browser is...
Fatal error: Call to undefined function gzopen() in /var/www/mysite.com/wp-content/themes/flat/themify/themify-builder/classes/class-themify-builder-layouts.php on line 528
Checking my /var/log/apache2/error.log I see the following error:
Call to undefined function gzopen() in /var/www/mywebsite.com/wp- content/themes/flat/themify/themify-builder/classes/class-themify-builder-layouts.php on line 528, referer: http://mywebsite.com/wp-admin/update.php?action=upload-theme
Server information:
OS: Ubuntu 14.04 LTS
Apache: APache/2.4.7
PHP: PHP 5.5.9-1ubuntu4
That happened with me too (after upgrading to 14.04 #ubuntu). I waisted my whole day on it but in the end i found the solution.
replace gzopen with gzopen64.
this absolutely worked for me.
PS: I'll like the magento community to know that this problems appeared in creating package, after upgrading apache and php.
This issue occurs because your PHP server is not compiled with Zlib (this PHP module allows you to read and write .gz compressed files). Zlib support in PHP is not enabled by default.
More information about how to setup Zlip can be found here: http://php.net/manual/en/zlib.setup.php
I'm trying to install Symfony2 (I use 'Bitnami' localhost on Windows). When I open http://localhost:8080/symfony2/web/config.php I see the config page, after goint to welcome page blank page is displayed.
On http://localhost:8080/symfony2/web/app_dev.php I've turned ini_set("display_errors", "1"); and what I get is:
Notice: require_once(): 1.
h->opened_path=[C:\Bitnami\wampstack-5.4.26-0\apache2\htdocs\symfony2\app\bootstrap.php.cache]
h->filename=[C:\Bitnami\wampstack-5.4.26-0\apache2\htdocs\symfony2\app\bootstrap.php.cache]
in
C:\Bitnami\wampstack-5.4.26-0\apache2\htdocs\symfony2\web\app_dev.php
on line 27
Notice: require_once(): apc_cache_find [-1630956134] in
C:\Bitnami\wampstack-5.4.26-0\apache2\htdocs\symfony2\web\app_dev.php
on line 27
Notice: require_once(): 1.
h->opened_path=[C:\Bitnami\wampstack-5.4.26-0\apache2\htdocs\symfony2\app\autoload.php]
h->filename=[C:\Bitnami\wampstack-5.4.26-0\apache2\htdocs\symfony2\app\autoload.php]
in
C:\Bitnami\wampstack-5.4.26-0\apache2\htdocs\symfony2\app\bootstrap.php.cache
on line 3
And further errors similar to these.
I saw this: APC (Alternate PHP Cache) Throwing Lots of PHP Notices
But I'm not sure what should I do with Enable internal debugging in APC [no] :no
I'm stuck. What should I do next?
As far as I know there is currently no APC module for PHP5.5 on Windows so you have to use another cache module. You did not write which Xampp version you are using, but I suppose a more recent one.
Please try to use APCu and enable it in php.ini
extension = "C:\xampp\php\ext\php_apcu.dll"
apc.enabled = 1
It worked for me on Windows.
Also, Zend released in PHP5.5 their new OPCache as an alternative to APC. More info can be found here enter link description here. Could be also useful but I never tried that one.
I checked out the PhpWebSockets project from here:
https://code.google.com/p/phpwebsocket/
It's in its own project on my localhost (Windows 7 64-bit) box, inside of a WAMP server. I issue the following command in Windows Command Line to run the server.php file:
C:\wamp\bin\php\php5.4.12\php.exe C:\wamp\www\phpwebsocket\server.php
But it results in the following error message:
PHP Fatal error: Call to undefined function socket_create() in C:\wamp\www\phpwebsocket\server.php on line 58
My WAMP instance DOES have the php_sockets extension enabled (since I saw this similar question who had that problem).
Anyone know what I could possibly be doing wrong?
Found the answer in another thread:
Error with PHP Websocket and Wamp Server
Turns out running the file on the command line means it uses a different php.ini file than the WAMP server does. Seems stupid, but turned out php_sockets wasn't uncommented in that php.ini file, and removing it removed the error with it.
I'm trying to print some string using PHP, i'm using the PHP print functions:
$printer = ("HP LaserJet Professional P1102");
$handler= printer_open($printer);
$content="Test Content";
printer_write($handler, $content);
printer_close($handler);
but I got that error :
Fatal error: Call to undefined function printer_open() in C:\xampp\htdocs\print.php on line 12
after googling it i found that i must add the php_printer.dll to the extensions file in php and add it's extension to the php.ini file, then restarting the server services, all of that accomplished but still getting that error.
p.s. I've tried it on WAMP and XAMPP
I think solution would be extension location.php_printer extension should be stored in c:\xampp\php\ext and not in c:\xampp\php. So move it to the ext-folder, and restart Apache.
Can you look into the error_log, which tells you, if it fails to load the module. You should also run a phpinfo(), which shows up all loaded modules, you must find the printer extensions there.
I hope it may resolve your issue.
I have installed Codeception following the guide on their website. Everything went okay, so I created my first basic test.
<?php
$I = new WebGuy($scenario);
$I->wantTo('ensure that frontpage works');
$I->amOnPage('/');
$I->see('Homepage');
Trying to execute this and it gave Stack trace errors so I dumped them in result.txt page.
Codeception PHP Testing Framework v1.6.2
Powered by PHPUnit 3.7.19 by Sebastian Bergmann.
Notice: Use of undefined constant CURLOPT_SSL_VERIFYPEER - assumed 'CURLOPT_SSL_VERIFYPEER' in phar://C:/wamp/www/dugun/codecept.phar/src/Codeception/Configuration.php on line 175
Notice: Use of undefined constant CURLOPT_CERTINFO - assumed 'CURLOPT_CERTINFO' in phar://C:/wamp/www/dugun/codecept.phar/src/Codeception/Configuration.php on line 175
Notice: Use of undefined constant CURLOPT_SSL_VERIFYPEER - assumed 'CURLOPT_SSL_VERIFYPEER' in phar://C:/wamp/www/dugun/codecept.phar/src/Codeception/Module/PhpBrowser.php on line 78
Fatal error: Call to undefined function Guzzle\Http\Curl\curl_version() in phar://C:/wamp/www/dugun/codecept.phar/vendor/guzzle/guzzle/src/Guzzle/Http/Curl/CurlVersion.php on line 47
Using WAMP on Windows 7. PHP ver 5.4.3. Apache ver 2.4.2. CURL is enabled in settings. Tried restarting several times, no luck.
Anyone knows how to solve this issue, what may be wrong?
Update
The problem was related to curl.dll. Downloading a fresh one from this topic (PHP cURL not working - WAMP on Windows 7 64 bit) solved the issue.
Based on the errors I'd guess that CURL is missing even though it's enabled, try running a phpinfo() to see if the extension is running.
From the PHP site:
"Note: Note to Win32 Users
In order to enable this module on a Windows environment, libeay32.dll and ssleay32.dll must be present in your PATH. You don't need libcurl.dll from the cURL site."
http://www.php.net/manual/en/curl.installation.php