papijo
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to remove “update available” on a plugin?Hi @20yogesh ,
Thanks for your helpful script. At first I was getting lots of syntax error, then realised I had to adapt the syntax to my Windows environment like this:
function disable_plugin_updates( $value ) {
if ( isset( $value ) && is_object( $value ) ) {
unset( $value->response['search-filter-pro/search-filter-pro.php'] );
// Replace with your plugin’s path
}
return $value;
}
add_filter( 'site_transient_update_plugins', 'disable_plugin_updates');- This reply was modified 5 days, 15 hours ago by papijo. Reason: put script in code to respect syntax!
Just to confirm that version 3.57 is working fine. I have solved my custom template problem.
@mihai Thanks for the update version 3.57
I’ve just tested it on my local and online wp sites. It seems to be working as expected, I no longer get errors etc. However my customised template located in “MYWPSITE\wp-content\ngg\modules\photocrati-nextgen_basic_thumbnails\templates\papijo-view.php” does not quite work as expected. I’ll probably have to review my customization.
@sbrenner This should not happen. If auto updates is not enabled, then plugins should not update… This is what I can see on my site where I have NextGEN 3.41 installed (and I will NOT update to 3.55 until I’m certain it’s working).
NextGEN Gallery You have version 3.41 installed. Update to 3.55. View version 3.55 details.
Compatibility with WordPress 6.4.2: 100% (according to its author)@designguide Fortunately, I have a local “mirror” of my online WP sites where I update my plugins first, in case there are problems, before updating the online sites. That’s how I found out that version 3.54 crashed my site. It was easier to remove 3.54 from my local site and revert to a copy of 3.41 (actually by copying the files from the online site!).
Thanks for your reply. I’ll stick with version 3.41 and wait for a reliable update.
Forum: Plugins
In reply to: [Collapsing Archives] Suggested fixes for PHP 82 more fixes!
File collapsing-archives\options.txt line 149 replace:
echo attribute_escape($key) with echo esc_attr($key)File collapsing-archives\processOptions.php line 34 replace:
$title = attribute_escape($options[$number][‘title’]);
with:
$title = esc_attr($options[$number][‘title’]);Forum: Plugins
In reply to: [Interactive Image] Not compatible with PHP 8Agreed they’re not errors but warnings, but there are really a lot of them! I’m not going to change my PHP settings, as I need warnings to be ON for my own developments.
You should really consider fixing those warnings.
Thanks!Forum: Plugins
In reply to: [Interactive Image] Not compatible with PHP 8Details:
localhost under WAMP64 server for Windows 11
php 8.0.13
wordpress latest version 6.1
There are tons of error messages, starting with this one:
Managing interactive areas
( ! ) Warning: Undefined array key “id_data” in C:\wamp64\www\htdocs\wp-garden\wp-content\plugins\interactive-image\views\interactive_image_creator.php on line 76 Call Stack #TimeMemoryFunctionLocation 10.0001373648{main}( )…\admin.php:0 20.592417842776do_action( $hook_name = ‘toplevel_page_interactive_images’ )…\admin.php:259 30.592417843152WP_Hook->do_action( $args = [0 => ”] )…\plugin.php:517 40.592417843152WP_Hook->apply_filters( $value = ”, $args = [0 => ”] )…\class-wp-hook.php:332 50.592417844280interactive_images( ” )…\class-wp-hook.php:308 60.603117847776include( ‘C:\wamp64\www\htdocs\wp-garden\wp-content\plugins\interactive-image\views\interactive_image_creator.php )…\interactive-image.php:241 Variables in local scope (#6)- This reply was modified 2 years, 4 months ago by papijo.
Hi @talextech and thanks for the super fast reply!
I’ve been to the stackoverflow link you suggest and have adapted it to my website and I’m glad to report that it works fine. Here is my adaptation, as can now be seen at https://www.rezeau.org/wp-garden/en/testing-sticky-menu-internal-links-2/
Instructions for pages created with the WP Gutenberg editor.
1.- In your site’s styles.css file, add this rule:.anchor { display: block; position: relative; top: -90px; //you may need to adapt this value to your own site visibility: hidden; }
2.- When editing a page with internal links:
Just before the paragraphs that you want internally linked, add one line/paragraph and enter any text, preferably the name of your anchor. On the right, in the editor Block Advanced HTML anchor, enter the anchor name, in the Additional CSS class(es) field enter anchor (the name of your anchor class)
Then, at the top of your page, in your “internal links list”, enter the anchor names as usual.I’m glad I can continue to use WP Sticky and insert internal links on my site pages.
Forum: Fixing WordPress
In reply to: Automatically assign parent category to post/page@corrinarusso Thanks for the links but I don’t understand how to use this to answer my problem.
Forum: Plugins
In reply to: [Polylang] Updating to WP Version 5.7 crashes PLL_Model::get_translations()Much better, thank you!
Forum: Plugins
In reply to: [Polylang] Updating to WP Version 5.7 crashes PLL_Model::get_translations()Hi @chouby
Many thanks for your prompt reply. It’s of course all my fault, I had completely missed the deprecation notices rePLL_Model::get_translations()
and the problem appeared as I simultaneously updated to WP 5.7 and Polylang 3.0.1!Anyway, this is how I managed to get the ID of the French post on a page in English:
$translations = pll_the_languages( array( 'raw' => 1 ) ); $url = $translations['fr']['url']; $curr_post_id_fr = url_to_postid( $url );
I’m using the url_to_postid( $url ) function because there does not seem to be a post ID value available in the array returned by pll_the_languages (). But I might be wrong.
Forum: Plugins
In reply to: [Media Library Assistant] Filter by media type?Tested, works fine.
Many thanks for your engagement, David!Forum: Plugins
In reply to: [Media Library Assistant] Long Load TimeDisabling “Where-used reporting” worked for me.