Question: Getting Error When Enabling The Shop Module

Getting Error When Enabling The Shop Module

Hello, I tried to enable the shop module but I'm getting an error message. PFA for error message

JK

Junaid Khan

Asked

Hello,

I tried to enable the shop module but I’m getting an error message.

PFA for error message

  • MS

    Mian Saleem

    Answered

    Hello,

    PHP error logs saying Allowed memory size of 33554432 bytes exhausted Please update memory_limit to 256M

    Laravel logs are due to wrong variable name, I will release the update with fix today. You can try to change the line 34 of /home/intraflora/public_html/modules/Shop/Resources/views/livewire/shop_mode/mode_maintenance.blade.php from

    <img src="{{ storage_url($shop_settings->storage_url) }}" alt="{{ __($shop_settings->shop_name) }}" class="max-h-20 h-full object-cover" />
    

    to

    <img src="{{ storage_url($shop_settings->shop_logo_dark) }}" alt="{{ __($shop_settings->shop_name) }}" class="max-h-20 h-full object-cover" />
    

    Thank you

  • JK

    Junaid Khan

    Answered

    Hello Saleem,

    Thank you for your quick response.

    The maintenance mode issue got fixed after replacing the code.

    But the image issue still persists and we have given memory_limit to 512MB

    php_flag display_errors Off php_value max_execution_time 1200 php_value max_input_time 1200 php_value max_input_vars 1000 php_value memory_limit 512M php_value post_max_size 256M php_value session.gc_maxlifetime 1440 php_value session.save_path "/var/cpanel/php/sessions/ea-php81" php_value upload_max_filesize 256M php_flag zlib.output_compression Off
  • MS

    Mian Saleem

    Answered

    Hello,

    Please let me know the installation link to check.

    Thank you

  • JK

    Junaid Khan

    Answered

    Hello,

    Here’s the link https://intrafloranursery.com/

  • MS

    Mian Saleem

    Answered

    Hello,

    I think you need to delete the public/storage file, please try run the rm public/storage && rm public/images && php -d memory_limit=128M artisan storage:link --force and let me know the output.

    I will remove it in the next update and will create it using installer.

    Thank you

  • JK

    Junaid Khan

    Answered

    Hello Saleem,

    We have already added most of the content images for all of the items I just want to know before deleting the public/storage file do I have to take any backup or just delete and run the command, so it won’t impact the files?

  • JK

    Junaid Khan

    Answered

    Hello,

    I took a backup and ran the command I got this as output PFA for your reference.

  • MS

    Mian Saleem

    Answered

    Hello,

    That should be symbolic link but it’s folder. Please try manually deleting the public/storage and public/images and then run php -d memory_limit=128M artisan storage:link --force

    Thank you

  • JK

    Junaid Khan

    Answered

    Hello Saleem,

    It’s working now, Thank you for your support. We really appreciate it.

  • JK

    Junaid Khan

    Answered

    And one more thing, can we hide brands from the menu section?

    When we add item details in the front end the details appear in a single paragraph, PFA for reference.

  • Login to Reply