I am trying to delete a file stored in app_folder/storage/app/images/business/filename_here.png using the following code:
Storage::delete(storage_path('app/images/business/'.$business->logo));
The error that I get is the following:
FileNotFoundException in Filesystem.php line 381:
File not found at path: home/vagrant/Code/app_folder/storage/app/images/business/1_logo.png
The problem is that the path that is displayed is absolutely correct, the filename also. Any ideas ?
Related
When I try to export the product, I get the following error: No valid data sent. In the error_log file, I found the following error:
Call to undefined method
Mage_Catalog_Model_Product_Attribute_Backend_Price::getAllOptions() in
/app/code/core/Mage/ImportExport/Model/Export/Entity/Abstract.php on
line 369
In my case this problem occured because my app/etc/config.xml file was missing. Try to see if your XML's config files are there.
I have tried to change my app name from E2demo2 to other name . but after that it shows error that E2DEMO2-SWIFT FILE not found. why?
I'm using mpdf in my codeigniter web app for converting one of my view as pdf and to attach it while sending email. I've downloaded and moved mpdf library to the library folder. But when i try to email the pdf, i'm getting the following warning:
A PHP Error was encountered
Severity: Warning
Message: require_once(/application/libraries/mpdf/includes/functions.php): failed to open stream: No such file or directory
Filename: mpdf/mpdf.php
Line Number: 55
But actually functions.php file is present in the `mpdf/includes/' folder. Can anyone find where am going wrong?
Use the APPPATH constant like this
require_once(APPATH."libraries/mpdf/includes/functions.php");
use this
require_once(APPPATH.'libraries/mpdf/includes/functions.php');
or
require_once(FCPATH.'application/libraries/mpdf/includes/functions.php');
The error is because Linux is case-sensitive in file names. Review that aspect in detail.
This is my first time using authentication library. I followed this post to install tank auth. But there is something wrong at http://localhost/codeigniter/index.php/auth when I try to access it. It gives me some lines in the page:
A PHP Error was encountered
Severity: Warning
Message: require_once(phpass-0.1/PasswordHash.php): failed to open
stream: No such file or directory
Filename: libraries/Tank_auth.php
Line Number: 3
I tried to edit the third line of ~/codeigniter/application/libraries/Tank_auth.php and nothing good happened. I'm sure that PasswordHash.php exists in phpass-0.1 directory.
Could anyone help me or shed some light?
The problem is definitely in that the file PasswordHash.php cannot be found in this line of code:
require_once(phpass-0.1/PasswordHash.php)
Confirm the file exists in the location you think it does, and I hope you are using quotes:
require_once('file.php');
A PHP Error was encountered
Severity: Notice
Message: Undefined index: log_threshold
Filename: codeigniter/Common.php
Line Number: 246
in my CI Project when i work locally it works fine but when i upload it to server it gives this error
serverlink http://outshinebd.com/sm/
Please some body help me
Thanks
check your config.php file in application/config folder. To me it seems like your config file is missing the following entry
$config['log_threshold'] = 1;
the values range from 0-4