Fatal error: Call to undefined function session_id() when installing

Luis

I've installed opencart version 2.2.0.0 in a FreeBSD server 10.3-RELEASE-p3. Followed the installation instructions for Linux of the install.txt file.

In step 5, Visit the store homepage e.g. http://www.example.com or http://www.example.com/store/, what I get in response is a Fatal error:

Fatal error: Call to undefined function session_id() in /usr/local/www/opencart/system/library/session.php on line 23

This happens when installing both from the FreeBSD package and also from source. Any ideas?

IRON

It seems you don't have session PHP extension. Try to run:

php -m | grep session

In case empty output, install php-session extension via pkg or ports tree.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Fatal error: Uncaught Error: Call to undefined function mysql_connect()

PHP Fatal error: Call to undefined function imagecreatefrompng()

Deployer - Fatal error: Call to undefined function server()

Fatal error: Uncaught Error: Call to undefined function - have to use $this

Call to undefined function iconv() fatal error - Suitecrm

PHP Fatal error: Call to undefined function?

Fatal error: Uncaught Error: Call to undefined function bcadd()

getTimestamp() - Fatal Error when call to a member function

CodeIgniter PHP Fatal error: Call to undefined function form_open()

Fatal error: Uncaught Error: Call to undefined function get_option()

Fatal Error: Call to undefined function curl()

Caught fatal error: Call to undefined function geoip_db_avail()?

Fatal error: Call to undefined function sqlsrv_connect()

Fatal error: Call to undefined function bindParam()

WAMP: Fatal error: Call to undefined function mb_detect_encoding() .... When going to localhost/phpmyadmin

phpMyAdmin Fatal error: Call to undefined function __()

php strpos Fatal error: Call to undefined function when using more than one if statement

PHP to Postgres - Fatal error: Call to undefined function pg_connect()

Fatal error: Call to undefined function

PHP Fatal error : Call to undefined function mysql_connect()

PHP Fatal error: Call to undefined function curl_init()

When I call controller action using cronjob. It's give fatal error like "Call to undefined function mysqli_init()"

Fatal error: Call to undefined function when declared [different]

Fatal error: Uncaught Error: Call to undefined function mysqli_connect()

Fatal error: Call to undefined function runQuery()

Fatal error: Uncaught Error: Call to undefined function mysql_close()

Fatal error: Uncaught Error: Call to undefined function redirect() PHP logout session

Fatal error: Uncaught Error: Call to undefined function header() - Beginner question

Fatal error: Uncaught Error: Call to undefined function get_header()