wmac Posted August 24, 2017 Report Posted August 24, 2017 When clicking on view invoice it returns error TCPDF ERROR: [Image] No such file or directory in I believe that is directory permission but I don't know each one.
0 evolvewh Posted August 24, 2017 Report Posted August 24, 2017 3 hours ago, wmac said: When clicking on view invoice it returns error TCPDF ERROR: [Image] No such file or directory in I believe that is directory permission but I don't know each one. Are your temp and uploads directories writeable? Settings -->> System -->> Basic Setup
0 Blesta Addons Posted August 24, 2017 Report Posted August 24, 2017 maybe the logo or the background images of invoices no more exist ?!
0 wmac Posted August 24, 2017 Author Report Posted August 24, 2017 I did not test yet but I found out the uploads directory was not configured in the system, now it is and it is writable, I will check on the first invoice generated
0 wmac Posted August 24, 2017 Author Report Posted August 24, 2017 13 minutes ago, wmac said: I did not test yet but I found out the uploads directory was not configured in the system, now it is and it is writable, I will check on the first invoice generated Just tested, didn't work, must be another thing, I will check on the logo I never set the invoice background
0 Paul Posted August 24, 2017 Report Posted August 24, 2017 Do you have the PHP GD library extension? Sometimes TCPDF tries to resize the logo and it uses GD to do it. Regarding your uploads directory: Quote Make sure your uploads directory exists and is defined under Settings > System > General: Uploads Directory. Some tips: - The uploads directory should be above your document root or public_html directory so that it's not accessible directly via the web. - A common path to the uploads directory would be something like: **/home/user/uploads/** - Make sure the uploads directory is writable by your web server and cron users. 755 permissions are usually sufficient, but you may need to set it to 777 - Inside the uploads directory, you should have a directory called 1 (for the company ID), and system. - Plugins typically create their own directories within your company ID directory, but you may need to create them manually. These are the directories you should have under uploads: └── uploads ├── 1 │ ├── download_files │ ├── invoices │ ├── mass_mailer_files │ └── support_manager_files └── system
0 wmac Posted August 25, 2017 Author Report Posted August 25, 2017 10 hours ago, Paul said: Do you have the PHP GD library extension? Sometimes TCPDF tries to resize the logo and it uses GD to do it. Regarding your uploads directory: PHP GD is loaded I don't have all those directories under /uploads/1 I will create and check Thanks
0 wmac Posted August 25, 2017 Author Report Posted August 25, 2017 I created the directories, gave them 777 recursive and still the same problem
0 Blesta Addons Posted August 25, 2017 Report Posted August 25, 2017 i still believe that you have a missed logo or background image, can you posta screenshoot of your Invoice Customization under , settings -> Billing/Payment -> Invoice Customization .
0 wmac Posted August 25, 2017 Author Report Posted August 25, 2017 3 minutes ago, Blesta Addons said: i still believe that you have a missed logo or background image, can you posta screenshoot of your Invoice Customization under , settings -> Billing/Payment -> Invoice Customization .
0 Blesta Addons Posted August 25, 2017 Report Posted August 25, 2017 delete the logo and try to check if the invoice work now without a logo .
0 Blesta Addons Posted August 25, 2017 Report Posted August 25, 2017 this is in the admin side only ? enable error reporting from config file to see the full error message, or install the "The debugger plugin and paste the whole error .
0 wmac Posted August 25, 2017 Author Report Posted August 25, 2017 I have enable debug on config now it does not show any error but it opens a blank PDF with the invoice#
0 Paul Posted August 25, 2017 Report Posted August 25, 2017 Is the path defined correctly under Settings > System > General: Root Web Directory? Should begin and end with a forward slash, and be the same as your document root. Also check the Temp Directory. The default is /tmp/ but some servers don't allow access to the system temp directory. I'd suggest creating a tmp directory within your users home directory, above the doc root, and setting it here. Also, are you running 4.1? There is new file-based logging, and you can check your "Log Directory" on this page also and take a look at the files in that location.
0 wmac Posted August 25, 2017 Author Report Posted August 25, 2017 6 hours ago, Paul said: Is the path defined correctly under Settings > System > General: Root Web Directory? Should begin and end with a forward slash, and be the same as your document root. Also check the Temp Directory. The default is /tmp/ but some servers don't allow access to the system temp directory. I'd suggest creating a tmp directory within your users home directory, above the doc root, and setting it here. Also, are you running 4.1? There is new file-based logging, and you can check your "Log Directory" on this page also and take a look at the files in that location. The path is correct I also create a new tmp directory with 777 in the home directory and still have the same issue, I am running VestaCP so the home directory is in a different path from the others CP. Also when the debug was on, I answered a customer support ticket and got this info from the log and it is related to the /tmp/ tempnam(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): and after that the stack trace that I don't want to post What I can say is the path is correct on settings>system>general all of them also finish with / I am not running 4.1, should I upgrade??
0 wmac Posted August 26, 2017 Author Report Posted August 26, 2017 Before somebody comment, I have checked open_basedir in PHP.ini and it is commented it is off, if it is on it must be in another place.
0 wmac Posted August 26, 2017 Author Report Posted August 26, 2017 Found a PHP open_basedir directive on the VHost configuration removed and restarted Apache and still have the same issue
0 Blesta Addons Posted August 26, 2017 Report Posted August 26, 2017 11 hours ago, wmac said: Found a PHP open_basedir directive on the VHost configuration removed and restarted Apache and still have the same issue Normally you should not remove it, you should set it to none , something like open_basedir none
0 wmac Posted September 2, 2017 Author Report Posted September 2, 2017 Just an update, after upgrade to version 4.1 this problem was solved, we can close this one activa 1
-1 wmac Posted August 28, 2017 Author Report Posted August 28, 2017 On 8/26/2017 at 9:09 AM, Blesta Addons said: Normally you should not remove it, you should set it to none , something like open_basedir none Put it back but makes no difference. Now I realize that the customers at client area also can not view invoices
Question
wmac
When clicking on view invoice it returns error TCPDF ERROR: [Image] No such file or directory in
I believe that is directory permission but I don't know each one.
20 answers to this question
Recommended Posts