Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter Dmitriy

    (@singulis)

    Nginx caching was used, but not on pages with user profiles. I turned off caching and … nothing has changed. Photos are uploaded to /wp-content/uploads/ultimatemember/ as is, without recompression.
    I checked the work of the Imsanity plugin (for automatic resize) – it does not affect the loading in UM, but it works in WP itself for uploading to a regular gallery.

    • This reply was modified 6 years ago by Dmitriy.
    Dmitriy

    (@singulis)

    The same problem is not only with the size of the cover_ *. There is confusion with the size of profile pictures.

    Thread Starter Dmitriy

    (@singulis)

    Hi. Thanks for trying to fix it, but nothing has changed. If I enter the site title in Cyrillic, after clicking “Save button settings” the settings page hang, and error appears in the Google Chrome console:

    Uncaught DOMException: Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.
        at wpsr_sb_process_list (https://site.com/wp-content/plugins/wp-socializer/admin/js/script.js?ver=4.1:1301:17)
        at HTMLUListElement.<anonymous> (https://site.com/wp-content/plugins/wp-socializer/admin/js/script.js?ver=4.1:531:33)
        at Function.each (https://site.com/wp-admin/load-scripts.php?c=0&load%5B%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable,jquery-ui-slider,jquery-tou&load%5B%5D=ch-punch,iris,wp-color-picker,jquery-ui-sortable&ver=4.9.8:2:2881)
        at a.fn.init.each (https://site.com/wp-admin/load-scripts.php?c=0&load%5B%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable,jquery-ui-slider,jquery-tou&load%5B%5D=ch-punch,iris,wp-color-picker,jquery-ui-sortable&ver=4.9.8:2:846)
        at HTMLFormElement.<anonymous> (https://site.com/wp-content/plugins/wp-socializer/admin/js/script.js?ver=4.1:525:24)
        at HTMLDocument.dispatch (https://site.com/wp-admin/load-scripts.php?c=0&load%5B%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable,jquery-ui-slider,jquery-tou&load%5B%5D=ch-punch,iris,wp-color-picker,jquery-ui-sortable&ver=4.9.8:3:12444)
        at HTMLDocument.r.handle (https://site.com/wp-admin/load-scripts.php?c=0&load%5B%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable,jquery-ui-slider,jquery-tou&load%5B%5D=ch-punch,iris,wp-color-picker,jquery-ui-sortable&ver=4.9.8:3:9173)
        at Object.trigger (https://site.com/wp-admin/load-scripts.php?c=0&load%5B%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable,jquery-ui-slider,jquery-tou&load%5B%5D=ch-punch,iris,wp-color-picker,jquery-ui-sortable&ver=4.9.8:3:11573)
        at Object.a.event.trigger (https://site.com/wp-admin/load-scripts.php?c=0&load%5B%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable,jquery-ui-slider,jquery-tou&load%5B%5D=ch-punch,iris,wp-color-picker,jquery-ui-sortable&ver=4.9.8:9:8275)
        at HTMLFormElement.<anonymous> (https://site.com/wp-admin/load-scripts.php?c=0&load%5B%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-draggable,jquery-ui-slider,jquery-tou&load%5B%5D=ch-punch,iris,wp-color-picker,jquery-ui-sortable&ver=4.9.8:3:18991)

    Нет. Но проблема решаема, делюсь рецептом. Измените содержимое файла /templates/tracker-js.php на это:

    <?php defined( 'ABSPATH' ) or die(); ?>
    <!-- Yandex.Metrika counter by Yandex Metrica Plugin -->
    <script type="text/javascript">
        (function (d, w, c) {
            (w[c] = w[c] || []).push(function() {
                try {
                    w.yaCounter<?php echo $this->options["counter_id"];?> = new Ya.Metrika2({id:<?php echo $this->options["counter_id"];?>,
                        webvisor:<?php echo $this->options["webvisor"]?"true":"false";?>,
                        clickmap:<?php echo $this->options["clickmap"]?"true":"false";?>,
                        trackLinks:<?php echo $this->options["tracklinks"]?"true":"false";?>,
                        accurateTrackBounce:<?php echo $this->options["accurate_track"]?"true":"false";?>,
                        trackHash:<?php echo $this->options["track_hash"]?"true":"false";?>});
                } catch(e) { }
            });
    
            var n = d.getElementsByTagName("script")[0],
                s = d.createElement("script"),
                f = function () { n.parentNode.insertBefore(s, n); };
            s.type = "text/javascript";
            s.async = true;
            s.src = "https://mc.yandex.ru/metrika/tag.js";
    
            if (w.opera == "[object Opera]") {
                d.addEventListener("DOMContentLoaded", f, false);
            } else { f(); }
        })(document, window, "yandex_metrika_callbacks2");
    </script>
    <noscript>
    	<div><img src="<?php printf( "%s%s", apply_filters( 'yandex_metrica_noscript_img_base', "https://mc.yandex.ru/watch/" ), $this->options["counter_id"] ); ?>" style="position:absolute; left:-9999px;" alt="" /></div>
    </noscript>
    <!-- /Yandex.Metrika counter  -->
    Thread Starter Dmitriy

    (@singulis)

    Shaman, thank you! I thought this would not work, because my site is only available through HTTPS. Everything worked out.

    • This reply was modified 6 years, 10 months ago by Dmitriy.
    Thread Starter Dmitriy

    (@singulis)

    Thanks, now everything works well!

    Because instead of vkontakte.ru should be vk.com (api.vkontakte.ru -> api.vk.com). Do a search “vkontakte.ru” and replace to “vk.com” in the plugin code and everything will work.

    Thread Starter Dmitriy

    (@singulis)

    Сервер настроен качественно, но вы правы – надо было указать, в чём проблема, моё сообщение получилось слишком эмоциональным. Привожу лог:
    2017/03/19 20:06:09 [error] 25672#25672: *321886 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to undefined function eregi() in (тут путь)/public_html/wp-content/plugins/scrounger-lite/inc/functions/scrounger_css.php:8
    Плагин был установлен из официального репозитория по ссылке https://downloads.www.ads-software.com/plugin/scrounger-lite.0.9.2.zip
    Как видите, eregi по-прежнему присутствует в плагине, хотя PHP 7 уже не такая новинка, как год назад. Если верить статистике w3techs, уже 3% сайтов всего мира используют его. У вас действительно интересный плагин и хотелось бы, чтобы он был совместим и с теми сайтами на WP, которые входят в эти 3%. Может быть, сделаете Ctrl+F и пробежитесь по функциям, используемым в плагине?
    Вы наверняка имеете собственное мнение, отличное от моего, по поводу совместимости с версиями PHP, Apache, Nginx и т.п., но я надеюсь, что вы обратите внимание на страдания владельцев сайтов с седьмым PHP, которые не могут поставить себе удобную форму для доната, и доведёте плагин до совершенства.

    Thread Starter Dmitriy

    (@singulis)

    Увы, к сожалению, качество плагина не позволяет его использовать. Теперь после установки плагина появляется “белый экран смерти” WP.

    Thread Starter Dmitriy

    (@singulis)

    Thanks to gVectors Team! It’s worked now. Excellent plugin!

    Thread Starter Dmitriy

    (@singulis)

    I’m reinstall plugin and delete the cache. Nothing changed.

    Thread Starter Dmitriy

    (@singulis)

    I cleared all the caches. It did not help. Then remove all png and txt in folder Utils of plugin – new captcha pngs still are without text. Check this page, please (captcha shows only for guests): https://goo.gl/fyPBr8
    On other page same problem, of course.
    Does plugin any logs that I can give them to you?

Viewing 12 replies - 1 through 12 (of 12 total)