Dono12
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Cart goes empty for logged out usersHey @ckadenge,
Thanks for getting back to me. I wasn’t able to find the root cause of the issue but the problem was resolved. Can’t actually say what caused it or what resolved it. Browser cookies, website caching, hosting server cache, plus all the aforementioned. The solution might’ve been permissions. In any case it started working again, thanks.
Forum: Plugins
In reply to: [WooCommerce] Cart goes empty for logged out usersI removed theme information because: “I have then checked the issue by disabling the plugins other than Woocommerce plugin but the issue is not resolved. I have tried changing the theme but the cart is not working as excepted”
` ### WordPress Environment ### WordPress address (URL): Site address (URL): ****************** WC Version: 8.8.2 REST API Version: ? 8.8.2 Action Scheduler Version: ? 3.7.4 Log Directory Writable: ? WP Version: 6.5.2 WP Multisite: – WP Memory Limit: 512 MB WP Debug Mode: ? WP Cron: ? Language: en_US External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.4.10 PHP Post Max Size: 20 MB PHP Time Limit: 120 PHP Max Input Vars: 1000 cURL Version: 7.47.0 OpenSSL/1.0.2g SUHOSIN Installed: – MySQL Version: 5.6.51-91.0-log Max Upload Size: 20 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 8.8.2 WC Database Prefix: exwv_ Total Database Size: 53.20MB Database Data Size: 43.29MB Database Index Size: 9.91MB exwv_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB exwv_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB exwv_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB exwv_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB exwv_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB exwv_woocommerce_order_itemmeta: Data: 0.08MB + Index: 0.09MB + Engine InnoDB exwv_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB exwv_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB exwv_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB exwv_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB exwv_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB exwv_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB exwv_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB exwv_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB exwv_actionscheduler_actions: Data: 3.52MB + Index: 3.20MB + Engine InnoDB exwv_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB exwv_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB exwv_actionscheduler_logs: Data: 2.52MB + Index: 2.48MB + Engine InnoDB exwv_cm_popfly_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDB exwv_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB exwv_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB exwv_gla_attribute_mapping_rules: Data: 0.02MB + Index: 0.00MB + Engine InnoDB exwv_gla_budget_recommendations: Data: 0.19MB + Index: 0.14MB + Engine InnoDB exwv_gla_merchant_issues: Data: 0.02MB + Index: 0.00MB + Engine InnoDB exwv_gla_shipping_rates: Data: 0.02MB + Index: 0.03MB + Engine InnoDB exwv_gla_shipping_times: Data: 0.02MB + Index: 0.02MB + Engine InnoDB exwv_jetpack_sync_queue: Data: 4.52MB + Index: 0.06MB + Engine InnoDB exwv_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB exwv_mailpoet_automations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB exwv_mailpoet_automation_runs: Data: 0.02MB + Index: 0.08MB + Engine InnoDB exwv_mailpoet_automation_run_logs: Data: 0.02MB + Index: 0.06MB + Engine InnoDB exwv_mailpoet_automation_run_subjects: Data: 0.02MB + Index: 0.03MB + Engine InnoDB exwv_mailpoet_automation_triggers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB exwv_mailpoet_automation_versions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB exwv_mailpoet_custom_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB exwv_mailpoet_dynamic_segment_filters: Data: 0.02MB + Index: 0.02MB + Engine InnoDB exwv_mailpoet_feature_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB exwv_mailpoet_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB exwv_mailpoet_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB exwv_mailpoet_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB exwv_mailpoet_newsletters: Data: 0.05MB + Index: 0.05MB + Engine InnoDB exwv_mailpoet_newsletter_links: Data: 0.02MB + Index: 0.05MB + Engine InnoDB exwv_mailpoet_newsletter_option: Data: 0.02MB + Index: 0.02MB + Engine InnoDB exwv_mailpoet_newsletter_option_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB exwv_mailpoet_newsletter_posts: Data: 0.02MB + Index: 0.02MB + Engine InnoDB exwv_mailpoet_newsletter_segment: Data: 0.02MB + Index: 0.02MB + Engine InnoDB exwv_mailpoet_newsletter_templates: Data: 2.52MB + Index: 0.00MB + Engine InnoDB exwv_mailpoet_scheduled_tasks: Data: 0.16MB + Index: 0.13MB + Engine InnoDB exwv_mailpoet_scheduled_task_subscribers: Data: 0.02MB + Index: 0.02MB + Engine InnoDB exwv_mailpoet_segments: Data: 0.02MB + Index: 0.03MB + Engine InnoDB exwv_mailpoet_sending_queues: Data: 0.05MB + Index: 0.03MB + Engine InnoDB exwv_mailpoet_settings: Data: 0.02MB + Index: 0.02MB + Engine InnoDB exwv_mailpoet_statistics_bounces: Data: 0.02MB + Index: 0.00MB + Engine InnoDB exwv_mailpoet_statistics_clicks: Data: 0.02MB + Index: 0.05MB + Engine InnoDB exwv_mailpoet_statistics_forms: Data: 0.02MB + Index: 0.02MB + Engine InnoDB exwv_mailpoet_statistics_newsletters: Data: 0.02MB + Index: 0.03MB + Engine InnoDB exwv_mailpoet_statistics_opens: Data: 0.02MB + Index: 0.08MB + Engine InnoDB exwv_mailpoet_statistics_unsubscribes: Data: 0.02MB + Index: 0.05MB + Engine InnoDB exwv_mailpoet_statistics_woocommerce_purchases: Data: 0.02MB + Index: 0.08MB + Engine InnoDB exwv_mailpoet_stats_notifications: Data: 0.02MB + Index: 0.03MB + Engine InnoDB exwv_mailpoet_subscribers: Data: 0.02MB + Index: 0.23MB + Engine InnoDB exwv_mailpoet_subscriber_custom_field: Data: 0.02MB + Index: 0.02MB + Engine InnoDB exwv_mailpoet_subscriber_ips: Data: 0.02MB + Index: 0.02MB + Engine InnoDB exwv_mailpoet_subscriber_segment: Data: 0.02MB + Index: 0.03MB + Engine InnoDB exwv_mailpoet_subscriber_tag: Data: 0.02MB + Index: 0.03MB + Engine InnoDB exwv_mailpoet_tags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB exwv_mailpoet_user_agents: Data: 0.02MB + Index: 0.02MB + Engine InnoDB exwv_mailpoet_user_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB exwv_options: Data: 5.42MB + Index: 0.13MB + Engine InnoDB exwv_postmeta: Data: 1.52MB + Index: 0.27MB + Engine InnoDB exwv_posts: Data: 0.48MB + Index: 0.06MB + Engine InnoDB exwv_smush_dir_images: Data: 0.02MB + Index: 0.03MB + Engine InnoDB exwv_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB exwv_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB exwv_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB exwv_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB exwv_tm_taskmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB exwv_tm_tasks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB exwv_usermeta: Data: 0.14MB + Index: 0.03MB + Engine InnoDB exwv_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB exwv_wc_admin_notes: Data: 0.08MB + Index: 0.00MB + Engine InnoDB exwv_wc_admin_note_actions: Data: 0.08MB + Index: 0.02MB + Engine InnoDB exwv_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB exwv_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB exwv_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB exwv_wc_orders: Data: 0.02MB + Index: 0.11MB + Engine InnoDB exwv_wc_orders_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB exwv_wc_order_addresses: Data: 0.02MB + Index: 0.06MB + Engine InnoDB exwv_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB exwv_wc_order_operational_data: Data: 0.02MB + Index: 0.03MB + Engine InnoDB exwv_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB exwv_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB exwv_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB exwv_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB exwv_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB exwv_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB exwv_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB exwv_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB exwv_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB exwv_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB exwv_wfblockediplog: Data: 0.02MB + Index: 0.00MB + Engine InnoDB exwv_wfblocks7: Data: 0.02MB + Index: 0.05MB + Engine InnoDB exwv_wfconfig: Data: 1.28MB + Index: 0.00MB + Engine InnoDB exwv_wfcrawlers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB exwv_wffilechanges: Data: 0.02MB + Index: 0.00MB + Engine InnoDB exwv_wffilemods: Data: 6.52MB + Index: 0.00MB + Engine InnoDB exwv_wfhits: Data: 0.14MB + Index: 0.05MB + Engine InnoDB exwv_wfhoover: Data: 0.02MB + Index: 0.02MB + Engine InnoDB exwv_wfissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB exwv_wfknownfilelist: Data: 11.52MB + Index: 0.00MB + Engine InnoDB exwv_wflivetraffichuman: Data: 0.02MB + Index: 0.02MB + Engine InnoDB exwv_wflocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB exwv_wflogins: Data: 0.22MB + Index: 0.06MB + Engine InnoDB exwv_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB exwv_wfls_role_counts: Data: 0.00MB + Index: 0.00MB + Engine MEMORY exwv_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB exwv_wfnotifications: Data: 0.05MB + Index: 0.00MB + Engine InnoDB exwv_wfpendingissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB exwv_wfreversecache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB exwv_wfsecurityevents: Data: 0.02MB + Index: 0.00MB + Engine InnoDB exwv_wfsnipcache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB exwv_wfstatus: Data: 0.13MB + Index: 0.11MB + Engine InnoDB exwv_wftrafficrates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB exwv_wfu_dbxqueue: Data: 0.02MB + Index: 0.00MB + Engine InnoDB exwv_wfu_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB exwv_wfu_userdata: Data: 0.02MB + Index: 0.02MB + Engine InnoDB exwv_wfwaffailures: Data: 0.02MB + Index: 0.00MB + Engine InnoDB exwv_wpmm_subscribers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ### Post Type Counts ### attachment: 125 buddyforms: 1 cm-ad-item: 2 custom_css: 3 customize_changeset: 22 kaliforms_forms: 1 mailpoet_page: 1 modula-gallery: 1 nav_menu_item: 13 oembed_cache: 3 page: 34 post: 37 product: 11 product_variation: 9 revision: 2 shop_coupon: 1 shop_order: 1 wp_global_styles: 3 wp_navigation: 1 wpcf7_contact_form: 2 wps_subscriptions: 18 ywsbs_subscription: 1 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (11) ### BuddyForms: by ThemeKraft – 2.8.9 Contact Form 7: by Takayuki Miyoshi – 5.9.3 EAN for WooCommerce: by WPFactory – 4.9.3 XML Sitemap Generator for Google: by Auctollo – 4.1.19 WooCommerce PayPal Payments: by WooCommerce – 2.6.1 WooCommerce: by Automattic – 8.8.2 Wordfence Security: by Wordfence – 7.11.5 WP-Optimize - Clean, Compress, Cache: by David Anderson Ruhani Rabin Team Updraft – 3.3.2 Smush: by WPMU DEV – 3.16.2 WP Super Cache: by Automattic – 1.12.0 YITH WooCommerce Subscription: by YITH – 3.4.0 ### Inactive Plugins (9) ### CM Pop-Up banners for WordPress: by CreativeMindsSolutions – 1.6.2 Facebook for WooCommerce: by Facebook – 3.1.15 Google Listings and Ads: by WooCommerce – 2.6.8 Jetpack: by Automattic – 13.3.1 Jetpack Boost: by Automattic - Jetpack Site Speed team – 3.2.2 LightStart - Maintenance Mode, Coming Soon and Landing Page Builder: by Themeisle – 2.6.11 MailPoet: by MailPoet – 4.49.0 Payment Plugins for PayPal WooCommerce: by Payment Plugins [email protected] – 1.0.46 WooCommerce Shipping & Tax: by WooCommerce – 2.5.4 ### Dropin Plugins () ### advanced-cache.php: advanced-cache.php ### Settings ### API Enabled: – Force SSL: – Currency: USD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) subscription (subscription) variable (variable) variable subscription (variable-subscription) 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) Connected to WooCommerce.com: – Enforce Approved Product Download Directories: ? HPOS feature screen enabled: – HPOS feature enabled: – Order datastore: WC_Order_Data_Store_CPT HPOS data sync enabled: – ### Logging ### Enabled: ? Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2 Retention period: 30 days Level threshold: – Log directory size: 65 KB ### WC Pages ### Shop base: #1599 - /products/ Cart: #1600 - /cart/ Checkout: #1601 - /checkout/ My account: #1602 - /my-account/ Terms and conditions: #387 - /terms-and-conditions/ ### Theme ### Name: ****************** Version: 1.0.0 Author URL: ****************** Child Theme: ? Parent Theme Name: ****************** Parent Theme Version: 1.2.6 Parent Theme Author URL: ****************** WooCommerce Support: ? ### Templates ### Archive Template: Your theme has a woocommerce.php file you will not be able to override the woocommerce/archive-product.php custom template since woocommerce.php has priority over archive-product.php. This is intended to prevent display issues. Overrides: ******************/woocommerce/checkout/form-billing.php ******************/woocommerce/checkout/form-coupon.php ******************/woocommerce/checkout/thankyou.php ******************/woocommerce/emails/email-footer.php ******************/woocommerce/emails/email-header.php ******************/woocommerce/emails/email-styles.php ******************/woocommerce/emails/plain/admin-cancelled-order.php ******************/woocommerce/emails/plain/admin-failed-order.php ******************/woocommerce/emails/plain/admin-new-order.php ******************/woocommerce/emails/plain/customer-completed-order.php ******************/woocommerce/emails/plain/customer-invoice.php ******************/woocommerce/emails/plain/customer-new-account.php ******************/woocommerce/emails/plain/customer-note.php ******************/woocommerce/emails/plain/customer-on-hold-order.php ******************/woocommerce/emails/plain/customer-processing-order.php ******************/woocommerce/emails/plain/customer-refunded-order.php ******************/woocommerce/emails/plain/customer-reset-password.php ******************/woocommerce/emails/plain/email-addresses.php ******************/woocommerce/emails/plain/email-customer-details.php ******************/woocommerce/emails/plain/email-downloads.php ******************/woocommerce/emails/plain/email-order-details.php ******************/woocommerce/emails/plain/email-order-items.php ******************/woocommerce/myaccount/dashboard.php ******************/woocommerce/myaccount/my-account.php ******************/woocommerce/myaccount/my-address.php ******************/woocommerce/myaccount/my-downloads.php ******************/woocommerce/myaccount/my-orders.php ******************/woocommerce/myaccount/navigation.php ******************/woocommerce/myaccount/orders.php ******************/woocommerce/myaccount/view-order.php ******************/woocommerce/single-product/title.php ### WooCommerce PayPal Payments ### Onboarded: ? Shop country code: US WooCommerce currency supported: ? Advanced Card Processing available in country: ? Pay Later messaging available in country: ? Webhook status: – PayPal Vault enabled: – ACDC Vault enabled: – Logging enabled: ? Reference Transactions: – Used PayPal Checkout plugin: – Subscriptions Mode: Disabled ### Admin ### Enabled Features: activity-panels analytics product-block-editor coupons core-profiler customize-store customer-effort-score-tracks import-products-task experimental-fashion-sample-products shipping-smart-defaults shipping-setting-tour homescreen marketing mobile-app-banner navigation onboarding onboarding-tasks product-variation-management product-virtual-downloadable product-external-affiliate product-grouped product-linked product-pre-publish-modal remote-inbox-notifications remote-free-extensions payment-gateway-suggestions shipping-label-banner subscriptions store-alerts transient-notices woo-mobile-welcome wc-pay-promotion wc-pay-welcome-page Disabled Features: minified-js new-product-management-experience product-custom-fields settings async-product-editor-category-field launch-your-store Daily Cron: ? Next scheduled: 2024-04-27 13:14:29 +00:00 Options: ? Notes: 168 Onboarding: completed ### Action Scheduler ### Complete: 75 Oldest: 2024-04-12 04:27:19 +0000 Newest: 2024-04-26 12:56:48 +0000 Failed: 3,592 Oldest: 2023-02-25 23:46:27 +0000 Newest: 2024-04-26 03:35:53 +0000 Pending: 3 Oldest: 2024-04-26 20:18:36 +0000 Newest: 2024-04-27 12:56:48 +0000 ### Status report information ### Generated at: 2024-04-26 15:20:32 +00:00 `
Forum: Plugins
In reply to: [Facebook for WooCommerce] Error showing in consoleI’ve already went through the various troubleshooting methods. One of which is shown in the screenshot. Yes that does create an error free console but no messenger. Also, I deactivated and installed Messenger the conventional way, with code. <!— Messenger Chat Plugin Code —> in website footer. The console error returns. So, guessing it’s originating from FB Mess, itself. I’m also apologizing because I read this after submitting the ticket yesterday:
https://github.com/woocommerce/facebook-for-woocommerce/issues/2622
Forum: Themes and Templates
In reply to: [Shapely] 2 x date format on Blog post@dewice, @steveax, and @w.reidlinger, I found a temporary solution add these two functions to your Child Theme and either comment out or remove all reference to get_the_modified in whatever version. The code below is a functioning example.
path://shapely/inc/template-tags.php
/***********************************TEMP BUG FIX UNTIL UPDATE************************************************ * Prints HTML with meta information for the current post-date/time and author. */ function shapely_posted_on() { $time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>'; //if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { // $time_string = '<time class="entry-date published" datetime="%1$s">%2$s</time><time class="updated" datetime="%3$s">%4$s</time>'; //} $time_string = sprintf( $time_string, esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ) // esc_attr( get_the_modified_date( 'c' ) ), // esc_html( get_the_modified_date() ) ); ?> <ul class="post-meta"> <li><i class="fa fa-user"></i><span><a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" title="<?php echo esc_attr( get_the_author() ); ?>"><?php esc_html( the_author() ); ?></a></span> </li> <li><i class="fa fa-calendar"></i><span class="posted-on"><?php echo wp_kses_post( $time_string ); ?></span></li> <?php shapely_post_category(); ?> </ul> <?php echo ( is_archive() ) ? '<hr>' : ''; } /**if * Prints HTML with meta information for the current post-date/time and author. */ function shapely_posted_on_no_cat() { if ( is_singular( 'jetpack-portfolio' ) ) { $post_author = get_theme_mod( 'project_author', true ); $post_date = get_theme_mod( 'project_date', true ); } else { $post_author = get_theme_mod( 'post_author', true ); $post_date = get_theme_mod( 'post_date', true ); } $time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>'; //if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { // $time_string = '<time class="entry-date published" datetime="%1$s">%2$s</time><time class="updated" datetime="%3$s">%4$s</time>'; //} $time_string = sprintf( $time_string, esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ) //esc_attr( get_the_modified_date( 'c' ) ), //esc_html( get_the_modified_date() ) ); if ( $post_date || $post_author ) : ?> <ul class="post-meta"> <?php if ( $post_date ) : ?> <li><span class="posted-on"><?php echo wp_kses_post( $time_string ); ?></span></li> <?php endif ?> <?php if ( $post_author ) : ?> <li><span><?php echo esc_html__( 'by', 'shapely' ); ?> <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" title="<?php echo esc_attr( get_the_author() ); ?>"><?php esc_html( the_author() ); ?></a></span></li> <?php endif ?> </ul> <?php endif; } /***********************************TEMP BUG FIX UNTIL UPDATE************************************************
The update worked, no more internal server error on post submission.
Thanks, DonoSo I’m guessing the answer is:
.appendTo(‘.bp-messages’);
What I’m trying to achieve is the original question proposed:
The message notification sound (beep) plays after each reload of the website page. Would you please tell how to fix this issue.
I’m just an observer whom tested the plugin. Not a
Javascript pro or anything but looking into the code located
in
folder path:
bp-better-messages->assets->js->bp-messages.jsYou’ll see:
$('<audio id="bp-messages-notification" style="display:none;">' + '<source src="' + notification + '.mp3" />' + '<source src="' + notification + '.ogg" />' + '<embed src="' + notification + '.mp3" hidden="true" autostart="false" loop="false" />' + '</audio>' ).appendTo('body');
I tried changing the body to a specific div related to the
individual page or even the message thread itself.
Maybe the plugin author could better clarify but it stopped
the alert when changing pages and kept it to messaging.one class was for the page itself:
.appendTo('.bp-messages');
The other class which I settled on is found in the thread:
.appendTo('.messages-stack');
Forum: Plugins
In reply to: Display Edit Link Only For Logged In and AuthorTry this tutorial. Follow the steps to the pot of gold at the end of the rainbow ??
Side Note, it only gives front-end editing capabilities to your users.
Also you should look into adjusting user capabilities locating in admin settings.https://codex.www.ads-software.com/Roles_and_Capabilities
https://code.tutsplus.com/tutorials/posting-via-the-front-end-editing-and-deleting–wp-27172
USE THIS TO REPLACE THE TUT’s EDIT LINK:
<?php global $current_user; get_currentuserinfo(); if ($post->post_author == $current_user->ID || current_user_can( 'manage_options' )) { ?> <div class="edit-post"> <a href="<?php echo $edit_post; ?>"><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> Edit Post</a></div> <?php } ?>
Forum: Plugins
In reply to: [Smart Recent Posts Widget] URL IN POST EXCERTFigured out a solution, I understand you’re busy so I did some digging and found that placing this piece of code in: includes -> functions.php will remove the URL showing in the sidebar. Hopefully you can take care of it in your next update.
function remove_url_from_excerpt( $text ) { if ( '' == $text ) { $text = get_the_content(''); $text = strip_shortcodes( $text ); $text = preg_replace( '~http(s)?://[^\s]*~i', '', $text ); // removes URLs $text = apply_filters( 'the_content', $text ); $text = str_replace(']]>', ']]>', $text); $excerpt_length = apply_filters( 'excerpt_length', 20 ); // default: 55 $excerpt_more = apply_filters( 'excerpt_more', ' ' . '[…]' ); $text = wp_trim_words( $text, $excerpt_length, $excerpt_more ); } return $text; } remove_filter( 'get_the_excerpt', 'wp_trim_excerpt' ); add_filter( 'get_the_excerpt', 'remove_url_from_excerpt');
Forum: Plugins
In reply to: [Recent Posts Widget Extended] Author Name Dropping Below LineThe issue you’re having comes from your theme styles. the div below adds a padding-top
to all a-tags/links in your sidebar including the one you inquired about.
.widget li a { padding: 4px 0; THIS ONE display: inline-block; vertical-align: top; }
Place this in your theme stylesheet and you should be straight.div.rss_content small a{ padding-top:0 !important; }
Forum: Themes and Templates
In reply to: [Sparkling] Nav Hover Title Text Shows Font Awesome TextFigured a solution.
edit navwalker.php located in wp-content->themes->your-theme-name->inc->navwalker.phpedit this line of code removing the not statement (!) before strpos
$atts['title'] = ( ! empty( $item->attr_title ) && !strpos($item->attr_title, '') ) ? $item->attr_title : $item->title;
Your new code
$atts['title'] = ( ! empty( $item->attr_title ) && strpos($item->attr_title, '') ) ? $item->attr_title : $item->title;
This should remove fontawesome tags showing in Nav title when hovered.
Showing only the Nav title of the page/category as the Developer Gods intended.
Forum: Plugins
In reply to: [BuddyPress Activity Plus] SSL compatibility ?I’m getting the same error. My site passes all the whynopadlock test. and yes my uploads folder is on my https server
but for some reason, which I’ve been searching for days now, I can’t figure out why After getting an SSL Cert, when
I try to upload an image from my local computer, I first get:1. “image.jpg0.3MBFailed”
2. the green padlock goes away
Inspect element: console Error:
3. Loading mixed (insecure) display content “https://www.mysite.com/wp-content/uploads/bpfb/tmp/undefined” on a secure page[Learn More] FIREFOX
How can this issue be resolved?
Forum: Plugins
In reply to: Display Edit Link Only For Logged In and AuthorFigured a solution for anyone having this issue. Simply remove the echo”
and add some extra php, like so:
<?php global $current_user; get_currentuserinfo(); if ($post->post_author == $current_user->ID || current_user_can( 'manage_options' )) { ?> <a href="<?php echo $edit_post; ?>">Edit</a> <?php } ?>
Solution :
adding a if else statement above code in wti_like_post.php
$my_cat_ids = array(<strong>ADD YOUR CATEGORY NUMBERS HERE</strong>); $category_ids = wp_get_post_categories( $post_id ); $match_array = array_intersect( $my_cat_ids, $category_ids );
Forum: Hacks
In reply to: Hack/Function for General-Template.phpIt worked like a charm. Thanks a lot Jose.