Fatal Error

Alles, was PHP betrifft, kann hier besprochen werden.

Fatal Error

Postby robbynaish » 21. May 2018 11:23

Hi guys,

i copied my working site made in php from godaddy in local. Xampp works pefectly , even if much slow, with a wordpress site.

I had to change the basehost from this

define('debug_ip', "localhost,127.0.0.1");

define("basehost", '/home/nysite/public_html/');
define("root_dir", '/');
define("root_dir", '');
define("host", $_SERVER["HTTP_HOST"]);
define("protocol", empty($_SERVER["HTTPS"]) ? 'http' : 'https');
define("url", protocol."://".$_SERVER["HTTP_HOST"].root_dir);
define("path", basehost.root_dir);

define("image_path", url.template_dir.'/image/public/');

To this

define('debug_ip', "localhost,127.0.0.1");

define("basehost", D:/xampp/htdocs/cmb/');
define("root_dir", '/');
define("root_dir", '');
define("host", $_SERVER["HTTP_HOST"]);
define("protocol", empty($_SERVER["HTTPS"]) ? 'http' : 'https');
define("url", protocol."://".$_SERVER["HTTP_HOST"].root_dir);
define("path", basehost.root_dir);

define("image_path", url.template_dir.'/image/public/');

but i get this errors when i try open index.php


Fatal Error: ezSQL_mysql requires mySQL Lib to be compiled and or linked in to the PHP engine

The first line are this

/* Bootstrap */
include_once dirname(__FILE__)."/framework/init.php";


/* Applications */
include_once dirname(__FILE__)."/framework/modules.php";

/* Closing (and debug)... */
include_once dirname(__FILE__)."/framework/close.php";

Thanks

Ale
robbynaish
 
Posts: 9
Joined: 17. January 2018 10:48
XAMPP version: 3.2.2
Operating System: Windows 7

Re: Fatal Error

Postby Altrea » 21. May 2018 14:16

Seems like your Wordpress version is not compatible with the PHP version you are using.
Your wordpress requites MySQL lib which is removed in PHP 7+
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 9247
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: Fatal Error

Postby robbynaish » 23. May 2018 08:22

Hi Altrea,

my site is no wordpress, is simple php....

And on godaddy it works perfectly. My xampp is ok because with a wordpress site it works without problems...

Th error say that can't find Ezsql library... but the directory of library exist and it's the same that i have on godaddy.... :roll:

What i can do?

Thanks
Ale
robbynaish
 
Posts: 9
Joined: 17. January 2018 10:48
XAMPP version: 3.2.2
Operating System: Windows 7

Re: Fatal Error

Postby Altrea » 23. May 2018 11:19

No, the error you showed is is the following
ezSQL_mysql requires mySQL Lib to be compiled and or linked in to the PHP engine


if you Google this message you will find multiple entries about issues and solutions.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 9247
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: Fatal Error

Postby Nobbie » 23. May 2018 11:43

robbynaish wrote:And on godaddy it works perfectly.


Does godaddy run PHP7? I dont think so.

robbynaish wrote:Th error say that can't find Ezsql library...


NO! It does not, that is the error you published here:

ezSQL_mysql requires mySQL Lib to be compiled and or linked in to the PHP engine


Nothing about "cant find EZsql library". "Requires mysql to compiled and or linked in to the PHP engine", thats your error. And that is due to PHP7, as PHP7 does NOT support mySQL Lib anymore. You have to install a Xampp 5.x release instead.
Nobbie
 
Posts: 10421
Joined: 09. March 2008 13:04

Re: Fatal Error

Postby Altrea » 23. May 2018 12:22

or update ezSQL => https://github.com/ezSQL/ezSQL/blob/mas ... mysqli.php
and/or use ezSQL mysqli dabatasedriver instead of mysql Lib for ezSQL
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 9247
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64


Return to PHP

Who is online

Users browsing this forum: No registered users and 5 guests