Search Results for 'string plugins template'
-
Search Results
-
Hi and first of all thanks for your plugin and the support
I m using Tutor LMS pro on a fresh new wordpress installation.
I decided to install the Buddypress addon but i hav a problem regarding the templateWordPress version 6.8.1
Thème actif : Sofia (version 1.0)
Extension actuelle : BuddyPress (version 14.3.4)
PHP version 8.1.32Une erreur de type E_ERROR a été causée dans la ligne 725 du fichier /home/clients/698fbd2a837b717e3115da6da7d93852/sites/renaissance.stellalapsy.fr/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress-functions.php. Message d’erreur : Uncaught TypeError: urldecode(): Argument #1 ($string) must be of type string, array given in /home/clients/698fbd2a837b717e3115da6da7d93852/sites/renaissance.stellalapsy.fr/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress-functions.php:725 Stack trace: #0 /home/clients/698fbd2a837b717e3115da6da7d93852/sites/renaissance.stellalapsy.fr/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress-functions.php(725): urldecode(Array) #1 /home/clients/698fbd2a837b717e3115da6da7d93852/sites/renaissance.stellalapsy.fr/wp-includes/class-wp-hook.php(324): bp_legacy_theme_ajax_querystring('', 'activity') #2 /home/clients/698fbd2a837b717e3115da6da7d93852/sites/renaissance.stellalapsy.fr/wp-includes/plugin.php(205): WP_Hook->apply_filters('', Array) #3 /home/clients/698fbd2a837b717e3115da6da7d93852/sites/renaissance.stellalapsy.fr/wp-content/plugins/buddypress/bp-core/bp-core-template.php(1157): apply_filters('bp_ajax_queryst...', '', 'activity') #4 /home/clients/698fbd2a837b717e3115da6da7d93852/sites/renaissance.stellalapsy.fr/wp-content/plugins/buddypress/bp-activity/bp-activity-filters.php(560): bp_ajax_querystring('activity') #5 /home/clients/698fbd2a837b717e3115da6da7d93852/sites/renaissance.stellalapsy.fr/wp-includes/class-wp-hook.php(326): bp_activity_heartbeat_last_recorded(Array, Array) #6 /home/clients/698fbd2a837b717e3115da6da7d93852/sites/renaissance.stellalapsy.fr/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array) #7 /home/clients/698fbd2a837b717e3115da6da7d93852/sites/renaissance.stellalapsy.fr/wp-admin/includes/ajax-actions.php(3503): apply_filters('heartbeat_recei...', Array, Array, 'front') #8 /home/clients/698fbd2a837b717e3115da6da7d93852/sites/renaissance.stellalapsy.fr/wp-includes/class-wp-hook.php(324): wp_ajax_heartbeat('') #9 /home/clients/698fbd2a837b717e3115da6da7d93852/sites/renaissance.stellalapsy.fr/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array) #10 /home/clients/698fbd2a837b717e3115da6da7d93852/sites/renaissance.stellalapsy.fr/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #11 /home/clients/698fbd2a837b717e3115da6da7d93852/sites/renaissance.stellalapsy.fr/wp-admin/admin-ajax.php(192): do_action('wp_ajax_heartbe...') #12 {main} thrown
According to https://codex.buddypress.org/translations/ we should store the
bbpress-de_DE.mo
andbbpress-de_DE.po
under/wp-content/languages/buddypress/
, which we did. But these language files are being ignored.We are using buddypress in de_DE and made some tweaks to the wording (we replaced the string “group” with “cluster” in German).
Buddypress uses the files stored under
/wp-content/languages/plugins/
and ignores the aforementioned folder.What we already tried:
- deleting the
buddypress-de_DE
files in/wp-content/languages/plugins/
: this partially works. Buddypress then uses our files stored in/wp-content/languages/buddypress/
. But somehow wordpress (or buddypress?) regenerates the files in/wp-content/languages/plugins/
after some hours. And then these “new” translations are used again of course. (Our own translations in/wp-content/languages/buddypress/
stay untouched by wordpress/buddypress) - Created a folder
/wp-content/languages/plugins/buddypress
and copied our files over to this folder. But to no avail – these files are being ignored completely (even if we delete the buddypress files in/wp-content/languages/plugins/
). - Copied our files directly to
/wp-content/languages/plugins/
: this works until these files get overwritten after a couple of hours
Specs:
- WordPress 6.0.1
- Buddypress 10.4.0
- Custom template, which we’ve written on our own
Multisite
Questions:
- What are we missing?
- Is there a way to stop wordpress/buddypress regenerating the files living directly in
/wp-content/languages/plugins/
? - What is the right place to store our translations?
I want to display only
activity_update
in 【fluits_content.php】.So, 【fluits_content.php】 was added by writing the following code in 【bp-custom.php】.
▼【wp-content\plugins\bp-custom.php】
<?php add_action( 'bp_setup_nav', 'fluits_nav'); function fluits_nav() { global $bp; bp_core_new_nav_item( array( 'name' => '果物', 'slug' => 'fluits', 'position' => 75, 'screen_function' => 'fluits', 'show_for_displayed_user' => true, 'default_subnav_slug' => 'fluits', 'item_css_id' => 'fluits' ) ); } function fluits_title() { echo '果物'; } function fluits () { add_action( 'bp_template_title', 'fluits_title' ); add_action( 'bp_template_content', 'fluits_content' ); bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) ); } function fluits_content() { include_once "buddypress/custom_user/fluits_content.php"; } ?>
But if I wrote the following code in 【fluits_content.php】, the list of
activity_update
will not be output.▼【wp-content\plugins\buddypress\custom_user\fluits_content.php】
<div class="activity_update_wrapper"> <?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) . '&action=activity_update' ) ) : ?> <?php while ( bp_activities() ) : bp_the_activity(); ?> <?php get_template_part( 'bp-templates/bp-legacy/buddypress/activity/entry.php' ) ?> <?php endwhile; ?> <?php endif; ?> </div>
How do I display only “activity_update” in “fluits_content.php”?
Thanks.
Hey everyone,
I have a membership site. It’s running Woocommerce, WP 4.9.6 and Buddypress 3.0.0. My BuddyPress status is below.I’m having a problem when someone is choosing a any kind of membership(I only have free and 1 paid at the moment). When they get to the billing screen they can either use Facebook or Google to login and fill in the details.
Once they do that, Buddypress redirects them to their wall. I want them to be able to continue the checkout process. I’ve tried so many things, but can’t override it.
Please help!
### WordPress Environment ### Home URL: http://www.specialtactics.global Site URL: http://www.specialtactics.global WC Version: 3.4.1 Log Directory Writable: ✔ WP Version: 4.9.6 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: ✔ Language: en_US External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.1.16 - We recommend using PHP version 7.2 or above for greater performance and security. How to update your PHP version PHP Post Max Size: 128 MB PHP Time Limit: 3000 PHP Max Input Vars: 1000 cURL Version: 7.54.0 OpenSSL/1.0.2k SUHOSIN Installed: – MySQL Version: 5.6.39-cll-lve Max Upload Size: 128 MB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ ### Database ### WC Database Version: 3.4.1 WC Database Prefix: wp_ MaxMind GeoIP Database: ✔ Total Database Size: 11.24MB Database Data Size: 10.10MB Database Index Size: 1.14MB wp_woocommerce_sessions: Data: 0.04MB + Index: 0.00MB wp_woocommerce_api_keys: Data: 0.00MB + Index: 0.00MB wp_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.00MB wp_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB wp_woocommerce_order_items: Data: 0.00MB + Index: 0.00MB wp_woocommerce_order_itemmeta: Data: 0.00MB + Index: 0.01MB wp_woocommerce_tax_rates: Data: 0.00MB + Index: 0.00MB wp_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB wp_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB wp_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.00MB wp_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB wp_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB wp_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB wp_woocommerce_log: Data: 0.00MB + Index: 0.00MB ts_redirects: Data: 0.00MB + Index: 0.00MB wp_achievements: Data: 0.02MB + Index: 0.01MB wp_bp_activity: Data: 0.01MB + Index: 0.01MB wp_bp_activity_meta: Data: 0.00MB + Index: 0.01MB wp_bp_friends: Data: 0.00MB + Index: 0.00MB wp_bp_groups: Data: 0.00MB + Index: 0.00MB wp_bp_groups_groupmeta: Data: 0.00MB + Index: 0.00MB wp_bp_groups_members: Data: 0.00MB + Index: 0.00MB wp_bp_links: Data: 0.00MB + Index: 0.00MB wp_bp_links_categories: Data: 0.00MB + Index: 0.00MB wp_bp_links_linkmeta: Data: 0.00MB + Index: 0.00MB wp_bp_links_votes: Data: 0.00MB + Index: 0.00MB wp_bp_messages_drafts: Data: 0.00MB + Index: 0.00MB wp_bp_messages_labels: Data: 0.00MB + Index: 0.00MB wp_bp_messages_label_message: Data: 0.00MB + Index: 0.00MB wp_bp_messages_messages: Data: 0.00MB + Index: 0.00MB wp_bp_messages_meta: Data: 0.00MB + Index: 0.00MB wp_bp_messages_notices: Data: 0.00MB + Index: 0.00MB wp_bp_messages_recipients: Data: 0.00MB + Index: 0.00MB wp_bp_notifications: Data: 0.00MB + Index: 0.00MB wp_bp_notifications_meta: Data: 0.00MB + Index: 0.00MB wp_bp_user_blogs: Data: 0.00MB + Index: 0.00MB wp_bp_user_blogs_blogmeta: Data: 0.00MB + Index: 0.01MB wp_bp_xprofile_data: Data: 0.00MB + Index: 0.00MB wp_bp_xprofile_fields: Data: 0.03MB + Index: 0.05MB wp_bp_xprofile_groups: Data: 0.00MB + Index: 0.00MB wp_bp_xprofile_meta: Data: 0.01MB + Index: 0.02MB wp_buddyboss_media: Data: 0.00MB + Index: 0.00MB wp_buddyboss_media_albums: Data: 0.00MB + Index: 0.00MB wp_commentmeta: Data: 0.00MB + Index: 0.01MB wp_comments: Data: 0.01MB + Index: 0.01MB wp_gde_profiles: Data: 0.00MB + Index: 0.00MB wp_gde_secure: Data: 0.00MB + Index: 0.00MB wp_learndash_user_activity: Data: 0.01MB + Index: 0.03MB wp_learndash_user_activity_meta: Data: 0.04MB + Index: 0.03MB wp_links: Data: 0.00MB + Index: 0.00MB wp_options: Data: 2.97MB + Index: 0.09MB wp_pmpro_discount_codes: Data: 0.00MB + Index: 0.00MB wp_pmpro_discount_codes_levels: Data: 0.00MB + Index: 0.00MB wp_pmpro_discount_codes_uses: Data: 0.00MB + Index: 0.00MB wp_pmpro_memberships_categories: Data: 0.00MB + Index: 0.00MB wp_pmpro_memberships_pages: Data: 0.00MB + Index: 0.00MB wp_pmpro_memberships_users: Data: 0.00MB + Index: 0.01MB wp_pmpro_membership_levelmeta: Data: 0.00MB + Index: 0.00MB wp_pmpro_membership_levels: Data: 0.00MB + Index: 0.01MB wp_pmpro_membership_orders: Data: 0.00MB + Index: 0.02MB wp_pmxi_files: Data: 0.00MB + Index: 0.00MB wp_pmxi_history: Data: 0.00MB + Index: 0.00MB wp_pmxi_imports: Data: 0.00MB + Index: 0.00MB wp_pmxi_posts: Data: 0.00MB + Index: 0.00MB wp_pmxi_templates: Data: 0.00MB + Index: 0.00MB wp_postmeta: Data: 0.83MB + Index: 0.21MB wp_posts: Data: 2.47MB + Index: 0.17MB wp_pp_login_builder: Data: 0.01MB + Index: 0.00MB wp_pp_password_reset_builder: Data: 0.01MB + Index: 0.00MB wp_pp_registration_builder: Data: 0.01MB + Index: 0.00MB wp_revslider_css: Data: 0.09MB + Index: 0.00MB wp_revslider_layer_animations: Data: 0.00MB + Index: 0.00MB wp_revslider_navigations: Data: 0.00MB + Index: 0.00MB wp_revslider_sliders: Data: 0.02MB + Index: 0.00MB wp_revslider_slides: Data: 0.18MB + Index: 0.00MB wp_revslider_static_slides: Data: 0.00MB + Index: 0.00MB wp_signups: Data: 0.00MB + Index: 0.00MB wp_social_users: Data: 0.00MB + Index: 0.00MB wp_termmeta: Data: 0.00MB + Index: 0.01MB wp_terms: Data: 0.00MB + Index: 0.01MB wp_term_relationships: Data: 0.00MB + Index: 0.01MB wp_term_taxonomy: Data: 0.00MB + Index: 0.01MB wp_usermeta: Data: 0.05MB + Index: 0.04MB wp_users: Data: 0.00MB + Index: 0.01MB wp_waiting: Data: 0.00MB + Index: 0.00MB wp_wc_download_log: Data: 0.00MB + Index: 0.00MB wp_wc_webhooks: Data: 0.00MB + Index: 0.00MB wp_wfBadLeechers: Data: 0.00MB + Index: 0.00MB wp_wfBlockedCommentLog: Data: 0.00MB + Index: 0.00MB wp_wfBlockedIPLog: Data: 0.00MB + Index: 0.00MB wp_wfBlocks7: Data: 0.00MB + Index: 0.00MB wp_wfConfig: Data: 0.36MB + Index: 0.01MB wp_wfCrawlers: Data: 0.00MB + Index: 0.00MB wp_wfFileChanges: Data: 0.00MB + Index: 0.00MB wp_wfFileMods: Data: 0.48MB + Index: 0.11MB wp_wfHits: Data: 0.14MB + Index: 0.03MB wp_wfHoover: Data: 0.00MB + Index: 0.00MB wp_wfIssues: Data: 0.00MB + Index: 0.00MB wp_wfKnownFileList: Data: 0.97MB + Index: 0.12MB wp_wfLeechers: Data: 0.00MB + Index: 0.01MB wp_wfLiveTrafficHuman: Data: 0.00MB + Index: 0.00MB wp_wfLocs: Data: 0.00MB + Index: 0.00MB wp_wfLogins: Data: 0.01MB + Index: 0.00MB wp_wfNet404s: Data: 0.00MB + Index: 0.00MB wp_wfNotifications: Data: 0.00MB + Index: 0.00MB wp_wfPendingIssues: Data: 0.00MB + Index: 0.00MB wp_wfReverseCache: Data: 0.00MB + Index: 0.00MB wp_wfScanners: Data: 0.00MB + Index: 0.00MB wp_wfSNIPCache: Data: 0.00MB + Index: 0.00MB wp_wfStatus: Data: 0.06MB + Index: 0.03MB wp_wfVulnScanners: Data: 0.00MB + Index: 0.00MB wp_wp_pro_quiz_category: Data: 0.00MB + Index: 0.00MB wp_wp_pro_quiz_form: Data: 0.00MB + Index: 0.00MB wp_wp_pro_quiz_lock: Data: 0.00MB + Index: 0.00MB wp_wp_pro_quiz_master: Data: 0.02MB + Index: 0.00MB wp_wp_pro_quiz_prerequisite: Data: 0.00MB + Index: 0.00MB wp_wp_pro_quiz_question: Data: 1.24MB + Index: 0.03MB wp_wp_pro_quiz_statistic: Data: 0.01MB + Index: 0.00MB wp_wp_pro_quiz_statistic_ref: Data: 0.00MB + Index: 0.00MB wp_wp_pro_quiz_template: Data: 0.00MB + Index: 0.00MB wp_wp_pro_quiz_toplist: Data: 0.00MB + Index: 0.00MB wp_wsluserscontacts: Data: 0.00MB + Index: 0.00MB wp_wslusersprofiles: Data: 0.00MB + Index: 0.00MB ### Post Type Counts ### attachment: 121 bmt-member-type: 4 bp-email: 32 cdfc: 1 condition_group: 1 custom_css: 1 customize_changeset: 9 forum: 1 jetpack_migration: 2 mc4wp-form: 1 nav_menu_item: 33 page: 39 post: 24 product: 12 revision: 1003 scheduled-action: 16 sfwd-certificates: 1 sfwd-courses: 7 sfwd-lessons: 36 sfwd-quiz: 38 sfwd-topic: 147 shop_order: 7 shop_subscription: 5 sidebar: 1 sp_wps_shortcodes: 1 topic: 4 wc_membership_plan: 6 wcps: 1 woocarousel: 1 wpachievements: 3 wpcf7_contact_form: 1 wpe_product_carousel: 1 yith_wcps_type: 1 ### Security ### Secure connection (HTTPS): ❌ Your store is not using HTTPS. Learn more about HTTPS and SSL Certificates. Hide errors from visitors: ✔ ### Active Plugins (50) ### Addons for WPBakery Page Builder: by Livemesh – 1.9.1 Akismet Anti-Spam: by Automattic – 4.0.7 bbPress: by The bbPress Community – 2.5.14 Better Search Replace: by Delicious Brains – 1.3.2 Boss for LearnDash: by BuddyBoss – 1.3.0 BP Redirect To Profile: by Brajesh Singh – 1.2.2 BuddyBoss Inbox: by BuddyBoss – 1.1.3 BuddyBoss Media: by BuddyBoss – 3.2.4 BuddyBoss One Click Installer: by BuddyBoss – 1.0.6 BuddyBoss Wall: by BuddyBoss – 1.3.3 BuddyPress for LearnDash: by BuddyBoss – 1.2.4 BuddyPress Member Types: by BuddyBoss – 1.1.2 BuddyPress: by The BuddyPress Community – 3.0.0 Contact Form 7: by Takayuki Miyoshi – 5.0.2 Force HTTPS: by LittleBizzy – 1.0.6 Google Doc Embedder: by Kevin Davis Dan Lester – 2.6.4 Insert or Embed Articulate Content into WordPress Trial: by Brian Batt – 4.292 WPBakery Page Builder: by Michael M - WPBakery.com – 5.4.7 LearnDash Content Cloner: by WisdmLabs – 1.2.2 LearnDash & bbPress Integration: by LearnDash – 2.0.2.1 LearnDash Course Grid: by LearnDash – 1.4.1 LearnDash ProPanel: by LearnDash – 2.1.3 LearnDash WooCommerce Integration: by LearnDash – 1.4.0 – Not tested with the active version of WooCommerce Mega Addons For Visual Composer: by Nasir – 2.2 Nextend Social Login: by Nextendweb – 3.0.10 Nextend Social Login Pro Addon: by Nextendweb – 3.0.8 WooCommerce Product Carousel Slider: by ADL Plugins – 3.0.2 – Not tested with the active version of WooCommerce Restrict Content: by Pippin Williamson – 2.2.3 Slider Revolution: by ThemePunch – 5.4.7.3 LearnDash LMS: by LearnDash – 2.5.8.2 Simple Buddypress Profile Privacy: by Justin Hansen – 0.7.7 String Locator: by Clorith – 2.3.0 Theme My Login: by Jeff Farthing – 6.4.16 Uncanny LearnDash Toolkit: by Uncanny Owl – 2.4.2 Uncanny LearnDash Toolkit Pro: by Uncanny Owl – 2.3.1 UpdraftPlus - Backup/Restore: by UpdraftPlus.Com DavidAnderson – 1.14.11 Essential WPBakery Page Builder (formerly Visual Composer) Addons: by themebon – 1.9.1 Waiting: by Plugin Builders – 0.4.5 WC4BP -> WooCommerce BuddyPress Integration (Premium): by ThemeKraft – 3.1.4 – Not tested with the active version of WooCommerce WC4BP -> Subscriptions: by ThemeKraft – 1.1.0 – Not tested with the active version of WooCommerce WC4BP -> BuddyPress xProfile Checkout Manager: by ThemeKraft – 1.3.0 – Not tested with the active version of WooCommerce WooCommerce Colors: by WooThemes – 1.0.7 – Not tested with the active version of WooCommerce WooCommerce PayPal Express Checkout Gateway: by WooCommerce – 1.5.5 WooCommerce Stripe Gateway: by WooCommerce – 4.1.6 WooCommerce Memberships: by SkyVerge – 1.10.4 WooCommerce Social Login: by SkyVerge – 2.5.2 WooCommerce Subscriptions: by Prospress Inc. – 2.2.21 WooCommerce: by Automattic – 3.4.1 – 3.4.2 is available WP File Manager: by mndpsingh287 – 2.7 WP Rollback: by WordImpress – 1.5 ### Settings ### API Enabled: ✔ Force SSL: ✔ Currency: USD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: course (course) 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) ### WC Pages ### Shop base: ❌ Page not set Cart: #562 - /cart/ Checkout: #9648 - /woocommerce-checkout/ My account: #9671 - /membership/ Terms and conditions: ❌ Page not set ### Theme ### Name: Boss. Child Theme Version: 2.4.3 Author URL: http://www.buddyboss.com Child Theme: ✔ Parent Theme Name: Boss. Parent Theme Version: 2.4.6 Parent Theme Author URL: https://www.buddyboss.com WooCommerce Support: ✔ ### Templates ### Overrides: – ### subscriptions ### WCS_DEBUG: ✔ No Subscriptions Mode: ✔ Live Subscriptions Template Theme Overrides: – Report Cache Enabled: ✔ Yes Cache Update Failures: ✔ 0 failure
Hello Everyone,
I got this error:
Trying to get property of non-object in /web/htdocs/www.bestalented.com/home/wp-content/plugins/buddypress/bp-activity/bp-activity-template.php on line 2325
function bp_get_activity_comment_link() {
global $activities_template;/**
* Filters the comment link for the current activity comment.
*
* @since 1.2.0
*
* @param string $value Constructed URL parameters with activity IDs.
*/HERE IS BELOW THE LINE!!!!
return apply_filters( ‘bp_get_activity_comment_link’, ‘?ac=’ . $activities_template->activity->id . ‘/#ac-form-‘ . $activities_template->activity->id );
}Could you please help me on that?
Thank you.
Best regards
FilippoBuddyPress 2.8.2 (Fatal error on php, 7.0.21 and 7.1.7)
ON PHP 7.0.21
Fatal error: Uncaught Error: Call to undefined function mysql_escape_string() in /home/xx/public_html/w/xx.com.br/wp-content/themes/wplms/functions.php:60 Stack trace: #0 /home/xx/public_html/w/xx.com.br/wp-settings.php(424): include() #1 /home/xx/public_html/w/xx.com.br/wp-config.php(89): require_once('/home/xxx73/...') #2 /home/xx/public_html/w/xx.com.br/wp-load.php(37): require_once('/home/xxx73/...') #3 /home/x/public_html/w/xx.com.br/wp-admin/admin.php(31): require_once('/home/xxx73/...') #4 /home/xx/public_html/w/xx.com.br/wp-admin/plugins.php(10): require_once('/home/xxx73/...') #5 {main} thrown in /home/xx/public_html/w/xxx.com.br/wp-content/themes/wplms/functions.php on line 60
ON PHP 7.1.7 (Sometimes this error occurs for no reason. And the error disappears for no reason as well)
Fatal error: Uncaught Error: [] operator not supported for strings in /home/xx/public_html/w/xx.com.br/wp-content/plugins/vibe-course-module/includes/bp-course-classes.php:106 Stack trace: #0 /home/xx/public_html/w/xx.com.br/wp-content/plugins/vibe-course-module/includes/bp-course-template.php(625): BP_COURSE->get(Array) #1 /home/xx/public_html/w/xx.com.br/wp-content/themes/wplms/course/my-courses.php(20): bp_course_has_items('user_id=893&per...') #2 /home/xxx73/public_html/w/xxx.com.br/wp-includes/template.php(688): require_once('/home/xxx73/...') #3 /home/xxx73/public_html/w/xxx.com.br/wp-includes/template.php(647): load_template('/home/xxx73/...', true) #4 /home/xxx73/public_html/w/xxx.com.br/wp-content/themes/wplms/members/single/course.php(41): locate_template(Array, true) #5 /home/xxx73/public_html/w/xxx.com.br/wp-includes/template.php(688): require_once('/home/xxx73/...') #6 /home/xxx73/public_html/w/xxx.com.br/wp-includes/template.php(647): load_template in /home/xxx73/public_html/w/xxx.com.br/wp-content/plugins/vibe-course-module/includes/bp-course-classes.php on line 106
—
Only working in PHP version 5.x
🙁**using theme WPLMS 2.9.2**
Hello, I’m currently using a plugin to show the activity-stream on my home page. I want that if users place an update it always shows up in the stream. Problem is that if i attach an image, it will not show up. Here is the plugin’s code:
<?php /** * Plugin Name: BuddyPress Activity ShortCode * Description: Embed activity stream in page/post using shortcode * Author: BuddyDev * Plugin URI: https://buddydev.com/plugins/bp-activity-shortcode/ * Author URI: https://buddydev.com/ * Version: 1.0.8 * License: GPL */ // exit if access directly if ( ! defined( 'ABSPATH' ) ) { exit; } class BD_Activity_Stream_Shortcodes_Helper { private static $instance; private function __construct() { $this->register_shortcodes(); } /* * Register ShortCode * * @example [activity-stream display_comments=threaded|none title=somethimg per_page=something] */ private function register_shortcodes() { add_shortcode( 'activity-stream', array( $this, 'generate_activity_stream' ) ); } /** * Get Instance * * @return BD_Activity_Stream_Shortcodes_Helper */ public static function get_instance() { if ( ! isset( self::$instance ) ) { self::$instance = new self(); } return self::$instance; } public function generate_activity_stream( $atts, $content = null ) { //allow to use all those args awesome! $atts = shortcode_atts( array( 'title' => 'Updates van Leden',//title of the section 'pagination' => 1,//show or not 'load_more' => 0, 'display_comments' => 'threaded', 'include' => false, // pass an activity_id or string of IDs comma-separated 'exclude' => false, // pass an activity_id or string of IDs comma-separated 'in' => false, // comma-separated list or array of activity IDs among which to search 'sort' => 'DESC', // sort DESC or ASC 'page' => 1, // which page to load 'per_page' => 6, //how many per page 'max' => false, // max number to return 'count_total' => true, // Scope - pre-built activity filters for a user (friends/groups/favorites/mentions) 'scope' => false, // Filtering 'user_id' => false, // user_id to filter on 'object' => false, // object to filter on e.g. groups, profile, status, friends 'action' => activity_update, // action to filter on e.g. activity_update, new_forum_post, profile_updated 'primary_id' => false, // object ID to filter on e.g. a group_id or forum_id or blog_id etc. 'secondary_id' => false, // secondary object ID to filter on e.g. a post_id // Searching 'search_terms' => false, // specify terms to search on 'use_compat' => bp_use_theme_compat_with_current_theme(), 'allow_posting' => false, //experimental, some of the themes may not support it. 'container_class' => 'activity',//default container, 'hide_on_activity' => 1,//hide on user and group activity pages ), $atts ); //hide on user activity, activity directory and group activity if ( $atts['hide_on_activity'] && ( function_exists( 'bp_is_activity_component' ) && bp_is_activity_component() || function_exists( 'bp_is_group_home' ) && bp_is_group_home() ) ) { return ''; } //start buffering ob_start(); ?> <?php if ( $atts['use_compat'] ) : ?> <div id="buddypress"> <?php endif; ?> <?php if ( $atts['title'] ) : ?> <h3 class="activity-shortcode-title"><?php echo $atts['title']; ?></h3><hr color="#000000"> <?php endif; ?> <?php do_action( 'bp_before_activity_loop' ); ?> <?php if ( $atts['allow_posting'] && is_user_logged_in() ) : ?> <?php bp_locate_template( array( 'activity/post-form.php' ), true ); ?> <?php endif; ?> <?php if ( bp_has_activities( $atts ) ) : ?> <div class="<?php echo esc_attr( $atts['container_class'] ); ?> <?php if ( ! $atts['display_comments'] ) : ?> hide-activity-comments<?php endif; ?> shortcode-activity-stream"> <?php if ( empty( $_POST['page'] ) ) : ?> <ul id="activity-stream" class="activity-list item-list"> <?php endif; ?> <?php while ( bp_activities() ) : bp_the_activity(); ?> <?php bp_get_template_part( 'activity/entry' ); ?> <?php endwhile; ?> <?php if ( $atts['load_more'] && bp_activity_has_more_items() ) : ?> <li class="load-more"> <a href="<?php bp_activity_load_more_link() ?>"><?php _e( 'Load More', 'buddypress' ); ?></a> </li> <?php endif; ?> <?php if ( empty( $_POST['page'] ) ) : ?> </ul> <?php endif; ?> <?php if ( $atts['pagination'] && ! $atts['load_more'] ) : ?> <div class="pagination"> <div class="pag-count"><?php bp_activity_pagination_count(); ?></div> <div class="pagination-links"><?php bp_activity_pagination_links(); ?></div> </div> <?php endif; ?> </div> <?php else : ?> <div id="message" class="info"> <p><?php _e( 'Sorry, there was no activity found. Please try a different filter.', 'buddypress' ); ?></p> </div> <?php endif; ?> <?php do_action( 'bp_after_activity_loop' ); ?> <form action="" name="activity-loop-form" id="activity-loop-form" method="post"> <?php wp_nonce_field( 'activity_filter', '_wpnonce_activity_filter' ); ?> </form> <?php if ( $atts['use_compat'] ) : ?> </div> <?php endif; ?> <?php $output = ob_get_clean(); return $output; } } BD_Activity_Stream_Shortcodes_Helper::get_instance();
Hope everybody is doing well.
Im having trouble using a plugin. The plugin is by likebtn.com and allows me to sort activity by most liked content. However it requires modifying a bit of code and im having quite the difficult time. I have tried pasting this line of code into a few different files. Currently im trying to paste it into ‘public_html/wp-content/plugins/buddypress/bp-activity/bp-activity-template.php’. When i try to include it into the PHP file the activity page breaks and a syntax error appears saying there was an unexpected ‘<‘ at the top of the new code. Here is where i pasted the code and the instructions provided by likebtn.comfunction bp_has_activities( $args = '' ) { global $activities_template; // Get BuddyPress. $bp = buddypress(); /* * Smart Defaults. */ //Filtering by Likes.Custom Code. <?php query_posts($query_string . '&meta_key=Likes&orderby=meta_value&meta_type=numeric&order=DESC'); ?> <?php /* Start the Loop */ ?> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', get_post_format() ); ?> <?php endwhile; ?> // User filtering. $user_id = bp_displayed_user_id() ? bp_displayed_user_id() : false;
https://likebtn.com/en/wordpress-like-button-plugin#sort_posts_by_likes
- deleting the