hardesfred
Forum Replies Created
-
Forum: Plugins
In reply to: [Quotes for WooCommerce] wp crash after activateHi,
I’ve had the same issue with the latest version of Avada theme (6.2.3), or more precisely, after updating to the latest version of the Fusion Builder (2.2.3) and Fusion Core (4.2.3) plugins, which are required by the theme. The error only happens on the back-office, not the site frontend.This error reminded me of something I already encountered before : https://www.ads-software.com/support/topic/correction-for-v1-6-admin-error-500-and-more/
Back then, I suggested to increase the priority of the ‘admin_init’ hook in class-quotes-wc.php. That was a start, but not enough. We need the functions contained within qwc-functions.php to be available earlier, and also in the back-office. The fix is this :
Add this in quotes-woocommerce.php on line 20, just before the “class-quotes-wc.php” include :
include_once WP_PLUGIN_DIR . '/quotes-for-woocommerce/includes/qwc-functions.php';
This way, the file will always be included early enough, on both back-office and frontend. You can then remove that include on line 204 of class-quotes-wc.php- This reply was modified 4 years, 5 months ago by hardesfred.
- This reply was modified 4 years, 5 months ago by hardesfred.
Forum: Plugins
In reply to: [Page-list] Divi Theme show_content not workingHello again.
I had to deal with another site with the same problem, and I came to the conclusion that this is not fixable due to the way shortcodes work. Your plugin is not to blame.The only solution for me was to enable excerpt support for the pages using the filter
add_post_type_support('page', 'excerpt');
and define the content of said excerpts.This way, the plugin displays only what we tell it to display (the excerpt), without having to deal with the actual content of the page and the shortcodes it may (or may not) contain.
Cheers.
- This reply was modified 5 years, 2 months ago by hardesfred. Reason: correction on the code tag
Forum: Plugins
In reply to: [Page-list] Divi Theme show_content not workingThanks for looking into it !
Forum: Plugins
In reply to: [Page-list] Divi Theme show_content not working@webvitalii
Any idea about the problem we face with our shortcode-heavy themes ?Forum: Plugins
In reply to: [Page-list] Divi Theme show_content not workingI have the same problem, with Avada theme.
I think the problem is how the pagelist_unqprfx_parse_content function processes the content.
It uses the strip_shortcodes function which seems to do a little too much cleaning.
Add the fact that with heavy themes like Avada and Divi, shortcodes are sometimes not that short, you end up with either no content (strip_shortodes = 1) or mangled content (strip_shortcodes = 0).An unsatisfactory solution is to change the code in page-list.php, line 339 :
$text_content = $page->post_excerpt;
to$text_content = do_shortcode($page->post_excerpt);
(your mileage may vary).
That way, the shortcodes are executed before the page-list do its trimming and all.Forum: Plugins
In reply to: [Quotes for WooCommerce] Correction for v1.6 admin error 500 and moreThanks a lot!
CheersThanks a lot!
I’ve uploaded the translation using your contact form.
What do you mean by this: “upload file button and log file labels seem interverted”?
Actually, I was the one who switched the translations by mistake, sorry.
Although, the translation for the file upload button wasn’t applied. You should add a the translation domain on line 672 of the dashboard.php file.Unrelated :
I’ve taking the liberty to update the french translation : https://www.mediafire.com/file/w2dizbuzb4f5giu/wp-cerber-4.0_fr_translation.zip
Some things I noticed :
– upload file button and log file labels seem interverted
– the translation for the help text and placeholders on access list tab are missing
– not all of the “know more” links are translated
– same for the blocks on the right (be in touch, donate, …)
– and the help sectionForum: Plugins
In reply to: [List Urls] PHP 5.4.45 unexpected ‘class’ (T_CLASS)Easier way to get a simple csv of all published posts and pages : create a php file somewhere in your WP install folder with this content :
<?php include 'wp-load.php'; function fetch_posts(){ $args = array( 'post_type' => 'any', 'posts_per_page' => -1, 'post_status' => 'publish', 'suppress_filters' => false ); $posts = new WP_Query($args); $posts = $posts->posts; foreach((array) $posts as $post){ switch($post->post_type){ case 'revision': case 'nav_menu_item': break; case 'attachment': $permalink = get_attachment_link($post->ID); break; case 'page': case 'post': default: $permalink = get_permalink($post->ID); break; } echo "\n{$post->ID}\t{$post->post_type}\t{$post->post_title}\t{$permalink}"; } } header('Content-type:text/plain; charset=utf-8'); echo "ID\tType\tTitle\tPermalink"; // we need all languages if wpml is installed if(function_exists('icl_get_languages')){ $languages = icl_get_languages('skip_missing=0'); foreach((array) $languages as $lang){ // change language do_action('wpml_switch_language', $lang['code']); fetch_posts(); } } else { fetch_posts(); }
Access it directly with your browser (or run it via some cli).
- This reply was modified 8 years, 1 month ago by hardesfred.
Forum: Plugins
In reply to: [List Urls] PHP 5.4.45 unexpected ‘class’ (T_CLASS)Just encountered the same issue.
Turns out it’s because the csv library requires at least PHP 5.5.
Thus, the plugin has the same requirement…
I’m gonna try another plugin or export the urls manually with some sql queries.Forum: Plugins
In reply to: [WP Cerber Security, Anti-spam & Malware Scan] Notice of deprecated functionGreat, thanks !
Forum: Plugins
In reply to: [WP Cerber Security, Anti-spam & Malware Scan] French translationUpdated translation for v1.8 : https://www.mediafire.com/download/lyf5ovcco6if599/WP-Cerber_1.8_translation_fr.zip
Great ! Thanks mate !
Your plugin is getting quite complete, good job !A little question : I’ve noticed that the cerber_logger function looks for a constant variable (CERBER_FAIL_LOG) that the user must define uh.. .somewhere, if need be.
Do you plan to make it customizable via the Cerber setting ?
(ultimately I don’t really care because my fail2ban is set up to use the server’s main auth_log)Forum: Plugins
In reply to: [Theme My Login] Translation loadingFair enough. And thanks the fast reply.
That said, I’d suggest you mention this path (wp-content/languages/theme-my-login/theme-my-login-{locale}.mo) in the FAQ or somewhere else. It could help other people who didn’t understand, like me, why their translation files weren’t loaded.Cheers