How to resolve these errors?
A PHP Error was encountered
Severity: Warning
Message: mkdir(): Permission denied
Filename: drivers/Session_files_driver.php
Line Number: 136
Backtrace:
File: /var/www/html/application/controllers/Home.php
Line: 8
Function: __construct
File: /var/www/html/index.php
Line: 315
Function: require_once
Warning: Uncaught Exception: Session: Configured save path '/var/www/html/application/cache/session' is not a directory, doesn't exist or cannot be created. in /var/www/html/system/libraries/Session/drivers/Session_files_driver.php:138 Stack trace: #0 [internal function]: CI_Session_files_driver->open('/var/www/html/a...', 'ci_session') #1 /var/www/html/system/libraries/Session/Session.php(143): session_start() #2 /var/www/html/system/core/Loader.php(1281): CI_Session->__construct() #3 /var/www/html/system/core/Loader.php(1174): CI_Loader->_ci_init_library('Session', 'CI_', NULL, 'session') #4 /var/www/html/system/core/Loader.php(1037): CI_Loader->_ci_load_stock_library('Session', 'Session/', NULL, NULL) #5 /var/www/html/system/core/Loader.php(1082): CI_Loader->_ci_load_library('Session', NULL, NULL) #6 /var/www/html/system/core/Loader.php(218): CI_Loader->_ci_load_library('Session', NULL, NULL) #7 /var/www/html/system/core/Loader.php(202): CI_Loader->library('session', NULL) #8 /var/www/html/system/core/Loader.php(13 in /var/www/html/system/libraries/Session/drivers/Session_files_driver.php on line 138
Fatal error: session_start(): Failed to initialize storage module: user (path: /var/www/html/application/cache/session) in /var/www/html/system/libraries/Session/Session.php on line 143
A PHP Error was encountered
Severity: Error
Message: session_start(): Failed to initialize storage module: user (path: /var/www/html/application/cache/session)
Filename: Session/Session.php
Line Number: 143
Backtrace:
if you're using an apache2-Webserver, check the directory permissions for /var/www/html/application/cache/session. It has to be legible and writable for www-data user.
To set the permissions, simply run sudo chown -R www-data /var/www/html and sudo chmod -R u+rw /var/www/html. This sets the directory permissions recursively to your webroot and all subdirectories.
Related
I allocate enough memory for this. in php.ini memory_limit = 3G I don't understand why this happens. If anyone has come across this problem.
When I run рorizon with these settings.
'defaults' => [
'supervisor-1' => [
'connection' => 'redis',
'queue' => ['default'],
'balance' => 'auto',
'maxProcesses' => 1,
'maxTime' => 0,
'maxJobs' => 0,
'memory' => 2048,
'tries' => 1,
'timeout' => 200,
'nice' => 0,
],
],
'environments' => [
'local' => [
'supervisor-1' => [
'maxProcesses' => 400,
],
],
],
I am getting next errors:
Stack trace:
#0 /var/www/html/vendor/composer/ClassLoader.php(571): include()
#1 /var/www/html/vendor/composer/ClassLoader.php(428): Composer\Autoload\includeFile()
#2 /var/www/html/vendor/symfony/console/Input/ArgvInput.php(41): Composer\Autoload\ClassLoader->loadClass()
#3 /var/www/html/vendor/composer/ClassLoader.php(571): include('...')
#4 /var/www/html/vendor/composer/ClassLoader.php(428): Composer\Autoload\includeFile()
#5 /var/www/html/artisan(36): Composer\Autoload\ClassLoader->loadClass()
#6 {main}
thrown in /var/www/html/vendor/symfony/console/Input/Input.php on line 28
PHP Warning: require(/var/www/html/vendor/composer/autoload_static.php): Failed to open stream: Input/output error in /var/www/html/vendor/composer/autoload_real.php on line 33
PHP Fatal error: Uncaught Error: Failed opening required '/var/www/html/vendor/composer/autoload_static.php' (include_path='.:/usr/share/php') in /var/www/html/vendor/composer/autoload_real.php:33
Stack trace:
#0 /var/www/html/vendor/autoload.php(7): ComposerAutoloaderInit178bef08a42940d39635a033dd116c7e::getLoader()
#1 /var/www/html/artisan(18): require('...')
#2 {main}
thrown in /var/www/html/vendor/composer/autoload_real.php on line 33
PHP Warning: require_once(/var/www/html/vendor/composer/autoload_real.php): Failed to open stream: Input/output error in /var/www/html/vendor/autoload.php on line 5
PHP Fatal error: Uncaught Error: Failed opening required '/var/www/html/vendor/composer/autoload_real.php' (include_path='.:/usr/share/php') in /var/www/html/vendor/autoload.php:5
Stack trace:
#0 /var/www/html/artisan(18): require()
#1 {main}
thrown in /var/www/html/vendor/autoload.php on line 5
PHP Warning: include(/var/www/html/vendor/vlucas/phpdotenv/src/Repository/Adapter/AdapterInterface.php): Failed to open stream: Input/output error in /var/www/html/vendor/composer/ClassLoader.php on line 571
PHP Warning: include(): Failed opening '/var/www/html/vendor/composer/../vlucas/phpdotenv/src/Repository/Adapter/AdapterInterface.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/vendor/composer/ClassLoader.php on line 571
PHP Warning: include(/var/www/html/vendor/laravel/framework/src/Illuminate/Support/Reflector.php): Failed to open stream: Input/output error in /var/www/html/vendor/composer/ClassLoader.php on line 571
PHP Warning: include(): Failed opening '/var/www/html/vendor/composer/../laravel/framework/src/Illuminate/Support/Reflector.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/vendor/composer/ClassLoader.php on line 571
PHP Fatal error: Uncaught Error: Class "Illuminate\Support\Reflector" not found in /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:227
I need to process a large number of requests and 400 is the optimal number of processes for proper operation
But when the maxProcess => 7 parameter is set, everything works fine. But it's too slow
All files are in place.
-rwxrwxrwx 1 sail sail 779502 Mar 12 22:33 autoload_static.php
-rwxrwxrwx 1 sail sail 2629 Mar 12 18:41 autoload_real.php
-rwxrwxrwx 1 sail sail 4453 Mar 8 16:17 Reflector.php
I am facing these errors while accessing Magento folder from XAMPP (localhost/magento):
Fatal error: Uncaught Error: Function name must be a string in
C:\xampp\htdocs\em0126\app\code\core\Mage\Core\Model\Layout.php:555
Stack trace: #0
C:\xampp\htdocs\em0126\app\code\core\Mage\Core\Controller\Varien\Action.php(390):
Mage_Core_Model_Layout->getOutput() #1
C:\xampp\htdocs\em0126\app\code\core\Mage\Install\controllers\WizardController.php(120):
Mage_Core_Controller_Varien_Action->renderLayout() #2
C:\xampp\htdocs\em0126\app\code\core\Mage\Core\Controller\Varien\Action.php(418):
Mage_Install_WizardController->beginAction() #3
C:\xampp\htdocs\em0126\app\code\core\Mage\Core\Controller\Varien\Router\Standard.php(250):
Mage_Core_Controller_Varien_Action->dispatch('begin') #4
C:\xampp\htdocs\em0126\app\code\core\Mage\Core\Controller\Varien\Front.php(172):
Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http)) #5 > C:\xampp\htdocs\em0126\app\code\core\Mage\Core\Model\App.php(354): Mage_Core_Controller_Varien_Front->dispatch() #6
C:\xampp\htdocs\em0126\app\Mage.php(683): Mage_Core_Mo in
C:\xampp\htdocs\em0126\app\code\core\Mage\Core\Model\Layout.php on
line 555
Your solution
Fatal error: Uncaught Error: Function name must be a string in ...
app\code\core\Mage\Core\Model\Layout.php:555 ...
This error was easy to fix because the problem was in the following line:
$out .= $this->getBlock($callback[0])->$callback[1]();
Instead it should be:
$out .= $this->getBlock($callback[0])->{$callback[1]}();
find your detail solution here on below given link
http://www.code007.ro/making-work-magento-with-php-7-rc1/
Its due to PHP7
It's not recommended to edit the core file. We will override it.
Copy this file app/code/core/Mage/Core/Model/Layout.php into app/code/local/Mage/Core/Model/Layout.php
Change code in app/code/local/Mage/Core/Model/Layout.php file (line # 555)
$out .= $this->getBlock($callback[0])->$callback[1]();
To:
$out .= $this->getBlock($callback[0])->{$callback[1]}();
Changed the line 555 to:
$out .= $this->getBlock($callback[0])->{$callback[1]}();
It works. But one thing I'm not sure of if this is really a php7. I'm running this on my website with same files and configurations on the same server and it's working with no issues without changing that line.
Go to app\code\core\Mage\Core\Model\Layout.php line no 555 and
change $callback[1] to {$callback[1]}
it is a php7 issue since when i upgraded from 5.6 to 7.0 i got this error. to fixe it i edited core file (hope a patch will come soon) either like mentionned in other ansewers before or like below:
Go to app\code\core\Mage\Core\Model\Layout.php line no 555
$method = $callback[1];
$out .= $this->getBlock($callback[0])->$method();
I am new with using Chef. I did create a very simple cookbook as zip file to S3 but I get this error always
[2015-12-07T10:29:53+00:00] INFO: Not needed with Chef 11.x (x >= 8) anymore.
[2015-12-07T10:29:53+00:00] INFO: Processing package[git] action install (opsworks_custom_cookbooks::checkout line 21)
[2015-12-07T10:29:54+00:00] INFO: Processing package[perl-Digest-HMAC] action install (opsworks_custom_cookbooks::checkout line 22)
[2015-12-07T10:29:54+00:00] INFO: Processing package[unzip] action install (opsworks_custom_cookbooks::checkout line 24)
[2015-12-07T10:29:54+00:00] INFO: Processing template[/root/.s3curl] action create (opsworks_custom_cookbooks::checkout line 24)
[2015-12-07T10:29:54+00:00] INFO: template[/root/.s3curl] created file /root/.s3curl
[2015-12-07T10:29:54+00:00] INFO: template[/root/.s3curl] updated file contents /root/.s3curl
[2015-12-07T10:29:54+00:00] INFO: template[/root/.s3curl] mode changed to 600
[2015-12-07T10:29:54+00:00] INFO: Processing directory[/tmp/opsworks20151207-2439-1lgn8x6] action create (opsworks_custom_cookbooks::checkout line 32)
[2015-12-07T10:29:54+00:00] INFO: directory[/tmp/opsworks20151207-2439-1lgn8x6] mode changed to 755
[2015-12-07T10:29:54+00:00] INFO: Processing s3_file[/tmp/opsworks20151207-2439-1lgn8x6/archive] action create (opsworks_custom_cookbooks::checkout line 38)
[2015-12-07T10:29:54+00:00] INFO: Processing chef_gem[rest-client] action install (s3_file::dependencies line 1)
[2015-12-07T10:29:54+00:00] WARN: #<RestClient::RawResponse:0x0055dd47315478 #net_http_res=#<Net::HTTPForbidden 403 Forbidden readbody=true>, #args={:method=>"GET", :url=>"https://jb-chef-cookbook.s3.amazonaws.com/cookbooks+3.zip", :raw_response=>true}, #file=#<Tempfile:/tmp/rest-client20151207-2439-1b2rwtr>, #code=403>
[2015-12-07T10:29:59+00:00] WARN: #<RestClient::RawResponse:0x0055dd474094d8 #net_http_res=#<Net::HTTPForbidden 403 Forbidden readbody=true>, #args={:method=>"GET", :url=>"https://jb-chef-cookbook.s3.amazonaws.com/cookbooks+3.zip", :raw_response=>true}, #file=#<Tempfile:/tmp/rest-client20151207-2439-pvv1v>, #code=403>
[2015-12-07T10:30:04+00:00] WARN: #<RestClient::RawResponse:0x0055dd474b7268 #net_http_res=#<Net::HTTPForbidden 403 Forbidden readbody=true>, #args={:method=>"GET", :url=>"https://jb-chef-cookbook.s3.amazonaws.com/cookbooks+3.zip", :raw_response=>true}, #file=#<Tempfile:/tmp/rest-client20151207-2439-5e98l1>, #code=403>
[2015-12-07T10:30:09+00:00] WARN: #<RestClient::RawResponse:0x0055dd481acf18 #net_http_res=#<Net::HTTPForbidden 403 Forbidden readbody=true>, #args={:method=>"GET", :url=>"https://jb-chef-cookbook.s3.amazonaws.com/cookbooks+3.zip", :raw_response=>true}, #file=#<Tempfile:/tmp/rest-client20151207-2439-10607v8>, #code=403>
[2015-12-07T10:30:14+00:00] WARN: #<RestClient::RawResponse:0x0055dd48279f90 #net_http_res=#<Net::HTTPForbidden 403 Forbidden readbody=true>, #args={:method=>"GET", :url=>"https://jb-chef-cookbook.s3.amazonaws.com/cookbooks+3.zip", :raw_response=>true}, #file=#<Tempfile:/tmp/rest-client20151207-2439-1659itz>, #code=403>
[2015-12-07T10:30:19+00:00] FATAL: #<RestClient::RawResponse:0x0055dd48300658 #net_http_res=#<Net::HTTPForbidden 403 Forbidden readbody=true>, #args={:method=>"GET", :url=>"https://jb-chef-cookbook.s3.amazonaws.com/cookbooks+3.zip", :raw_response=>true}, #file=#<Tempfile:/tmp/rest-client20151207-2439-1y4w8iq>, #code=403>
================================================================================
Error executing action `create` on resource 's3_file[/tmp/opsworks20151207-2439-1lgn8x6/archive]'
================================================================================
RestClient::Forbidden
---------------------
403 Forbidden
Cookbook Trace:
---------------
/var/lib/aws/opsworks/cache.stage1/cookbooks/s3_file/libraries/s3_file.rb:101:in `block in do_request'
/var/lib/aws/opsworks/cache.stage1/cookbooks/s3_file/libraries/s3_file.rb:83:in `rescue in with_region_detect'
/var/lib/aws/opsworks/cache.stage1/cookbooks/s3_file/libraries/s3_file.rb:78:in `with_region_detect'
/var/lib/aws/opsworks/cache.stage1/cookbooks/s3_file/libraries/s3_file.rb:92:in `do_request'
/var/lib/aws/opsworks/cache.stage1/cookbooks/s3_file/libraries/s3_file.rb:124:in `block in get_from_s3'
/var/lib/aws/opsworks/cache.stage1/cookbooks/s3_file/libraries/s3_file.rb:122:in `each'
/var/lib/aws/opsworks/cache.stage1/cookbooks/s3_file/libraries/s3_file.rb:122:in `get_from_s3'
/var/lib/aws/opsworks/cache.stage1/cookbooks/s3_file/providers/default.rb:65:in `block in class_from_file'
Resource Declaration:
---------------------
# In /var/lib/aws/opsworks/cache.stage1/cookbooks/scm_helper/libraries/s3.rb
38: s3_file "#{tmpdir}/archive" do
39: bucket s3_bucket
40: remote_path s3_key
41: aws_access_key_id scm_options[:user]
42: aws_secret_access_key scm_options[:password]
43: owner "root"
44: group "root"
45: mode "0600"
46: # per default it's host-style addressing
47: # but older versions of rest-client doesn't support host-style addressing with `_` in bucket name
48: s3_url "https://s3.amazonaws.com/#{s3_bucket}" if s3_bucket.include?("_")
49: action :create
50: end
51:
52: execute 'extract files' do
53: command "#{node[:opsworks_agent][:current_dir]}/bin/extract #{tmpdir}/archive"
54: end
55:
56: execute 'create git repository' do
57: cwd "#{tmpdir}/archive.d"
58: command "find . -type d -name .git -exec rm -rf {} \\;; find . -type f -name .gitignore -exec rm -f {} \\;; git init; git add .; git config user.name 'AWS OpsWorks'; git config user.email 'root#localhost'; git commit -m 'Create temporary repository from downloaded contents.'"
59: end
60:
61: "#{tmpdir}/archive.d"
62: end
63: end
64: end
Compiled Resource:
------------------
# Declared in /var/lib/aws/opsworks/cache.stage1/cookbooks/scm_helper/libraries/s3.rb:38:in `prepare_s3_checkouts'
s3_file("/tmp/opsworks20151207-2439-1lgn8x6/archive") do
action [:create]
retries 0
retry_delay 2
cookbook_name "opsworks_custom_cookbooks"
recipe_name "checkout"
bucket "jb-chef-cookbook"
remote_path "cookbooks+3.zip"
owner "root"
group "root"
mode "0600"
path "/tmp/opsworks20151207-2439-1lgn8x6/archive"
end
[2015-12-07T10:30:19+00:00] INFO: Running queued delayed notifications before re-raising exception
[2015-12-07T10:30:19+00:00] ERROR: Running exception handlers
[2015-12-07T10:30:19+00:00] ERROR: Exception handlers complete
[2015-12-07T10:30:19+00:00] FATAL: Stacktrace dumped to /var/lib/aws/opsworks/cache.stage1/chef-stacktrace.out
[2015-12-07T10:30:19+00:00] ERROR: 403 Forbidden
[2015-12-07T10:30:19+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
What is missing ?! any advices ? thanks
The S3 file you are trying to access doesn't have permissions set up correctly.
Thanks it was my ACLs. I fixed it and now i had different problem !
[2015-12-08T13:07:18+00:00] INFO: HTTP Request Returned 404 Not Found: Object not found: /reports/nodes/c2.localdomain/runs
[2015-12-08T13:07:18+00:00] INFO: HTTP Request Returned 412 Precondition Failed: No such cookbook: docker
Missing Cookbooks:
No such cookbook: docker
[2015-12-08T13:07:18+00:00] ERROR: Running exception handlers
[2015-12-08T13:07:18+00:00] ERROR: Exception handlers complete
[2015-12-08T13:07:18+00:00] FATAL: Stacktrace dumped to /var/lib/aws/opsworks/cache.stage2/chef-stacktrace.out
[2015-12-08T13:07:18+00:00] ERROR: 412 "Precondition Failed"
[2015-12-08T13:07:18+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
When I test my website in localhost it works correctly.
However, when I host it on the server it sometimes gives an error when I click on a link to another page. If I then refresh the page the error is gone.
This is the error given:
A PHP Error was encountered
Severity: Warning
Message: unlink(/tmp/ci_session56b5fa78806f1c156117b29a0740a0758f622d7d) [function.unlink]: Operation not permitted
Filename: drivers/Session_files_driver.php
Line Number: 354
Backtrace:
File: /home/wwwmyburgerlabco/public_html/mbl/application/controllers/mbl-admin/Site_admin.php
Line: 6
Function: __construct
File: /home/wwwmyburgerlabco/public_html/mbl/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: unlink(/tmp/ci_sessiona3989ff9d3733b42f94dcc29bde8fcdaac8bcdd6) [function.unlink]: Operation not permitted
Filename: drivers/Session_files_driver.php
Line Number: 354
Backtrace:
File: /home/wwwmyburgerlabco/public_html/mbl/application/controllers/mbl-admin/Site_admin.php
Line: 6
Function: __construct
File: /home/wwwmyburgerlabco/public_html/mbl/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: unlink(/tmp/ci_session02fd76ea7ba9c61f8121a51816371298b37caffc) [function.unlink]: Operation not permitted
Filename: drivers/Session_files_driver.php
Line Number: 354
Backtrace:
File: /home/wwwmyburgerlabco/public_html/mbl/application/controllers/mbl-admin/Site_admin.php
Line: 6
Function: __construct
File: /home/wwwmyburgerlabco/public_html/mbl/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: unlink(/tmp/ci_sessionb918fe8d8e5e68e283cb237f09489808bd770bf8) [function.unlink]: Operation not permitted
Filename: drivers/Session_files_driver.php
Line Number: 354
Backtrace:
File: /home/wwwmyburgerlabco/public_html/mbl/application/controllers/mbl-admin/Site_admin.php
Line: 6
Function: __construct
File: /home/wwwmyburgerlabco/public_html/mbl/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: unlink(/tmp/ci_session95ad2c5e9e679c17864def621d85a11a3c02333a) [function.unlink]: Operation not permitted
Filename: drivers/Session_files_driver.php
Line Number: 354
Backtrace:
File: /home/wwwmyburgerlabco/public_html/mbl/application/controllers/mbl-admin/Site_admin.php
Line: 6
Function: __construct
File: /home/wwwmyburgerlabco/public_html/mbl/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: unlink(/tmp/ci_session8bf9a821db45a792cde9a215d6bd81a1fd293142) [function.unlink]: Operation not permitted
Filename: drivers/Session_files_driver.php
Line Number: 354
Backtrace:
File: /home/wwwmyburgerlabco/public_html/mbl/application/controllers/mbl-admin/Site_admin.php
Line: 6
Function: __construct
File: /home/wwwmyburgerlabco/public_html/mbl/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: unlink(/tmp/ci_session6af732ebfdc9595eb18488d6cbeb593993d3ebb9) [function.unlink]: Operation not permitted
Filename: drivers/Session_files_driver.php
Line Number: 354
Backtrace:
File: /home/wwwmyburgerlabco/public_html/mbl/application/controllers/mbl-admin/Site_admin.php
Line: 6
Function: __construct
File: /home/wwwmyburgerlabco/public_html/mbl/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: unlink(/tmp/ci_sessione100361271a683035cfce62bbed319731a18e384) [function.unlink]: Operation not permitted
Filename: drivers/Session_files_driver.php
Line Number: 354
Backtrace:
File: /home/wwwmyburgerlabco/public_html/mbl/application/controllers/mbl-admin/Site_admin.php
Line: 6
Function: __construct
File: /home/wwwmyburgerlabco/public_html/mbl/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: unlink(/tmp/ci_sessione3c47aed6a4afc9f617959e9aff657ed40c81cd7) [function.unlink]: Operation not permitted
Filename: drivers/Session_files_driver.php
Line Number: 354
Backtrace:
File: /home/wwwmyburgerlabco/public_html/mbl/application/controllers/mbl-admin/Site_admin.php
Line: 6
Function: __construct
File: /home/wwwmyburgerlabco/public_html/mbl/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: unlink(/tmp/ci_session868cfe7d9085879b8b8d778fd3e1274eef8bd4fa) [function.unlink]: Operation not permitted
Filename: drivers/Session_files_driver.php
Line Number: 354
Backtrace:
File: /home/wwwmyburgerlabco/public_html/mbl/application/controllers/mbl-admin/Site_admin.php
Line: 6
Function: __construct
File: /home/wwwmyburgerlabco/public_html/mbl/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: unlink(/tmp/ci_session293c6e415fe74c1ff4880f7e97d5a5a46e763544) [function.unlink]: Operation not permitted
Filename: drivers/Session_files_driver.php
Line Number: 354
Backtrace:
File: /home/wwwmyburgerlabco/public_html/mbl/application/controllers/mbl-admin/Site_admin.php
Line: 6
Function: __construct
File: /home/wwwmyburgerlabco/public_html/mbl/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: unlink(/tmp/ci_session060b5943e6fb48e8315024bbf3c6e03155d4ce70) [function.unlink]: Operation not permitted
Filename: drivers/Session_files_driver.php
Line Number: 354
Backtrace:
File: /home/wwwmyburgerlabco/public_html/mbl/application/controllers/mbl-admin/Site_admin.php
Line: 6
Function: __construct
File: /home/wwwmyburgerlabco/public_html/mbl/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: unlink(/tmp/ci_session011ebd239e0e88b365ec2dd0b86bd1050b8377be) [function.unlink]: Operation not permitted
Filename: drivers/Session_files_driver.php
Line Number: 354
Backtrace:
File: /home/wwwmyburgerlabco/public_html/mbl/application/controllers/mbl-admin/Site_admin.php
Line: 6
Function: __construct
File: /home/wwwmyburgerlabco/public_html/mbl/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: unlink(/tmp/ci_sessionc9098c7bb0ba0dc436d1bbbcd5939fd4a379e738) [function.unlink]: Operation not permitted
Filename: drivers/Session_files_driver.php
Line Number: 354
Backtrace:
File: /home/wwwmyburgerlabco/public_html/mbl/application/controllers/mbl-admin/Site_admin.php
Line: 6
Function: __construct
File: /home/wwwmyburgerlabco/public_html/mbl/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: unlink(/tmp/ci_session7b5fd7526aea207013790bd74e26ab43633d1594) [function.unlink]: Operation not permitted
Filename: drivers/Session_files_driver.php
Line Number: 354
Backtrace:
File: /home/wwwmyburgerlabco/public_html/mbl/application/controllers/mbl-admin/Site_admin.php
Line: 6
Function: __construct
File: /home/wwwmyburgerlabco/public_html/mbl/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: unlink(/tmp/ci_session02fa433192e4890acf50603478c95836ec7f0893) [function.unlink]: Operation not permitted
Filename: drivers/Session_files_driver.php
Line Number: 354
Backtrace:
File: /home/wwwmyburgerlabco/public_html/mbl/application/controllers/mbl-admin/Site_admin.php
Line: 6
Function: __construct
File: /home/wwwmyburgerlabco/public_html/mbl/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: unlink(/tmp/ci_session5857b16bce1f4d673a503e35185dde18859ec964) [function.unlink]: Operation not permitted
Filename: drivers/Session_files_driver.php
Line Number: 354
Backtrace:
File: /home/wwwmyburgerlabco/public_html/mbl/application/controllers/mbl-admin/Site_admin.php
Line: 6
Function: __construct
File: /home/wwwmyburgerlabco/public_html/mbl/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: unlink(/tmp/ci_sessiona07c2aa936dc838d06be2556bb1fa0e0436c2b35) [function.unlink]: Operation not permitted
Filename: drivers/Session_files_driver.php
Line Number: 354
Backtrace:
File: /home/wwwmyburgerlabco/public_html/mbl/application/controllers/mbl-admin/Site_admin.php
Line: 6
Function: __construct
File: /home/wwwmyburgerlabco/public_html/mbl/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: unlink(/tmp/ci_sessionf24303a61f7a4880b1c8a825bc215beb6af3b82b) [function.unlink]: Operation not permitted
Filename: drivers/Session_files_driver.php
Line Number: 354
Backtrace:
File: /home/wwwmyburgerlabco/public_html/mbl/application/controllers/mbl-admin/Site_admin.php
Line: 6
Function: __construct
File: /home/wwwmyburgerlabco/public_html/mbl/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: unlink(/tmp/ci_sessionef71fce1928aa6f4df36f1993aa072f1f0d228bb) [function.unlink]: Operation not permitted
Filename: drivers/Session_files_driver.php
Line Number: 354
Backtrace:
File: /home/wwwmyburgerlabco/public_html/mbl/application/controllers/mbl-admin/Site_admin.php
Line: 6
Function: __construct
File: /home/wwwmyburgerlabco/public_html/mbl/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: unlink(/tmp/ci_session2bbba3d6e4471a259431226a74c36f8678fb7510) [function.unlink]: Operation not permitted
Filename: drivers/Session_files_driver.php
Line Number: 354
Backtrace:
File: /home/wwwmyburgerlabco/public_html/mbl/application/controllers/mbl-admin/Site_admin.php
Line: 6
Function: __construct
File: /home/wwwmyburgerlabco/public_html/mbl/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: unlink(/tmp/ci_session28c2208351dedf2d4fb609395d9745d54c5edbdb) [function.unlink]: Operation not permitted
Filename: drivers/Session_files_driver.php
Line Number: 354
Backtrace:
File: /home/wwwmyburgerlabco/public_html/mbl/application/controllers/mbl-admin/Site_admin.php
Line: 6
Function: __construct
File: /home/wwwmyburgerlabco/public_html/mbl/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: unlink(/tmp/ci_session699bcf86dc0a4eb6447bed8405f2be724b0bfeba) [function.unlink]: Operation not permitted
Filename: drivers/Session_files_driver.php
Line Number: 354
Backtrace:
File: /home/wwwmyburgerlabco/public_html/mbl/application/controllers/mbl-admin/Site_admin.php
Line: 6
Function: __construct
File: /home/wwwmyburgerlabco/public_html/mbl/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: unlink(/tmp/ci_sessiona6a071939bf256531d583c4c72179e4f9a20df4b) [function.unlink]: Operation not permitted
Filename: drivers/Session_files_driver.php
Line Number: 354
Backtrace:
File: /home/wwwmyburgerlabco/public_html/mbl/application/controllers/mbl-admin/Site_admin.php
Line: 6
Function: __construct
File: /home/wwwmyburgerlabco/public_html/mbl/index.php
Line: 292
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: unlink(/tmp/ci_session40467c8499001305ce4650a37b362855711d7898) [function.unlink]: Operation not permitted
Filename: drivers/Session_files_driver.php
Line Number: 354
Backtrace:
File: /home/wwwmyburgerlabco/public_html/mbl/application/controllers/mbl-admin/Site_admin.php
Line: 6
Function: __construct
File: /home/wwwmyburgerlabco/public_html/mbl/index.php
Line: 292
Function: require_once
Generally on a shared host the tmp folder of the php installation is not accessible, and therefore CodeIgniter is unable to record the session.
You can change the session save path to your relative site path to fix this.
Go to config.php and change
$config['sess_save_path'] = NULL;
to
$config['sess_save_path'] = BASEPATH . 'application/cache/';
Make sure the cache folder has a permission of 777.
Im trying to use propel ORM with sympfony v-2.7
In my composer I've added this line
"propel/propel-bundle": "^1.4",
and installed this package successfully.
Then I load the Bundle into my karnel using this
$bundles = array(
new Propel\PropelBundle\PropelBundle(),
);
My config.yml settings
propel:
path: "%kernel.root_dir%/../vendor/propel"
phing_path: "%kernel.root_dir%/../vendor/phing"
logging: %kernel.debug%
dbal:
driver: %database_driver%
user: %database_user%
password: %database_password%
dsn: %database_driver%:host=%database_host%;dbname=%database_name%;charset=UTF8
options: {}
attributes: {}
But when I try to access- http://localhost/my-serp/web/
I got this Error
FatalErrorException in PropelBundle.php line 29:
Compile Error: Propel\PropelBundle\PropelBundle::boot(): Failed opening required 'D:\wamp\www\my-serp
\app/../vendor/propel/runtime/lib/Propel.php' (include_path='D:\wamp\www\my- serp\vendor/phing/phing/classes;D:\wamp
\www\my-serp\vendor/propel/propel1/runtime/lib;D:\wamp\www\my- serp\vendor/propel/propel1/generator/lib;.;C:\php\pear')
in PropelBundle.php line 29
at PropelBundle->boot() in bootstrap.php.cache line 2414
at Kernel->boot() in bootstrap.php.cache line 2442
at Kernel->handle() in app_dev.php line 28
at {main}() in app_dev.php line 0
I follow the documentation from github, can anybody say me what i've missed ??
Check/change your propel path to:
path: "%kernel.root_dir%/../vendor/propel/propel1"