Creating PDF in Codeigniter with Dompdf - codeigniter

I am Using DomPDF for developing pdf in Codegniter GIving Error
require_once(): Failed opening required 'C:/xampp/htdocs/manisha/application/helpers/dompdf/lib/php-font-lib/classes/Font.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\manisha\application\helpers\dompdf\dompdf_config.inc.php on line 332

It seems your include fails. Please check the file permissions and if the "Font.php" file is actually at:
C:/xampp/htdocs/manisha/application/helpers/dompdf/lib/php-font-lib/classes/Font.php
Also, check if it works when you change "require_once()" into "require()", if so, you probably trying to include that file multiple times.

Related

Cypress upload file - cypress-file-upload error on huge file

Hello I am trying to upload a 10MB file using Cypress last version and this package:
cypress-file-upload
this is the line that doesn't work:
cy.get('[data-cy]="...."').attachFile(fileToAttach);
By the way, If the file is small works fine, but if the file is more than 5MB doesn't work.
I don't have any Cypress error, but the file has not been uploaded, seems the form reject the file.
i tried already to put cy.wait() but still doesn't work.
any idea?
thanks in advance
Andrea.

File Manager for TinyMCE 5 Not showing uploaded images,404 image not found,but it exists in the folder - Laravel

So,i've been having problems with integrating file manager to TinyMCE 5,uploading images into a specified folder using the file manager works without any issues,that is also true for deleting the images,but the problem is when you try to use the images,they appear as blank and if you open a console you will see error 404 messages that images don't exist
The solution that worked for me is that i went to .env file which is inside of your laravel project and then changed this line of code which is usually located in the first few lines of the file:
APP_URL=http://localhost
to this
APP_URL=http://127.0.0.1:8000
It seems like file manager uses APP_URL to build the URL for some reason,still haven't found out why tho

Laravel pdf issue: failed to open stream: No such file or directory by using barryvdh/laravel-dompdf package

I am update composer and use barryvdh/laravel-dompdf package.
the problem is when i click the button it show me error like image below:-
Is that anyway to change the folder path? or am I missing code to modify path to download the pdf file?
You need to run this command:
php artisan vendor:publish
Then, try to create a fonts directory in the storage directory.
i.e. storage/app/fonts. Also, remember to make it writable.
For maximum execution time of 30 seconds exceeded, this is not laravel related issue but it's about php configuration issue. Please see this and fix it: http://php.net/manual/en/info.configuration.php#ini.max-execution-time
You can also see this answer: https://stackoverflow.com/a/30290770/6000629
Hope this will helps you!
Try this:
$pdf = PDF::loadView('pdf/personalpdf', compact('user','result'))->setOptions(['defaultFont' => 'sans-serif']);
It worked for me, I didn't make any file/folder
Just remove the reference to css external file in your cart.placeOrder.blade
Note: This directory must exist and be writable by the webserver process.
under the config file thats what it say: therefore you should create the fonts directory inside the storage.
"font_cache" => storage_path('fonts/'),

Laravel. php artisan display return [];

When I use php artisan command, it display "return [];"
Here is a screenshot
Above the header of my web page there is "return []"; too. Does anyone know what this is caused by?
A Laravel configuration file is a PHP file that contains an array, when your application is initialised Laravel loads each configuration file (config/*.php) and adds the array to your configuration.
The problem you're experiencing appears to be due to the fact that your application has a configuration file that is being loaded not as PHP but instead as a text file. This can be caused by a config file missing the opening <?php, which is required for the file to be treated as PHP. For example, if you create a file in config called example.php with the following contents:
return [
];
You would see the behaviour you're experiencing in the screenshot. Therefore you should visit your config directory and identify any file that is missing the opening <?php.

Fatal error while exporting a CSV file from webpage

I'm trying to export an cvs file but I'm having this error.
Fatal error: Call to undefined method
Mage_Adminhtml_Model_System_Config_Source_Yesno::setAttribute() in
/home/acdistri/public_html/app/code/core/Mage/Eav/Model/Entity/Attribute/Abstract.php
on line 389
thanks for your quick interest in this question... I found the solution... when I install a extension it create an Attribute, then I uninstall the extension because a JavaScript conflict but the attribute stay there and when I was trying to do the export of the products data base it give me that error. I just delete the attribute and now is working all fine.

Resources