• ResolvedPlugin Contributor Will Stocks

    (@willstockstech)


    Fatal error: Uncaught Error: Call to undefined function wp_get_current_user() in /WillStocks/wp-content/plugins/optimum-gravatar-cache/optimum-gravatar-cache.php:135 Stack trace: #0 /WillStocks/wp-content/plugins/optimum-gravatar-cache/optimum-gravatar-cache.php(2772): OGC->__construct() #1 /WillStocks/wp-settings.php(305): include_once('/WillStocks/wp-co...') #2 /WillStocks/wp-config.php(47): require_once('/WillStocks/wp-co...') #3 /WillStocks/wp-load.php(37): require_once('/WillStocks/wp-co...') #4 /WillStocks/wp-admin/admin.php(31): require_once('//WillStocks/wp-co...') #5 /WillStocks/wp-admin/index.php(10): require_once('/WillStocks/wp-co...') #6 {main} thrown in /WillStocks/wp-content/plugins/optimum-gravatar-cache/optimum-gravatar-cache.php on line 135

    I have had to disable the plugin due to the above error being shown on WP-Admin

Viewing 15 replies - 31 through 45 (of 56 total)
  • Plugin Contributor Will Stocks

    (@willstockstech)

    It’s also worth me quickly noting for you – the actual cache directory was not deleted when I deleted the previous install (again, I think I had manually mapped this folder).

    It still existed, so I’ve manually deleted it now as well. Looks like everything EXCEPT the /cache/avatars/ folder was removed when deleting the plugin.

    Plugin Author José Miguel

    (@jomisica)

    Wait, did the “/WillStocks/cache” directory exist when you saved the cache options?

    And thank you for your involvement with this plugin. It is for interested people that I like to program free and open software.

    Plugin Contributor Will Stocks

    (@willstockstech)

    No, \willstocks\cache did not

    But \willstocks\wp-content\cache\ did (which is where I had mapped the \avatars\ folder in 1.2.#) as that’s where I also store autoptimize cache and other caching things.

    When I logged into my FTP though (after deleting 1.3.2 per earlier comments), I had to manually delete teh \willstocks\wp-content\cache\avatars folder as it was still there, even though the plugin had been deactivated and deleted via wp-admin. It still had all the cached gravatars in it as well.

    I’ve now mapped the OGC cache to a different folder, which I had to manually create. I’ve just checked as well and if I create \willstocks\cache\ then it creates fine via FTP, but the plugin can’t do it itself for some reason.

    Hope this helps?

    Plugin Contributor Will Stocks

    (@willstockstech)

    Also, @jomisica, I don’t suppose there’s anything you can do about:

    <link rel="dns-prefetch" href="//0.gravatar.com">
    <link rel="dns-prefetch" href="//1.gravatar.com">
    <link rel="dns-prefetch" href="//2.gravatar.com">

    in the header of sites? Obviously, serving locally means that we don’t need users to prefetch that url? I’m 99% sure it’s Jetpack adding this, but I can’t work out how to filter it out!

    Plugin Author José Miguel

    (@jomisica)

    Thanks @willstockstech,

    I will analyze if it is convenient to remove and when, but it depends on some settings like:
    “Use gravatar until there is an avatar in the cache”
    and perhaps others.

    willstockstech, you are the ideal person to correct my English, and create a file
    en_UK.po, do you accept the challenge? I’ll use the phrases internally!

    Plugin Contributor Will Stocks

    (@willstockstech)

    Yeah, good point. If it can be removed in some way (I’ve asked on the Jetpack forum as well: https://www.ads-software.com/support/topic/filter-out-dns-prefetch-requests/) that’d be super, because it saves unnecessary requests ??

    I’m MORE than happy to give the translation a go for you! I’ve not personally translated for WordPress before, but that shouldn’t be an issue – I do a fair bit of translation/middle-man language conversion every day! ?? Which branch do you want me to take a look at: https://translate.www.ads-software.com/locale/en/default/wp-plugins/optimum-gravatar-cache

    Plugin Author José Miguel

    (@jomisica)

    I am translating internally some phrases that are still in Portuguese. Version 1.3.4 will already be fully translated to the best of my English. I would prefer that you edit the .pot file and translate it to good English. Then I enter your phrases in the code to be the default phrases.

    Of course you will have the credits in it, I will add your nickname in the project.

    Plugin Contributor Will Stocks

    (@willstockstech)

    Yes, more than happy to do that ?? Let me know when you want me to start taking a look and I’ll do as much as I can as quickly as I can for you!

    Plugin Author José Miguel

    (@jomisica)

    Thank you!

    Before syncing version 1.3.4 to WordPress, I’ll leave here the .pot file link.

    Plugin Contributor Will Stocks

    (@willstockstech)

    The project is on GitHub right? Do you want me to PR the .pot file in there?

    Plugin Author José Miguel

    (@jomisica)

    At the moment version 1.3.4 is only on my server, you can access it through the link:
    https://www.ncdc.pt/wp-content/plugins/optimum-gravatar-cache/languages/OGC.pot

    Plugin Contributor Will Stocks

    (@willstockstech)

    I’ll have a look through that over the next few days ??

    Are you happy for me to make tweaks, such as:

    #: optimum-gravatar-cache.php:532
    msgid “”
    “<b>Avatars sizes used</b>: You must enter at least one size. <br> Only whole ”
    “numbers are accepted from 1. <br> Separate the various values with a comma.”
    msgstr “”

    to (quick example, not fully proof-read!):

    #: optimum-gravatar-cache.php:532
    msgid “”
    “<b>Avatar sizes used</b>: You must enter at least one size. <br> Only whole ”
    “numbers are accepted from 1. <br> Separate the various values with a comma.”
    “<br> Alternatively you can enable Learning Mode.”
    msgstr “”

    Plugin Author José Miguel

    (@jomisica)

    Hello @willstockstech,

    Yes I am, it looks good to me.

    The idea is to be the most comprehensible for those who have English as their mother tongue.

    So that in the future others can use .POT in English to translate to other languages.

    Plugin Contributor Will Stocks

    (@willstockstech)

    Brilliant – alright, well I’ll take a look over the next few days for you and will let you know how I get along ??

    Plugin Author José Miguel

    (@jomisica)

    Hello @willstockstech,

    Is the translation going well?

    I want to test wordpress 5 with php 7.3 before launching November 19.

    Do you think I’ll have the translation on time?

Viewing 15 replies - 31 through 45 (of 56 total)
  • The topic ‘v1.3.0 has broken wp-admin’ is closed to new replies.