I need help in pixel script urgently.

Solved
vk893061

Jan 27th, 2022 12:12 AM

Hi, I downloaded pixel script but now I have an issue actually when I'm adding a new product or editing any existing product then the image is not stored in the storage folder I don't know why is this happening. Please help me to figure it out. please check URL https://themesbot.com

bobbyiliev

Jan 27th, 2022 12:20 AM

Hello,

You need to run the following command:

php artisan storage:link

If the link already exists try removing it with:

unlink public/storage

And after that run the php artisan storage:link command again.

Let me know how it goes.

Best,

Bobby

vk893061

Jan 27th, 2022 12:31 AM

not working

bobbyiliev

Jan 27th, 2022 12:36 AM

Did the command succeed? Would you be able to give some more information?

  • Do you see any errors in your error log?
  • Can you share the output of the following command ls -lah public
  • What are the permissions of the files set to?
  • What server have you deploied the script on? (Shared hosting, unmanaged Ubuntu server, is it Nginx or Apache?)
  • Have you set the APP_URL to match your domain name exactly? https://themesbot.com
  • Any extra information would help, as I don't have access to your server to check the problem directly :)
vk893061

Jan 27th, 2022 01:03 AM

total 72K drwxr-xr-x 4 themesbot themesbot 4.0K Jan 27 09:29 . drwxr-x--- 13 themesbot themesbot 4.0K Jan 27 06:24 .. -rw-r--r-- 1 themesbot themesbot 693 Sep 26 20:55 .htaccess drwxr-xr-x 4 themesbot themesbot 4.0K Sep 6 2018 assets -rw-r--r-- 1 themesbot themesbot 31K Aug 26 23:09 error_log -rw-r--r-- 1 themesbot themesbot 0 Sep 6 2018 favicon.ico -rw-r--r-- 1 themesbot themesbot 1.8K Sep 6 2018 index.php -rw-r--r-- 1 themesbot themesbot 23 Sep 6 2018 pixel.json -rw-r--r-- 1 themesbot themesbot 24 Sep 6 2018 robots.txt lrwxrwxrwx 1 root root 46 Jan 27 09:29 storage -> /home/themesbot/public_html/storage/app/public -rw-r--r-- 1 themesbot themesbot 42 Sep 6 2018 storage1 drwxr-xr-x 3 themesbot themesbot 4.0K Sep 6 2018 vendor -rw-r--r-- 1 themesbot themesbot 914 Sep 6 2018 web.config

I'm using contabo VPS hosting and it is apache

I found the below apache error [Thu Jan 27 09:35:59.120791 2022] [core:error] [pid 1176632:tid 139980609406720] [client 83.148.93.164:59813] AH00037: Symbolic link not allowed or link target not accessible: /home/themesbot/public_html/public/storage, referer: https://themesbot.com/

bobbyiliev

Jan 27th, 2022 01:18 AM

Best Answer

Hi there,

It looks like that the storage symlink is owned by the root user and this could be why you are getting the errors.

What you could do is:

  • Remove the symlink:
unlink public/storage
  • Then switch to the themesbot user:
su themesbot
  • And run the storage link command again:
php artisan storage:link 

If you are still getting the error, you could try adding the following to your Apache config:

	<Directory /home/themesbot/public_html/public>
		Options Indexes FollowSymLinks
	        AllowOverride All
		Require all granted
	</Directory>

Let me know how it goes.

vk893061

Jan 27th, 2022 01:39 AM

Yes now it is resolved with su themesbot Thanks.

vk893061

Jan 27th, 2022 01:51 AM

I have work for you please let me know if you can do that. Actually, I want to integrate a file uploading website with an API in pixel script. So that I can directly upload files from pixel.

vk893061

Jan 27th, 2022 03:17 AM

Also I want user upload system in this script.

bobbyiliev

Jan 27th, 2022 04:12 AM

Hi there,

Happy to hear that it is all working now!

We do not offer freelance work as of the time being but this is something that we might consider in the future!