Viewing 6 replies - 1 through 6 (of 6 total)
  • I have the same issue.
    I find out it’s because the folder created by the gallery hasn’t the rights to 755 (it’s because we see the question marks instead of the picture) but I don’t know where to change it in the nextGen gallery code.

    I find the way to correct it !
    If you go to :

    plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_data

    Open the class class.ngglegacy_gallerystorage_base.php go to method “upload_base64_image($gallery, $data, $filename=FALSE, $image_id=FALSE)”
    (line 500 for me)
    Find the code :

    if (!@file_exists($upload_dir)) @wp_mkdir_p($upload_dir);

    and change it by

    if (!@file_exists($upload_dir)) {
         @wp_mkdir_p($upload_dir);
         @chmod( $upload_dir, 0755 );
     }

    Next open the class class.ngglegacy_gallerystorage_driver.php.
    find the function :
    generate_image_size($image, $size, $params = null, $skip_defaults = false)
    find : (line 407 for me)
    wp_mkdir_p($existing_image_dir);
    and add underneath :
    @chmod( $existing_image_dir, 0755 );

    It worked fine for me !

    Thread Starter Vovaford

    (@vovaford)

    Hey mate i fined the class class.ngglegacy_gallerystorage_driver.php. but i can’t fined the class class.ngglegacy_gallerystorage_base.php. Where can i fined it.
    I am new at WP and i am not good at codes and stuff. I know only basics so if you can help me will be awesome

    Thanks mate!

    My bad it’s class.gallerystorage_driver_base instead of class.ngglegacy_gallerystorage_base.php
    ??

    Plugin Contributor photocrati

    (@photocrati)

    @vovaford / @mylitledreamworld – Would you be able to submit a Bug Report (https://www.nextgen-gallery.com/report-bug/ … please reference this topic) so we can get a closer look at this issue (and the work-around).

    If possible, our developers would likely need a set of log in credentials and FTP credentials to inspect the changes directly on your site. Please include those on the Bug Report.

    Thanks!

    – Cais.

    Thread Starter Vovaford

    (@vovaford)

    Thanks mate :D, it was a good try but it didn’t work for me ?? will keep looking.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Can't see pics on website instead question marks’ is closed to new replies.