farhan25
Forum Replies Created
-
Here is a screenshot of Query Monitor for these errors:

@anghelemanuel99
Is there anything new about this issue?@anghelemanuel99
Hello there,Thanks for your time and here is my attempt to reproduce this bug on latest version of WordPress and the plugin:
I’ve just tested it locally on PHP 8.2.12 and with a fresh install of WordPress 5.6.2 (the default “Twenty Twenty-Four” theme is activated and no plugin other than TranslatePress is active) and I can confirm this bug exists.
Here is screenshots of the new installation and the issue again:



** edit: added margin between images.
- This reply was modified 2 years, 1 month ago by farhan25.
@danamv
Thanks for your reply,
What I want to achieve is super easy in bootstrap for example (or other flex libraries).
The first approach is not good enough because it will increase the DOM size and will cause double editing for desktop / tablet & phone.
I don’t know much about the second approach with grid block, but my data is static not dynamic so maybe I don’t need a post type.
I will try the second approach though.
Thanks for reading.Hello @hardeepasrani
Thanks for your reply,
Sorry but it doesn’t work for me because I want 6 columns.
If I used 2 sections approach, it will break to 4 rows on tablet (2, 1, 2, 1) but I need only one section so it will break to three rows (2, 2, 2) on tablet.
On desktop I can achieve (3, 3) with two sections, but then the problem will be on tablet.
I don’t want to use hide on desktop option since it’s not too practical and I’ll have to double editing in the future.
Thanks for reading.Forum: Fixing WordPress
In reply to: add_filter gettext is irreversible@bcworkz
Thanks a lot for your time.
It seems as you said, the plugin TranslatePress.
I just want to make sure that I can useadd_filterwithgettextwithout any dependency and without DB conflict, in case I want to remove it in the future.
Is that possible ?
Thank you again.Forum: Plugins
In reply to: [NSFW] [LiteSpeed Cache] Hacked – Pages under litespeed subfolderfellas I gotta say this is some of the most fucked up shit that I have ever seen
@renehermi Thanks a lot for your time, appreciate it.
Cheers 🙂Here is a screenshot for the bug:
https://ibb.co/C0G5qYF@renehermi the free version
The same goes for the cron wpstg_weekly_event
@iainelder Hello there,
I’m facing a similar issue, did you remove this cron and did it work for you?
Willing to do the same if it works successfully.
Thank you!Forum: Fixing WordPress
In reply to: problem with scheduled cronsYeah for sure, but thanks anyway for your help and putting attention for UTC and telling me that using date_default_timezone_set is a bad idea. It was my fault that I didn’t notice strtotime() at the first place ..
Forum: Fixing WordPress
In reply to: problem with scheduled crons@bcworkz
I found out what is causing this problem.
it’s the misuse ofstrtotimefunction,strtotime('12:00');is returning the 12:00 PM of the current day so:- if it runs after 12:00 PM, it consider the task schedule as elapsed time and thus the task will execute.
- if it runs before 12:00 PM, everything works as expected and it runs in the future this day.
using
strtotime('tomorrow 12:00');solve the problem as it assures the task will always run for the first time at the next 12:00 PM.
Thank you and happy holidays!Forum: Fixing WordPress
In reply to: problem with scheduled crons@bcworkz Thank you for your reply.
I’m using the latest WP version 5.6, when I deactivate all plugins including mine, then apply the same test mentioned here I get these tasks (with various intervals of course):- wp_scheduled_delete
- delete_expired_transients
- wp_scheduled_auto_draft_delete
- wp_privacy_delete_old_export_files
- wp_version_check
- wp_update_plugins
- wp_update_themes
- recovery_mode_clean_expired_keys
- wp_site_health_scheduled_check
As you can see, my task is not there since I call
wp_unschedule_eventon deactivating.
So I think there is no stray events.
The time as defined in$timestampis appearing in UTC as expected and it executes at the specific time in future, the problem is the execution immediately after activating the plug-in which I don’t want it to.
Thanks again for your time and Merry Christmas 🙂