• hello I have a problem when posting an ad the images do not load the button does not work,I have the latest version of the plugin

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

Viewing 11 replies - 16 through 26 (of 26 total)
  • Thread Starter demente1987

    (@demente1987)

    I have downloaded it on my pc, I sent it the same?

    Thread Starter demente1987

    (@demente1987)

    I downloaded it on my pc, how did I send it?

    Plugin Author Greg Winiarski

    (@gwin)

    The contact form does not allow uploading files, but you can upload it to your server or DropBox and send me a download link.

    Hi Greg!

    I have the same problem. Images are not uploaded to the gallery. I have tried different browsers and different devices, including tablet and mobile phone. Also tried to download small images that weigh only 200-300 kilobytes. No image is loaded. Example: http://симеиз.рф/adverts/ Please let me know how to fix this problem? Thank you!

    Plugin Author Greg Winiarski

    (@gwin)

    Hi, hmm there seems to be a different problem in your case.

    The problem is that the domain name uses UTF-8 characters (Cyrillic in this case) and the UTF-8 characters are being converted before using them.

    What you can try doing is open a file wpadverts/includes/gallery.php, find there code (should be on line 133).

    
    <?php echo json_encode($upload_conf) ?>
    

    and add JSON_UNESCAPED_UNICODE to it like below

    
    <?php echo json_encode($upload_conf, JSON_UNESCAPED_UNICODE) ?>
    

    you can do the same with the line

    
    <?php echo json_encode($sizes) ?>
    

    Please let me know if this will help.

    Hi Greg!

    Thank you for your instructions. I did this.
    However the photos are not uploaded to the gallery until now.
    How can this problem be solved?
    Thank you.

    Plugin Author Greg Winiarski

    (@gwin)

    You will most likely need one additional code snippet, please add the code below in your theme functions.php file it should fix the upload.

    
    add_action( "wp_footer", "unicode_adverts_urls", 1000 );
    function unicode_adverts_urls() {
        
        ?>
        <script type="text/javascript">
        var unicode_adverts_url = '<?php echo admin_url( 'admin-ajax.php' ) ?>';
        if( typeof ajaxurl != 'undefined' ) {
            unicode_adverts_url = ajaxurl;
        }
        if( typeof adverts_frontend_lang != 'undefined' ) {
            adverts_frontend_lang.ajaxurl = unicode_adverts_url;
        }
        if( typeof adverts_gallery_lang != 'undefined' ) {
            adverts_gallery_lang.ajaxurl = unicode_adverts_url;
        }
        </script>
        <?php
    }
    

    Hi Greg!

    I add your code in functions.php file, but image uploader not work yet.
    How we can fix this problem?

    Plugin Author Greg Winiarski

    (@gwin)

    Hmm you can try doing one more change in wpadverts/includes/gallery.php. Find there line (it should be on line 48).

    
    'url'                 => admin_url('admin-ajax.php'),
    

    and change it to just

    
    'url'                 => '/wp-admin/admin-ajax.php',
    

    I am not sure what else can be changed i would need to first test in on my local site with a unicode characters.

    Hi Greg!

    Thank you very much for your fast help! Now it’s work! You monster! 😉
    We have launched a city portal in Crimea and I like the functionality of your plugin. After setting up and testing I plan to connect paid modules.

    Thanks again!

    Plugin Author Greg Winiarski

    (@gwin)

    Hi, ok great i am glad you have it working :), in the next WPAdverts release i will make an update to make sure the unicode URLs work with WPAdverts without any issues out-of-box.

Viewing 11 replies - 16 through 26 (of 26 total)

The topic ‘Image loader does not work’ is closed to new replies.