Forum Replies Created

Viewing 15 replies - 1 through 15 (of 44 total)
  • Tested. The problem is solved! That’s grate!

    I am getting sometimes only the PHP notice:
    [24-Sep-2024 09:36:43 UTC] PHP Warning: Undefined array key “nonce” in ***/wp-content/plugins/wps-telegram-chat/public/partials/wps-telegram-chat-public-handler.php on line 19

    Can I define a nonce somehow?

    • This reply was modified 1 month, 4 weeks ago by norbou.
    norbou

    (@norbou)

    Hello, nice to hear from you, I have enabled new version of the plugin and it seems to be fixed now. I will check the debug log after some days.

    Thank you!

    Are there are some special settings for cache plugins like LSCache for this plugin needed?

    Hi guys,
    this is amazing plugin for live chat!

    I have the same problem on PHP 8.1. I have tested plugin on 2 different websites, one with WP 6.3.5, second website is running WP 6.6.1 with default theme. (demo.norbou.com)

    [28-Aug-2024 16:26:20 UTC] PHP Warning: Cannot modify header information – headers already sent in /home/u117824311/domains/demo.norbou.com/public_html/wp-content/plugins/wps-telegram-chat/public/class-wps-telegram-chat-public.php on line 171

    I have tried delete last row in the file specified, but no results.

    But wait, you are right that if the plugin is activated as only single one, the error does not occur. But with many plugins, like Hostinger AI or LSCache, this error occurs every single page load. I have noticed the problem after my debug log had 40 MB.

    I like to help you with the debugging, please let me know.

    Thank you!

    • This reply was modified 2 months, 3 weeks ago by norbou.
    norbou

    (@norbou)

    Hi, I had the same problem. Check the advanced settings in of the plugin. After upgrade is necessary to check heading level which should be included in the TOC. Obviously the default setting is NONE.

    Thread Starter norbou

    (@norbou)

    Hello Mike,

    nice to hear from you. You are right, just setting the heading levels again solved the problem.

    Yes, I am using only manual shortcode without collapsing.

    I feel like a lama ??

    I hope this will help other too.

    Thank you very much!

    Thread Starter norbou

    (@norbou)

    Thank you, I have it done.

    Thread Starter norbou

    (@norbou)

    Something like this would do the job?

    add_action('rest_api_init', function () {
    register_rest_route('eme/v1', '/available-seats/', array(
    'methods' => 'GET',
    'callback' => 'eme_get_available_seats',
    ));
    });
    
    function eme_get_available_seats(WP_REST_Request $request) {
    // Kód pro získání po?tu dostupnych sedadel
    // Nahra?te tento kód konkrétním zp?sobem, jak získat dostupná sedadla na základě va?í aplikace
    $available_seats = array();
    for ($i = 1; $i <= 53; $i++) {
    $available_seats[$i] = get_option("_AVAILABLESEATS{" . $i . "}", 0);
    }
    
    return new WP_REST_Response($available_seats, 200);
    }

    Thread Starter norbou

    (@norbou)

    Omg. Another exception is when the pdf file has a thumbnail generated by the Document Gallery plugin in the form of:

    00196-sch6_sw_stonework_elements_schedule_a4-a3.pdf
    00196-sch6_sw_stonework_elements_schedule_a4-a3-thumb.png
    00196-sch6_sw_stonework_elements_schedule_a4-a3-thumb-1.png
    00196-sch6_sw_stonework_elements_schedule_a4-a3-thumb-2.png
    00196-sch6_sw_stonework_elements_schedule_a4-a3-thumb-3.png
    00196-sch6_sw_stonework_elements_schedule_a4-a3-thumb-4.png

    In this case MLA can’t generate anything with any settings at all in that case. That wouldn’t matter, the only problem is that the preview doesn’t show up in the media gallery at all because it’s linked to the image name 00196-sch6_sw_stonework_elements_schedule_a4-a3-pdf.jpg, which simply doesn’t exist.

    Document gallery is simple shortcode to show some PDF files like at the bottom od the this page:
    https://www.arc.cz/portfolio-item/2010-rodinny-dum-v-el-palol/

    I don’t know, why is the thumbnail linked to JPG and not to the PNG which exists and how to repair it in a bulk. MLA just says:
    Item 142403, has native thumbnail.

    Can MLA display a PDF gallery with thumbnails that I could replace with the Document Gallery plugin?

    Thread Starter norbou

    (@norbou)

    However, in other cases it also doesn’t work, namely when a previously uploaded file contains forbidden characters that are already modified by Worpdpress implicitly since version 5.3. It also does it wrong, it generates correctly modified file names, but the link leads to an unmodified file. I guess there’s no way to arrange it so that WP saves the correctly sanitized names of the generated thumbnails in the database, right?

    Thread Starter norbou

    (@norbou)

    One edit. It is not necessary to cleanup “-thumb.png” files, which are being generated by Document Gallery plugin.

    Thread Starter norbou

    (@norbou)

    Hi David,
    I wouldn’t wish my problem on anyone to reproduce it, much less you ??

    Yes, I’ve generated several thousand thumbnails just using MLA before and it worked great. It still works now, but it generates thumbnails with a numeric suffix in the title, whereas they don’t show up in the media library at all, as they are linked to the file name without the suffix.

    I didn’t remove the old thumbnails. What happened was that I was removing the language version of the site in the WPML administration with the “Image Regenerate & Select Crop” plugin activated. The latter misinterpreted something and took the initiative to delete the media file thumbnails, probably in an attempt to keep the media library in order. It could have been that he only deleted them on the filesystem, but records of already generated thumbnails (not only PDFs) remained in the database. We can still verify this somehow by running some queries.

    I have filtered some old pdf thumbnails and deleted them using query:
    find . -type f -regex “.-pdf-.(-[0-9]+x[0-9]+)?.jpg” -exec rm -f {} \;
    find . -type f -iname “-[0-9]x[0-9]*.pdf” -exec rm -f {} \;
    find . -type f -iname “-thumb.png” -exec rm -f {} \;

    All these files I have still found in uploads folder.

    Wow, it helps in some cases but the in some cases I still had a problem to see generated thumbnail and it was cased by forcing lowercase in filenames. After switching this function off it works.

    Thank you for your reply and good question, the problem seems to be solved now ??

    If you think, that it is a really good idea, you can use my regular expression for old thumbnails cleanup, but I made the mess also with PDF thumbnail generator plugin, which doesn’t worked well for me.

    Conclusion for others is: use only the MLA plugin and no other ones ??

    • This reply was modified 1 year, 7 months ago by norbou.
    Thread Starter norbou

    (@norbou)

    Sanitize function in WP removes only non UTF-8 characters. When you upload file from UTF-8 compatible system, accented characters will remain.

    This is quite funny, because the requirement for the function implementation was that the function be consistent with how slugs are generated. So it’s inconsistent again. And I’ve found, for example, that our backup server doesn’t support utf-8 in filenames…

    • This reply was modified 1 year, 9 months ago by norbou.
    norbou

    (@norbou)

    I have the same problem. I like to use them together, but I had to turn Email encoder off.

    Here is some basic workarround, but still not resolution:
    https://wpml.org/errata/email-encoder-protect-email-addresses-and-phone-numbers-there-is-a-problem-connecting-to-automatic-translation/

    Waiting for plugin author…

    I hope it will be possible to fix it.

    Thread Starter norbou

    (@norbou)

    Hei Vytis,
    when the oroginal is too big, you can request the filename_scaled.jpg version, which is generated by WordPress since version 5.3 in size 2560×2560 without asking anyone. But it was a good idea. I don’t know how to test it, but we hope it works that way.

    • This reply was modified 2 years, 3 months ago by norbou.
    • This reply was modified 2 years, 3 months ago by norbou.
Viewing 15 replies - 1 through 15 (of 44 total)