Search Results for 'code'
-
Search Results
-
Hello,
When any user posts in any forum the following error messages appear, however the message DOES actually post. Anyone know what is causing this problem? and how to fix it. I am not a programmer so the code does not mean much to me
Warning: call_user_func_array() expects parameter 1 to be a valid callback, class ‘BBP_Admin_Replies’ does not have a method ‘update_reply’ in /home/clashing/public_html/wp-includes/plugin.php on line 524
Warning: Cannot modify header information – headers already sent by (output started at /home/clashing/public_html/wp-includes/plugin.php:524) in /home/clashing/public_html/wp-includes/pluggable.php on line 1174
WordPress 4.6.1
bbpress Version 2.5.10
Beaver Builder Child ThemeVersion: 1.0
http://clashingbeavers.com/beaver-forums/ (although the forums are hidden when not logged in)Thanks for you help
I’m trying to use this shortcode and it’s not working. I saw this issue was reported several times by the past and it seemed to be resolved but it’s still not working for me.
I think this was the original ticket: https://bbpress.trac.wordpress.org/ticket/1948I want to achieve the same comportment – get a list of topics classified under a specific topic tag. Is there a way I can get the shortcode to work OR could you help me code a workaround?
Thanks in advance!
When someone makes a reply to one of our topics, the automatic emails sent to subscribers of the topic contains style formatting that makes it very difficult to read.
This is an example from a recent reply:
<p class="MsoNormal">“The two schools of Buddha's doctrine, the esoteric and the exoteric, are respectively called the ‘Heart’ and the ‘Eye’ Doctrine. Bodhidharma called them in China — from whence the names reached Tibet — the <span style="font-family: 'Calibri','sans-serif';">Tsung-men</span> (esoteric) and <span style="font-family: 'Calibri','sans-serif';">Kiau-men</span> (exoteric school). It is so named, because it is the teaching which emanated from Gautama Buddha's <span style="font-family: 'Calibri','sans-serif';">heart</span>, whereas the ‘Eye’ Doctrine was the work of his head or brain. The ‘Heart Doctrine’ is also called ‘the seal of truth’ or the ‘true seal, a symbol found on the heading of almost all esoteric works.</p> <p class="MsoNormal">"Secret Heart" is the esoteric doctrine.</p> <p class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; line-height: normal; mso-outline-level: 5;"><b><span style="font-size: 10.0pt; font-family: 'Times New Roman','serif'; mso-fareast-font-family: 'Times New Roman';">H. P. Blavatsky, The Voice</span><i><span style="font-size: 10.0pt; font-family: 'Times New Roman','serif'; mso-fareast-font-family: 'Times New Roman';"> of the Silence</span></i></b><b><span style="font-size: 10.0pt; font-family: 'Times New Roman','serif'; mso-fareast-font-family: 'Times New Roman';">, Fragment 11. The Two Paths. </span></b></p> <p class="MsoNormal">http://www.theosociety.org/pasadena/voice/voice2.htm#nn1</p> Post Link: http://nexus.universaltheosophy.com/groups/art-of-living-study-group/forum/topic/weekly-theme-for-contemplation-the-law-of-love/#post-3548This happens when people copy/paste into their reply from another program (i.e. Word, etc.). How can we strip this formatting in the emails?
Details: we’re using the TinyMCE editor for replies, with “Text” and “Visual” field options. If members paste into the “text” field and then switch to the “visual” field before posting, there’s no issue, as wordpress cleans the content itself. But if people paste into the visual field, the formatting remains and gets sent as part of the auto email.
Also, we’re currently running bbpress 2.5.10 and WordPress 4.6.1.Topic: Profile in menu – php
WP 4.6 BBpress plugin 2.5.10
I am using some of the super BBpress code suggestions at https://codex.bbpress.org/layout-and-functionality-examples-you-can-use/ and most work just fine ‘out of the box’ but I am not sure what I should be putting in place of ‘ my_nav_menu_profile_link’ in this one. If I put in the code as is….// Filter wp_nav_menu() to add profile link add_filter( 'wp_nav_menu_items', 'my_nav_menu_profile_link' ); function my_nav_menu_profile_link($menu) { if (!is_user_logged_in()) return $menu; else $current_user = wp_get_current_user(); $user=$current_user->user_nicename ; $profilelink = '<li><a href="/forums/users/' . $user . '/edit">Edit Profile</a></li>'; $menu = $menu . $profilelink; return $menu; }I get this when trying the menu link……
Object not found!
The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.
If you think this is a server error, please contact the webmaster.
Error 404
localhost
Apache/2.4.23 (Win32) OpenSSL/1.0.2h PHP/5.6.24If I replace the ‘ my_nav_menu_profile_link’ with the actual link like this…..
/* Profile link in menu....................*/ // Filter wp_nav_menu() to add profile link add_filter( 'wp_nav_menu_items', 'http://localhost/wordpress/wp-admin/profile.php' ); function http://localhost/wordpress/wp-admin/profile.php($menu) { if (!is_user_logged_in()) return $menu; else $current_user = wp_get_current_user(); $user=$current_user->user_nicename ; $profilelink = '<li><a href="/forums/users/' . $user . '/edit">Edit Profile</a></li>'; $menu = $menu . $profilelink; return $menu; }I get this as soon as I go to the site…
Parse error: syntax error, unexpected ‘:’, expecting ‘(‘ in C:\xampp\htdocs\wordpress\wp-content\themes\twentytenchild\functions.php on line 49
What should I be entering and when I move to a live site will it need to be further changed?