Forum Replies Created

Viewing 15 replies - 1 through 15 (of 18 total)
  • The simplest solution: deactivate debug mode.

    No, that’s not the solution. Many developers use .log to monitor some issues, using it with cron jobs, send logs elsewhere if something happen, etc., even in production. Of course, we lock this file for public access.

    Another solution: deactivate the automatic updating of plugins, themes and core

    Another bad idea. Important forced security updates from the core will also be disabled. Trust me, you don’t want to keep code with any 0-day vulnerability.

    How to disable them?

    This is happening here: https://github.com/WordPress/WordPress/blob/8d059b9fe25d2415c164b2f53e1a458ccdc20f99/wp-admin/includes/class-wp-automatic-updater.php#L672 and I don’t see any filter to turn it off. Which is weird and inexplicable

    Currently, one of my ideas is to use the sed -i command and run it with cron. This way you can delete the pattern.

    The simplest solution: deactivate debug mode.

    No, that’s not the solution. Many developers use .log to monitor some issues, using it with cron jobs, send logs elsewhere if something happen, etc., even in production. Of course, we lock this file for public access.

    Can anyone suggest why these messages have started appearing

    This is happening here: https://github.com/WordPress/WordPress/blob/8d059b9fe25d2415c164b2f53e1a458ccdc20f99/wp-admin/includes/class-wp-automatic-updater.php#L672 and I don’t see any filter to turn it off. Which is weird and inexplicable

    how I can switch them off?

    Currently, one of my ideas is to use the sed -i command and run it with cron. This way you can delete the pattern.

    Thread Starter Kris Kelvin

    (@kanlukasz)

    As you’ve noticed, I’m asking about specific capabilities. I know how to create roles/caps. I manage it via wp-cli, but the main problem is that I would like to give option to duplicate posts, but the manage_woocommerce cap contains many other too high permissions. So I’m looking for a way to solve this. We code custom dedicated application

    Thread Starter Kris Kelvin

    (@kanlukasz)

    I know there are a few plugins to handle this but I’m looking for a solution using the default importer. That’s the point

    Thread Starter Kris Kelvin

    (@kanlukasz)

    This stack exchange topic deals with encoding problems in the database, not the CLI. My database has the correct encoding. Note that if I use the --format flag withcsv instead of json, it works fine

    • This reply was modified 2 years, 10 months ago by Kris Kelvin.
    Thread Starter Kris Kelvin

    (@kanlukasz)

    
    ### WordPress Environment ###
    
    WordPress address (URL): xxxxxxxxxxxxxxx
    Site address (URL): xxxxxxxxxxxxxxx
    WC Version: 6.0.0
    REST API Version: ? 6.0.0
    WC Blocks Version: ? 6.3.3
    Action Scheduler Version: ? 3.3.0
    WC Admin Version: ? 2.9.4
    Log Directory Writable: ?
    WP Version: 5.8.2
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: ?
    WP Cron: ?
    Language: pl_PL
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache/2.4.51 (Ubuntu)
    PHP Version: 8.0.12
    PHP Post Max Size: 64 MB
    PHP Time Limit: 60
    PHP Max Input Vars: 10000
    cURL Version: 7.68.0
    OpenSSL/1.1.1f
    
    SUHOSIN Installed: –
    MySQL Version: 5.5.5-10.3.31-MariaDB-0ubuntu0.20.04.1
    Max Upload Size: 8 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 6.0.0
    WC Database Prefix: xxxxxxxxx_
    Ca?kowity rozmiar bazy danych: 4.73MB
    Rozmiar bazy danych: 2.84MB
    Rozmiar indeksu bazy danych: 1.89MB
    xxxxxxxxx_woocommerce_sessions: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    xxxxxxxxx_woocommerce_api_keys: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB
    xxxxxxxxx_woocommerce_attribute_taxonomies: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    xxxxxxxxx_woocommerce_downloadable_product_permissions: Dane: 0.02MB + Indeks: 0.06MB + Silnik InnoDB
    xxxxxxxxx_woocommerce_order_items: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    xxxxxxxxx_woocommerce_order_itemmeta: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB
    xxxxxxxxx_woocommerce_tax_rates: Dane: 0.02MB + Indeks: 0.06MB + Silnik InnoDB
    xxxxxxxxx_woocommerce_tax_rate_locations: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB
    xxxxxxxxx_woocommerce_shipping_zones: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB
    xxxxxxxxx_woocommerce_shipping_zone_locations: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB
    xxxxxxxxx_woocommerce_shipping_zone_methods: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB
    xxxxxxxxx_woocommerce_payment_tokens: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    xxxxxxxxx_woocommerce_payment_tokenmeta: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB
    xxxxxxxxx_woocommerce_log: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    xxxxxxxxx_actionscheduler_actions: Dane: 0.06MB + Indeks: 0.13MB + Silnik InnoDB
    xxxxxxxxx_actionscheduler_claims: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    xxxxxxxxx_actionscheduler_groups: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    xxxxxxxxx_actionscheduler_logs: Dane: 0.06MB + Indeks: 0.03MB + Silnik InnoDB
    xxxxxxxxx_commentmeta: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB
    xxxxxxxxx_comments: Dane: 0.02MB + Indeks: 0.09MB + Silnik InnoDB
    xxxxxxxxx_links: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    xxxxxxxxx_options: Dane: 1.09MB + Indeks: 0.08MB + Silnik InnoDB
    xxxxxxxxx_postmeta: Dane: 0.52MB + Indeks: 0.41MB + Silnik InnoDB
    xxxxxxxxx_posts: Dane: 0.27MB + Indeks: 0.06MB + Silnik InnoDB
    xxxxxxxxx_termmeta: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB
    xxxxxxxxx_terms: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB
    xxxxxxxxx_term_relationships: Dane: 0.08MB + Indeks: 0.06MB + Silnik InnoDB
    xxxxxxxxx_term_taxonomy: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB
    xxxxxxxxx_usermeta: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB
    xxxxxxxxx_users: Dane: 0.02MB + Indeks: 0.05MB + Silnik InnoDB
    xxxxxxxxx_wc_admin_notes: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB
    xxxxxxxxx_wc_admin_note_actions: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    xxxxxxxxx_wc_category_lookup: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB
    xxxxxxxxx_wc_customer_lookup: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB
    xxxxxxxxx_wc_download_log: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB
    xxxxxxxxx_wc_order_coupon_lookup: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB
    xxxxxxxxx_wc_order_product_lookup: Dane: 0.02MB + Indeks: 0.06MB + Silnik InnoDB
    xxxxxxxxx_wc_order_stats: Dane: 0.02MB + Indeks: 0.05MB + Silnik InnoDB
    xxxxxxxxx_wc_order_tax_lookup: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB
    xxxxxxxxx_wc_product_meta_lookup: Dane: 0.02MB + Indeks: 0.09MB + Silnik InnoDB
    xxxxxxxxx_wc_rate_limits: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    xxxxxxxxx_wc_reserved_stock: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB
    xxxxxxxxx_wc_tax_rate_classes: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    xxxxxxxxx_wc_webhooks: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    
    ### Post Type Counts ###
    
    acf-field: 27
    acf-field-group: 7
    attachment: 19
    customize_changeset: 3
    nav_menu_item: 111
    page: 13
    post: 2
    product: 150
    revision: 42
    shop_coupon: 1
    shop_order: 1
    wpcf7_contact_form: 1
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (6) ###
    
    Advanced Custom Fields PRO: przez Delicious Brains – 5.11.4
    Klasyczny edytor: przez Kontrybutorzy WordPressa – 1.6.2
    Classic Widgets: przez WordPress Contributors – 0.2
    Contact Form 7: przez Takayuki Miyoshi – 5.5.3
    WooCommerce: przez Automattic – 6.0.0
    
    ### Inactive Plugins (0) ###
    
    ### Must Use Plugins (0) ###
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: PLN (z?)
    Currency Position: right_space
    Thousand Separator: 
    Decimal Separator: ,
    Number of Decimals: 2
    Taxonomies: Product Types:
    external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    Taxonomies: Product Visibility:
    exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    ### Theme ###
    
    Name: This is custom theme
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: –
    
    ### Action Scheduler ###
    
    Zakończ: 109
    Oldest: 2021-12-06 18:39:58 +0100
    Newest: 2021-12-26 19:19:03 +0100
    
    ### Status report information ###
    
    Generated at: 2022-01-04 07:40:23 +01:00
    
    Thread Starter Kris Kelvin

    (@kanlukasz)

    Hi @rynald0s
    Thank you for your answer.

    Doing something like this with CSS is like keeping your home door closed, but not locked – at first glance you can’t open, but anyone smarter can open it anyway ??

    I am looking for a solid solution. I considered using woocommerce_package_rates only whenis_checkout but not sure it’s right way

    Thread Starter Kris Kelvin

    (@kanlukasz)

    A simple change

    dirname(plugin_basename(__FILE__)) . '/languages/' inside wp_set_script_translations() function (3rd argument)

    to

    plugin_dir_path(__FILE__) . 'languages/'

    **fixed the problem**

    Thread Starter Kris Kelvin

    (@kanlukasz)

    Thank you for your reply.

    My concerns:

    1. There is a concern that other core modules will come that will be of the same class. Unfortunately, you are not setting an ID for key basic elements (i don’t know why by the way)

    2. Like you said “A knowledgeable user could still invoke menu items”

    display:none; is a bit unprofessional in my opinion. It’s something like locking the door of your home, but without using a key – locked at first glance, but anyone can enter anyway.

    • This reply was modified 4 years, 1 month ago by Kris Kelvin.

    Good question. I am also looking for a solution.
    It is inconceivable that it is impossible to inject filter there. It’s even hard to hide it by the ID as the structure doesn’t generate unique tags. A very poor solution.

    Thread Starter Kris Kelvin

    (@kanlukasz)

    Thread Starter Kris Kelvin

    (@kanlukasz)

    After thorough testing, I see that “WPCF7_LOAD_JS” is not a problem. The problem is wpcf7_form_action_url – if it is used, the validation does not work.
    Let me know if you know why.
    Thank you

    He said what is better – this is MVC – thing that wordpress does not understand from a years. The same is with global variables.
    And another thing: we’re in 2018 and you’re still persistently mixing PHP and HTML what is just disgusting in serious development world.
    I like wordpress and please no offense, but you should think about what you creating – professional cms or toy for “plugin guys” without any design patterns

    • This reply was modified 5 years, 11 months ago by Kris Kelvin.
    • This reply was modified 5 years, 11 months ago by Kris Kelvin.

    In fact, old editor had a problem for dynamic change in layouts, BUT we all know what ACF is, right? ACF was the solution for developers who needed to create flexible layouts. Gutenberg is a really bad idea

    Thread Starter Kris Kelvin

    (@kanlukasz)

    ok, I will consider your point of view

    Anyway i will make some tests today.
    if everything is ok, of course I will mark the thread as solved

    Thank for your help and quick response!

Viewing 15 replies - 1 through 15 (of 18 total)