I am new to this framework and am having some issues
with it. I have spent some couple of hours googling. I went
to the CodeIgniter IRC channel to search for an answer but it's like
everyone was too busy to answer me.
Helping me here is the error code:
A PHP Error was encountered
Severity: Warning
Message: mkdir(): Permission denied
Filename: drivers/Session_files_driver.php
Line Number: 136
Backtrace:
File: /var/www/vhosts/barklaynew/barklay.online/httpdocs/application/core/My_Controller.php
Line: 11
Function: __construct
File: /var/www/vhosts/barklaynew/barklay.online/httpdocs/application/controllers/Welcome.php
Line: 6
Function: __construct
File: /var/www/vhosts/barklaynew/barklay.online/httpdocs/index.php
Line: 315
Function: require_once
An uncaught Exception was encountered
Type: Exception
Message: Session: Configured save path '/var/www/vhosts/barklaynew/barklay.online/httpdocs/application/session' is not a directory, doesn't exist or cannot be created.
Filename: /var/www/vhosts/barklaynew/barklay.online/httpdocs/system/libraries/Session/drivers/Session_files_driver.php
Line Number: 138
Backtrace:
File: /var/www/vhosts/barklaynew/barklay.online/httpdocs/application/core/My_Controller.php
Line: 11
Function: __construct
File: /var/www/vhosts/barklaynew/barklay.online/httpdocs/application/controllers/Welcome.php
Line: 6
Function: __construct
File: /var/www/vhosts/barklaynew/barklay.online/httpdocs/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Core Warning
Message: Module 'mysql' already loaded
Filename: Unknown
Line Number: 0
Backtrace:
A PHP Error was encountered
Severity: Warning
Message: file_exists(): open_basedir restriction in effect. File(0c3r9i4i6834ocdlreqk3upofrig52cs) is not within the allowed path(s): (/var/www/vhosts/barklaynew/barklay.online:/usr/share/php:/usr/share/pear)
Filename: drivers/Session_files_driver.php
Line Number: 170
Backtrace:
A PHP Error was encountered
Severity: Warning
Message: fopen(): open_basedir restriction in effect. File(0c3r9i4i6834ocdlreqk3upofrig52cs) is not within the allowed path(s): (/var/www/vhosts/barklaynew/barklay.online:/usr/share/php:/usr/share/pear)
Filename: drivers/Session_files_driver.php
Line Number: 172
Backtrace:
A PHP Error was encountered
Severity: Warning
Message: fopen(0c3r9i4i6834ocdlreqk3upofrig52cs): failed to open stream: Operation not permitted
Filename: drivers/Session_files_driver.php
Line Number: 172
Backtrace:
A PHP Error was encountered
Severity: Warning
Message: Unknown: Failed to write session data (user). Please verify that the current setting of session.save_path is correct (0;660;/var/www/vhosts/barklaynew/barklay.online/phptmpdir)
Filename: Unknown
Line Number: 0
Backtrace:
I just lauch the site, but I don't really known how to fix it, here is the site link http://www.barklay.online/
The folder you have set for your sessions does not yet exist, and cannot be created by the user running PHP for your web server.
Run this to create the sessions folder
cd /var/www/vhosts/barklaynew/barklay.online/httpdocs/application/
mkdir sessions
Related
I am receiving this error in CodeIgniter app on localhost
Here are the error lines:
An uncaught Exception was encountered
Type: Error
Message: Call to undefined function mysqli_init()
Filename: C:\xampp\htdocs\domainswat.com\system\database\drivers\mysqli\mysqli_driver.php
Line Number: 135
Backtrace:
File: C:\xampp\htdocs\domainswat.com\application\controllers\Login.php
Line: 17
Function: __construct
File: C:\xampp\htdocs\domainswat.com\index.php
Line: 315
Function: require_once
I have already changed the "mysql" to "mysqli" in my code but error persists.
When trying to access phpMyAdmin, it says that mysqli extension is missing but it is not missing.
I also checked the config file and it refers to that DLL file.
So I am out of ideas here...
edit yours php config php.ini
search for mysqli and delete semicolon ; it look likes this
;extension=php_ldap.dll
extension=php_mbstring.dll
extension=php_mysqli.dll
;extension=php_oci8_12c.dll
;extension=php_openssl.dll
A PHP Error was encountered
Severity: Warning
Message: fopen(/var/cpanel/php/sessions/ea-php74/ci_session8c890fa70e8c2a9726a00d721269c80de8117d50): failed to open stream: No such file or directory
Filename: drivers/Session_files_driver.php
Line Number: 174
Backtrace:
File: /home/propert6/public_html/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: session_start(): Failed to read session data: user (path: /var/cpanel/php/sessions/ea-php74)
Filename: Session/Session.php
Line Number: 143
Backtrace:
File: /home/propert6/public_html/index.php
Line: 315
Function: require_once
What is listed in the php.ini file for session.save_path ?
Most likely you'd find this (depending on your configuration) in cPanel>>Software>>MultiPHP INI Editor
You can create a php info page to get this information (importanly whether the value is set locally or globally for that version of PHP) as well as the .ini file files loaded into the configuration
You may also want to check the following:
/home/$user/public_html/.htaccess
/home/user/public_html/*.ini
my site is working fine on my local server
but when i upload it on my host it shows this error
A PHP Error was encountered
Severity: Warning
Message: require_once(/home/content/49/7388549/html/awt/system/database/drivers/PDO/PDO_driver.php) [function.require-once]: failed to open stream: No such file or directory
Filename: database/DB.php
Line Number: 140
Fatal error: require_once() [function.require]: Failed opening required '/home/content/49/7388549/html/awt/system/database/drivers/PDO/PDO_driver.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/49/7388549/html/awt/system/database/DB.php on line 140
any help would be appreciated
Thanks in advance
Please kindly check system/database/drivers/PDO/PDO_driver.php file is present or not in your application. If not the copy this file to the location
I'm looking for how to integrate the QuickBase API in a website developed with the CodeIgniter framework
I esayer add the api as a library
$this->load->library('quickbase', 'login','password', true, 'table');
and when I do I call displays error
A PHP Error was encountered
Severity: Warning
Message: Missing argument 1 for QuickBase::__construct(), called in /var/www/vhosts/************/httpdocs/system/core/Loader.php on line 1099 and defined
Filename: libraries/quickbase.php
Line Number: 43
A PHP Error was encountered
Severity: Warning
Message: Missing argument 2 for QuickBase::__construct(), called in /var/www/vhosts/**************/httpdocs/system/core/Loader.php on line 1099 and defined
Filename: libraries/quickbase.php
Line Number: 43
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: un
Filename: libraries/quickbase.php
Line Number: 45
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: pw
Filename: libraries/quickbase.php
Line Number: 49
thank you in advance
Your error is because the Quickbase API file(s) does not have the same calling format as a CodeIgniter library needs to work with the load->library syntax. You will need to read up on the Creating Libraries section of the manual and then create your own CodeIgniter compatible Quickbase library that includes the file(s) for the Quickbase API.
I am using TCPDF, but i encountered these problem.
please give me solution.
A PHP Error was encountered
Severity: Notice
Message: Use of undefined constant K_CELL_HEIGHT_RATIO - assumed 'K_CELL_HEIGHT_RATIO'
Filename: libraries/Loader.php
Line Number: 928
A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at D:\xampp\htdocs\small projects\project1\system\libraries\Exceptions.php:166)
Filename: tcpdf/tcpdf.php
Line Number: 8060
TCPDF ERROR: Some data has already been output to browser, can't send PDF file
Check out this. You probably doing it wrong.
Check this CodeIgniter Forum
just comment line 3 to 8 on libraries/pdf.php
your code should look like this:
/*
override the default TCPDF config file
if(!defined(‘K_TCPDF_EXTERNAL_CONFIG’))
{
define(‘K_TCPDF_EXTERNAL_CONFIG’,
TRUE); }
*/