jonwarmington
Forum Replies Created
-
Thank you for fast response and for fixing it for the next release. Please confirm when next release is out and fix is applied as I had to manually update the plugin file for the client and will loose my change if the client updates the plugin and the next update does not have the fix.
Thank you
Does anyone actually work at Rednao?? Who is Edgar from PHP Storm?? And has this really been like this since 2017?? This bug still exists.. and its an amateur bug.. When your team created the Translation integration for PolyLang, the developer copied the Integration for WPML, and then updated the file.. but not entirely.. they left integration code to get the default language from WPML. So if anyone has Polylang translator, it crashes the admin so you cannot edit products unless you disable the plugin.
Here is the code of the integration class. Take a look at GetDefaultLanguage() method… its calling the built in function for WMPL get default language icl_get_default_language()
<?php
/**
* Created by PhpStorm.
* User: Edgar
* Date: 12/12/2017
* Time: 7:09 PM
*/
namespace rednaowooextraproduct\Integration\Translations;
class PolylangTranslator extends TranslationBase {
public function GetLanguages()
{
$languages=array();
if(function_exists('icl_get_languages'))
{
$tempLanguajes=icl_get_languages();
foreach($tempLanguajes as $language)
{
$languages[]=array(
'code'=>$language['language_code'],
'id'=>$language['id'],
'active'=>$language['active']=="1",
'translated_name'=>$language['translated_name'],
'country_flag_url'=>$language['country_flag_url']
);
}
}
return $languages;
}
public function GetDefaultLanguage()
{
return icl_get_default_language();
}
public function GetCurrentLanguage()
{
return pll_current_language( );
}
}a simple fix… put the PolyLang default language method in!!!
pll_default_language()
Here is the updated version of the class…
<?php
/**
?* Created by PhpStorm.
?* User: Edgar
?* Date: 12/12/2017
?* Time: 7:09 PM
?*/
namespace rednaowooextraproduct\Integration\Translations;
class PolylangTranslator extends TranslationBase {
? ? public function GetLanguages()
? ? {
? ? ? ? $languages=array();
? ? ? ? if(function_exists('icl_get_languages'))
? ? ? ? {
? ? ? ? ? ? $tempLanguajes=icl_get_languages();
? ? ? ? ? ? foreach($tempLanguajes as $language)
? ? ? ? ? ? {
? ? ? ? ? ? ? ? $languages[]=array(
? ? ? ? ? ? ? ? ? ? 'code'=>$language['language_code'],
? ? ? ? ? ? ? ? ? ? 'id'=>$language['id'],
? ? ? ? ? ? ? ? ? ? 'active'=>$language['active']=="1",
? ? ? ? ? ? ? ? ? ? 'translated_name'=>$language['translated_name'],
? ? ? ? ? ? ? ? ? ? 'country_flag_url'=>$language['country_flag_url']
? ? ? ? ? ? ? ? );
? ? ? ? ? ? }
? ? ? ? }
? ? ? ? return $languages;
? ? }
? ? public function GetDefaultLanguage()
? ? {
? ? ? ? return pll_default_language();
? ? }
? ? public function GetCurrentLanguage()
? ? {
? ? ? ? return pll_current_language( );
? ? }
}Please fix this!
Thank you for getting back to me, I just created the new ticket as requested.
Did anyone find a solution to this? I am also experiencing the exact same issue with the Notice output while a scan is in progress.
Can you update your plugin to state it supports the latest WP version? Sometimes clients see the message that the plugin does not support your version of WordPress and get nervous.
Looks like we are getting the same message. We recently switched to your plugin from another.
DoExpressCheckoutPayment API call failed.
Error Code: 10426
Error Severity Code: Error
Short Error Message: Invalid Data
Detailed Error Message: Item total is invalid.Ahh, right sorry about that. Ill complain to them then ??
Thanks that did it, I had already done the first adjustment with the settings to make sure they were enabled, but I never went into languages, or maybe I did and never noticed that message. Maybe that message should appear in the global flash message like most other messages?
Thanks!
Hello thanks. It looks like somehow the injection caused wordfence to not scan properly? I saw it happen on another site, once i removed the injection it was able to scan again.
Thanks
Forum: Plugins
In reply to: [Easy Bootstrap Shortcode] Issue with tabs shortcodeLast I checked this was not fixed in the tabs shortcode. Can you guys confirm if it was ever done or when it will be? I am using a custom shortcode for tabs right now, but would like to go back to yours.
MSCHOUTEN, do you see any errors within your debugger console? Maybe a JS error or missing a required component?
Thanks
Jon