Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 [BUG] - <Customize Product with text and File> #375

Closed
ePiliK opened this issue Jan 18, 2024 · 8 comments
Closed

🐛 [BUG] - <Customize Product with text and File> #375

ePiliK opened this issue Jan 18, 2024 · 8 comments
Labels
bug Something isn't working is_themecore major

Comments

@ePiliK
Copy link

ePiliK commented Jan 18, 2024

Description

if you activate product customization, where customers can put a text and an image (file).

When you load the image and save the customization this error appears.

Fatal error: Uncaught Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException: The file "/tmp/phpvto0Z6" does not exist in /home/falcon.local/public_html/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/File/File.php:36 Stack trace: #0 /home/falcon.local/public_html/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/File/UploadedFile.php(77): Symfony\Component\HttpFoundation\File\File->__construct() #1 /home/falcon.local/public_html/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/FileBag.php(86): Symfony\Component\HttpFoundation\File\UploadedFile->__construct() #2 /home/falcon.local/public_html/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/FileBag.php(52): Symfony\Component\HttpFoundation\FileBag->convertFileInformation() #3 /home/falcon.local/public_html/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/FileBag.php(61): Symfony\Component\HttpFoundation\FileBag->set() #4 /home/falcon.local/public_html/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/FileBag.php(40): Symfony\Component\HttpFoundation\FileBag->add() #5 /home/falcon.local/public_html/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/FileBag.php(31): Symfony\Component\HttpFoundation\FileBag->replace() #6 /home/falcon.local/public_html/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Request.php(269): Symfony\Component\HttpFoundation\FileBag->__construct() #7 /home/falcon.local/public_html/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Request.php(247): Symfony\Component\HttpFoundation\Request->initialize() #8 /home/falcon.local/public_html/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Request.php(1978): Symfony\Component\HttpFoundation\Request->__construct() #9 /home/falcon.local/public_html/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Request.php(293): Symfony\Component\HttpFoundation\Request::createRequestFromFactory() #10 /home/falcon.local/public_html/modules/is_themecore/src/Core/ListingDisplay/ThemeListDisplay.php(38): Symfony\Component\HttpFoundation\Request::createFromGlobals() #11 /home/falcon.local/public_html/modules/is_themecore/src/Hook/Header.php(35): Oksydan\Module\IsThemeCore\Core\ListingDisplay\ThemeListDisplay->getDisplay() #12 /home/falcon.local/public_html/modules/is_themecore/src/HookDispatcher.php(57): Oksydan\Module\IsThemeCore\Hook\Header->hookDisplayHeader() #13 /home/falcon.local/public_html/modules/is_themecore/is_themecore.php(192): Oksydan\Module\IsThemeCore\HookDispatcher->dispatch() #14 /home/falcon.local/public_html/classes/Hook.php(993): Is_themecore->__call() #15 /home/falcon.local/public_html/classes/Hook.php(418): HookCore::coreCallHook() #16 /home/falcon.local/public_html/classes/Hook.php(928): HookCore::callHookOn() #17 /home/falcon.local/public_html/classes/controller/FrontController.php(577): HookCore::exec() #18 /home/falcon.local/public_html/controllers/front/ProductController.php(464): FrontControllerCore->initContent() #19 /home/falcon.local/public_html/classes/controller/Controller.php(319): ProductControllerCore->initContent() #20 /home/falcon.local/public_html/classes/Dispatcher.php(510): ControllerCore->run() #21 /home/falcon.local/public_html/index.php(28): DispatcherCore->dispatch() #22 {main} Next PrestaShop\PrestaShop\Core\Exception\CoreException: The file "/tmp/phpvto0Z6" does not exist in /home/falcon.local/public_html/classes/Hook.php:431 Stack trace: #0 /home/falcon.local/public_html/classes/Hook.php(928): HookCore::callHookOn() #1 /home/falcon.local/public_html/classes/controller/FrontController.php(577): HookCore::exec() #2 /home/falcon.local/public_html/controllers/front/ProductController.php(464): FrontControllerCore->initContent() #3 /home/falcon.local/public_html/classes/controller/Controller.php(319): ProductControllerCore->initContent() #4 /home/falcon.local/public_html/classes/Dispatcher.php(510): ControllerCore->run() #5 /home/falcon.local/public_html/index.php(28): DispatcherCore->dispatch() #6 {main} thrown in /home/falcon.local/public_html/classes/Hook.php on line 431

I think it all depends on Falcon's core.

Node.js version

v16

php version

v8.1

OS and it's version

linux

Browsers

Chrome

Required module/theme

is_themecore

Reproduction steps

if you create a customizable product, the error appears when you insert an image and save the customization.

If you refresh the page the image is loaded correctly

Logs

No response

@ePiliK ePiliK added the bug Something isn't working label Jan 18, 2024
@Oksydan
Copy link
Owner

Oksydan commented Jan 22, 2024

Hi @ePiliK,

thank you for creating an issue.
I wasn't able to reproduce an error. It looks like it might be permission problem in your environment for tmp directory.

Fatal error: Uncaught Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException: The file "/tmp/phpvto0Z6" does not exist in

@Oksydan Oksydan added the waiting for author waiting for author label Jan 22, 2024
@ePiliK
Copy link
Author

ePiliK commented Jan 24, 2024

img1
image

the tmp folder has full access.

I tried on two different servers and this error appears in both. but it's something at the cache level, because then the image is actually saved in the product

@Oksydan
Copy link
Owner

Oksydan commented Jan 24, 2024

Did you try on clear prestashop installation?
I am not able to reproduce it, so I am not able to fix it.

@ePiliK
Copy link
Author

ePiliK commented Jan 31, 2024

Yes, I did several tests, and even with clean installation it produces the same problem.

If I switch to the basic prestashop theme I don't have this problem

@Oksydan
Copy link
Owner

Oksydan commented Jan 31, 2024

Can you provide me more information about your server configuration?

@ePiliK
Copy link
Author

ePiliK commented Feb 1, 2024

info_outline Informazioni sul server
Informazioni sul server: Linux #184-Ubuntu SMP Tue Oct 31 09:21:49 UTC 2023 x86_64
Versione software del server: LiteSpeed
Versione di PHP: 8.1.24
Limite di memoria: 2048M
Tempo di esecuzione massimo: 6000

Dimensione Max. dei file da caricare: 64M
info_outline Informazioni datatbase
Versione MySQL: 10.3.39-MariaDB-0ubuntu0.20.04.2
Server MySQL: *********
Nome MySQL: *********
Utente MySQL: *********

Prefisso delle tabelle: ps_
Motore MySQL: InnoDB
Driver MySQL: DbPDO

info_outline Elenco delle sostituzioni
classes/Link.php
info_outline Informazioni negozio
Versione di PrestaShop: 8.1.1

URL negozio: https:///
Percorso negozio: /home/
/public_html
Tema attualmente utilizzato: Falcon

if I switch off debug mode, the process works (although I get the error underneath)

@Oksydan
Copy link
Owner

Oksydan commented May 9, 2024

Hi @ePiliK,

I was able to reproduce an issue.
Thank you for your report.

@Oksydan
Copy link
Owner

Oksydan commented Nov 16, 2024

Hi @ePiliK,

new version has been released with fix to this issue https://github.com/Oksydan/is_themecore/releases/tag/v4.1.2
I am closing this issue, feel free to open new one 😉

@Oksydan Oksydan closed this as completed Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working is_themecore major
Projects
None yet
Development

No branches or pull requests

2 participants