omaralalwi / Gpdf

Open Source HTML to PDF converter for PHP & Laravel Applications, Support store to s3 & supports Arabic content out-of-the-box and other languages.
MIT License
52 stars 2 forks source link

vendor/autoload.php file not found due to path error Laravel 11 #7

Closed chabid492 closed 1 week ago

chabid492 commented 1 week ago

Error occurs when trying to install new font

php vendor/omaralalwi/gpdf/scripts/install_font.php "Arial" ./resources/fonts/ARIAL-Normal.ttf ./resources/fonts/ARIAL-Bold.ttf ./resources/fonts/ARIAL-Italic.ttf ./resources/fonts/ARIAL-BoldItalic.ttf

Warning: require_once(D:\laragon\www\InterPay\InterPayReceiptGenerator\vendor\omaralalwi\gpdf\scripts/../vendor/autoload.php): Failed to open stream: No such file or directory in D:\laragon\www\InterPay\InterPayReceiptGenerator\vendor\omaralalwi\gpdf\scripts\install_font.php on line 3

Fatal error: Uncaught Error: Failed opening required 'D:\laragon\www\InterPay\InterPayReceiptGenerator\vendor\omaralalwi\gpdf\scripts/../vendor/autoload.php' (include_path='.;D:/laragon/etc/php/pear') in D:\laragon\www\InterPay\InterPayReceiptGenerator\vendor\omaralalwi\gpdf\scripts\install_font.php:3 Stack trace:

0 {main}

thrown in D:\laragon\www\InterPay\InterPayReceiptGenerator\vendor\omaralalwi\gpdf\scripts\install_font.php on line 3

It works for me when I have changed the script file code to File Path: vendor\omaralalwi\gpdf\scripts\install_font.php

//require_once DIR . '/../vendor/autoload.php'; require_once DIR . '/../../../autoload.php';

chabid492 commented 1 week ago

@omaralalwi Can you please fix this problem

https://github.com/omaralalwi/Gpdf/issues/7#issue-2504709257

omaralalwi commented 1 week ago

ok i will check and let you know ASAP

chabid492 commented 1 week ago

Thank you for your response

On Wed, 4 Sept 2024, 6:10 pm Omar Alalwi, @.***> wrote:

ok i will check and let you know ASAP

— Reply to this email directly, view it on GitHub https://github.com/omaralalwi/Gpdf/issues/7#issuecomment-2328996018, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJPCDMY7LA5G5ND4IPP4VPTZU4BDJAVCNFSM6AAAAABNT2J4JSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRYHE4TMMBRHA . You are receiving this because you authored the thread.Message ID: @.***>

omaralalwi commented 1 week ago

Resolved Here https://github.com/omaralalwi/Gpdf/pull/8 please make sure to update to latest version (current 1.0.4)

chabid492 commented 1 week ago

Thanks to fix it quickly, it worked.

On Wed, 4 Sept 2024, 10:55 pm Omar Alalwi, @.***> wrote:

Resolved Here #8 https://github.com/omaralalwi/Gpdf/pull/8 please make sure to update to latest version (current 1.0.4)

— Reply to this email directly, view it on GitHub https://github.com/omaralalwi/Gpdf/issues/7#issuecomment-2329663166, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJPCDM7JDLFEA5ESXGJDKLLZU5CRLAVCNFSM6AAAAABNT2J4JSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRZGY3DGMJWGY . You are receiving this because you authored the thread.Message ID: @.***>