• Resolved Tibor

    (@bmwclubtirol)


    In the course of uploading pics to the gallery following message appears:

    Warning: A non-numeric value encountered in /home/.sites/72/site4252024/web/wp-content/plugins/wp-photo-album-plus/wppa-common-functions.php on line 1343 . The bold line is the 1343…

    ????// If no data, assume yes

    ????if ( ! $memory_limit ) {

    ????????return true;

    ????}

    ????// Calculate the free memory

    ????$free_memory = $memory_limit - memory_get_usage( true );

    ????// Substract filesize

    ????$free_memory -= filesize( $file );

    ????// Compute required memorysize

    ????$imagesize = getimagesize( $file );

    ????$source_pixels = $imagesize[0] * $imagesize[1];

    Fotos are uploaded, but message appears.

    Can you give me a hint what it could be?

    • This topic was modified 9 months, 2 weeks ago by Tibor.
    • This topic was modified 9 months, 2 weeks ago by Tibor.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Can you add:
    wppa_log('war', 'Mem lim = '.$memory_limit.', usage = '.memory_get_usage( true ));

    right before:
    $free_memory = $memory_limit - memory_get_usage( true );

    and look at the wppa log what the values are?

    Thread Starter Tibor

    (@bmwclubtirol)

    url: /wp-admin/admin.php?page=wppa_upload_photos
    War: on:08.07.2024 20:25:18: wordpressadmin (2302221): Too little memory to resize /home/.sites/72/site4252024/web/wp-content/uploads/wppa/2965.jpg (1080×1920 px) to 600 Stack: wppa-common-functions.php:1387 wppa_log() <- wppa-photo-files.php:589 wppa_can_resize() <- wppa-photo-files.php:469 wppa_create_thumbnail() <- wppa-admin-functions.php:850 wppa_make_the_photo_files() <- wppa-upload-common.php:178 wppa_insert_photo() <- wppa-upload.php:387 wppa_upload_one_item()
    url: /wp-admin/admin.php?page=wppa_upload_photos
    War: on:08.07.2024 20:25:17: wordpressadmin (2302221): Mem lim = 512M, usage = 174063616 Stack: wppa-common-functions.php:1359 wppa_log() <- wppa-photo-files.php:589 wppa_can_resize() <- wppa-photo-files.php:469 wppa_create_thumbnail() <- wppa-admin-functions.php:850 wppa_make_the_photo_files() <- wppa-upload-common.php:178 wppa_insert_photo() <- wppa-upload.php:387 wppa_upload_one_item()

    I think it’s a memory issue?

    From the hosting side no parameters changed.

    • This reply was modified 8 months, 3 weeks ago by Tibor.
    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    I made a hotfix patch. Please install a fresh download of the current release version
    https://downloads.www.ads-software.com/plugin/wp-photo-album-plus.8.8.01.007.zip
    and try again

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘A non-numeric value encountered’ is closed to new replies.