timinaust
Forum Replies Created
-
Forum: Plugins
In reply to: [Search Exclude] Search Exclude partially breaks my front pageHi @jmatiasmastro, sorry been away. The theme isn’t something that you can just install – it is highly integrated with a whole lot of settings, plugins etc, but I just tested 2.3.0 and confirm it does resolve the issue.
Thanks
Forum: Plugins
In reply to: [Search Exclude] Search Exclude partially breaks my front pageI too have discovered this issue – it specifically occurs where our custom theme calls get_posts, with a tax_term with an ‘OR’ across more than one taxonomy.
In our case we use the standard ‘category’ taxonomy, plus two custom taxonomies. If you query ids in only one taxonomy type it works, if you query ids across more than one taxonomy it returns zero. I have no filters on.
It appears that in class_frontend.php, line 62 the $tax_query is retrieved from the current query. Then at line 97 it is retrieved again into $existing_tax_query. Then the array_merge is wrong because the two custom taxonomies are joined with an ‘AND’, then merged to the existing ‘OR’.
I think that line 62 is wrong in that it should initialise an empty array that you are populating with the search exclude filters.
Hope this helps.
Using 2.2.0
Thanks for your help… we do (did) run “Coming Soon Page, Maintenance Mode, Landing Pages & WordPress Website Builder by SeedProd”, and yes, deactivating that fixed our problem. I am now getting in via 2FA.
Same issue – looks like since wordpress 6.4.3 which automatically deployed some security updates yesterday. It applies to anyone logging in via wp-login.php, not just admins. We have login widget that does work (but is limited to non admin users).
Forum: Plugins
In reply to: [The Events Calendar] Event Price £ adds 163 to the beginning of PriceHi, thanks. The latest update appears to have mostly resolved this issue on new events. Existing events seem to have ‘Free’ in the edit box instead of zero and if you add a 10 price, you end up with ‘Free – A$10’. Not really a major issue for me in testing, but you can’t actually get back to a single value. I think there is something in the postmeta values that causing this, as it still creates two records for EventCost. One with zero, one with 10.
TimForum: Plugins
In reply to: [The Events Calendar] Event Price £ adds 163 to the beginning of PriceHi,
Just in case this helps – I have a test setup where I am evaluating at this plugin and I am having the same issue but with AU$ using the new blocks editor and the event price block. My test setup does have a lot of stuff loading but it seems to not impact this issue which appears to be in the price block javascript.
I create an event with a numeric event cost ’10’. This is saved in the database as a postmeta _EventCost with the numeric ’10’.
When I edit the event, the editor fetches the rendered Event Price block preview with a formatted string version of cost (‘$ 10’as escaped html) and the correct _EventCost (numeric ’10’) as a meta value. If I go to edit the price block, the cost shows the formatted escaped html string, not the numeric _EventCost.
When I then update the event, that formatted version of cost is posted back and saved as a second postmeta database string entry also _EventCost (both the original number and the formatted string now exist as _EventCost).
This further confuses the editor which previews the block by stripping out the digits from the escaped html, and the space between $ and number causes the front end to render the escaped html as a price range.
The problem seems to be that the ‘Event Price’ editor block preview is using formatted value which is then used in the edit/input field rather than the numeric_EventCost meta value – somewhere in either blocks.min.js or data.min.js – not sure. It is hard to read min code to see what is happening so I can’t see the logic or whether there is something that
Hope this helps find the issue.
Tim