• Customer

    Theme Core file and plugin issue

    Posted by: Saadgicloset Sep 13, 2021 at 08:48 (2 year ago)
    Hi Team
    I published my site and it's showing 503 error. This is happening with Shop page only. I debugged site and checked core plugin name : ovic-addon-toolkit is causing issue. Server resources are within in limit and I checked with hosting provider 2-3 times.
    --- Already updated resource usage under htaccess.
    ---- Error log : PHP Notice: Undefined index: file in /home/ems1nl2h3bmz/public_html/wp-content/plugins/ovic-addon-toolkit/includes/classes/ovic-core-functions.php on line 672
    [13-Sep-2021 08:13:11 UTC] PHP Notice: Undefined index: file in /home/ems1nl2h3bmz/public_html/wp-content/plugins/ovic-addon-toolkit/includes/classes/ovic-core-functions.php on line 673


    =================
    Function code
    // Look through the attachment meta data for an image that fits our size.
    $meta = wp_get_attachment_metadata($attachment_id);
    $upload_dir = wp_upload_dir();
    $base_dir = strtolower($upload_dir['basedir']);
    $base_url = strtolower($upload_dir['baseurl']);
    $src = trailingslashit($base_url).$meta['file'];
    $path = trailingslashit($base_dir).$meta['file'];
    if (!empty($meta['sizes'])) {
    foreach ($meta['sizes'] as $key => $size) {
    if (($size['width'] == $width && $size['height'] == $height) || $key == sprintf('resized-%dx%d', $width, $height)) {
    if (!empty($size['file'])) {
    $file = str_replace(basename($path), $size['file'], $path);
    if (file_exists($file)) {
    $needs_resize = false;
    $src = str_replace(basename($src), $size['file'], $src);
    }
    }
    ========
    Line 672 and 673
    $src = trailingslashit($base_url).$meta['file'];
    $path = trailingslashit($base_dir).$meta['file'];

    613f10d990b41.pdf

  • Customer

    Posted by: Maason, Sep 14, 2021 at 01:25 (2 year ago)

    Hi Saadgicloset
    Could you please provide your wp-admin account via secret information area? I would like to check on your site and help you. Also Can you connectto me via skype: mod.kutethemes@gmail.com? It's faster
    Waiting your connect...
    Regards,
    Maason
  • Customer

    Posted by: Saadgicloset, Sep 14, 2021 at 07:29 (2 year ago)

    Thank you for your reply.
    Sure thing, I will do that.
    The plugins are enabled which are only recommend by theme. No addon plugins are installed.
  • Customer

    Posted by: Maason, Sep 15, 2021 at 00:00 (2 year ago)

    Hi Saadgicloset
    I sent to the author of theme, they will check and find out the causes. However you should check your disk server before, maybe it's full. Please check again
    Regards,
    Maason
  • Customer

    Posted by: Maason, Sep 15, 2021 at 02:57 (2 year ago)

    Hi Saadgicloset
    It's updated. Please check your site again and let me know your results
    Have a nice day!
    Regards,
    Maason

INSTALLATION SERVICE

Theme Installation: $49. Pay now

CUSTOMIZED SERVICES

Use our expert service to turn your ideas into reality. Please send an email to kutethemes@gmail.com to provide the more detailed information. Thanks!

WORKING TIME

Our support service works from Monday to Friday.
Mean time (GMT +7):
+ 7:30 - 11:30 AM
+ 1:30 - 5:30 PM
We will try to answer all the questions within 24 hours and solve them as quickly as possible