Support » Plugin: BuddyPress Docs » Can’t create document since update to 2.0

  • Resolved wlaurito

    (@wlaurito)


    Hi!
    I am using:
    – WordPress 4.9.1
    – Buddypress 2.9.2
    – Buddypress Docs 2.0

    Since the last update the form of the Create Document page (/docs/create/) is not shown:
    https://ibb.co/gG2dpb (Screenshot)

    This is what I see in the dev tools:

    <div class="doc-content">
      <div id="idle-warning" style="display:none">...

    It does work as normal with Buddypress Docs 1.9.4

    What I did:
    – I have deactivated all plugins except Buddypress and BuddyPress Docs.
    – My functions.php file is empty too.
    – I removed all custom template files and modifications.
    – I tried using another theme –> the same problem
    – I used TotalCache to clean all caches

    Any idea?

    • This topic was modified 1 year, 4 months ago by  wlaurito.
    • This topic was modified 1 year, 4 months ago by  wlaurito.
    • This topic was modified 1 year, 4 months ago by  wlaurito.
    • This topic was modified 1 year, 4 months ago by  wlaurito.
Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Boone Gorges

    (@boonebgorges)

    Hi @wlaurito – Sorry to hear you are having troubles.

    Can you share more of the page content? You’ve shown a snippet from the dev tools, but it’s what comes after the ... that is of interest to me. Perhaps you can View Source and see if the page content is being killed at some point?

    It appears that something is causing a PHP fatal error on your page. Do you have access to a PHP error log where you might see what the error is? Are you able to enable WP_DEBUG in order to see if a Fatal is thrown?

    Hi @boonebgorges

    Thanks for your reply.

    This is what I get after enabling WP_Debug. Seems harmless no?

    
    WARNING: wp-includes/functions.php:1086 - Cannot modify header information - headers already sent by (output started at /var/www/html/wp-includes/functions.php:3894)
    require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), apply_filters('template_include'), WP_Hook->apply_filters, call_user_func_array, bp_template_include, apply_filters('bp_template_include'), WP_Hook->apply_filters, call_user_func_array, bp_template_include_theme_compat, do_action('bp_template_include_reset_dummy_post_data'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, BP_Docs_Theme_Compat->create_dummy_post, bp_theme_compat_reset_post, status_header, header
    
    NOTICE: wp-includes/functions.php:3894 - Die verwendete Konstruktor-Methode für Debug_Bar_Panel::Debug_Bar_Panel in Debug_Bar_Panel ist seit Version 0.8.3 veraltet! Verwende stattdessen __construct().
    require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, _wp_admin_bar_init, WP_Admin_Bar->initialize, do_action('admin_bar_init'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, Debug_Bar->init, Debug_Bar->init_panels, apply_filters('debug_bar_panels'), WP_Hook->apply_filters, call_user_func_array, Log_Viewer_DebugBar_Integration::integrate_debugbar, Log_Viewer_DebugBar_Panel->__construct, Debug_Bar_Panel->Debug_Bar_Panel, _deprecated_constructor, trigger_error

    This is the Source:
    https://gist.github.com/Retlawxx/3001308fc08463e8629ea3ad3076cd4c

    This is the idle-warning tag with children:

    <div id="idle-warning" style="display:none;">
    		<p>Sie haben für <span id="idle-warning-time> </ span> Leerlauf</p>
    	</div>
    
    	<form action=" "="" method="post" class="standard-form">
    	    </span></p><div class="doc-header">
    			    </div>
    	    <div class="doc-content-wrapper">
    		<div id="doc-content-title">
    			<label for="doc-title">Titel</label>
    			<input type="text" id="doc-title" name="doc[title]" class="long" value="">
    		</div>
    
    		
    		
    		<div id="doc-content-textarea">
    			<label id="content-label" for="doc_content">Inhalt</label>
    			<div id="editor-toolbar">
    				<div id="wp-doc_content-wrap" class="wp-core-ui wp-editor-wrap html-active"><link rel="stylesheet" id="editor-buttons-css" href="http://localhost:8080/wp-includes/css/editor.min.css?ver=4.8" type="text/css" media="all">
    <div id="wp-doc_content-editor-tools" class="wp-editor-tools hide-if-no-js"><div class="wp-editor-tabs"><button type="button" id="doc_content-tmce" class="wp-switch-editor switch-tmce" data-wp-editor-id="doc_content">Visuell</button>
    <button type="button" id="doc_content-html" class="wp-switch-editor switch-html" data-wp-editor-id="doc_content">Text</button>
    </div>
    </div>
    <div id="wp-doc_content-editor-container" class="wp-editor-container"><div id="qt_doc_content_toolbar" class="quicktags-toolbar"><input type="button" id="qt_doc_content_strong" class="ed_button button button-small" aria-label="Fett" value="b"><input type="button" id="qt_doc_content_em" class="ed_button button button-small" aria-label="Kursiv" value="i"><input type="button" id="qt_doc_content_link" class="ed_button button button-small" aria-label="Link einfügen" value="link"><input type="button" id="qt_doc_content_block" class="ed_button button button-small" aria-label="Zitat" value="b-quote"><input type="button" id="qt_doc_content_del" class="ed_button button button-small" aria-label="Gelöschter Text (durchgestrichen)" value="del"><input type="button" id="qt_doc_content_ins" class="ed_button button button-small" aria-label="Eingefügter Text" value="ins"><input type="button" id="qt_doc_content_img" class="ed_button button button-small" aria-label="Bild einfügen" value="img"><input type="button" id="qt_doc_content_ul" class="ed_button button button-small" aria-label="Aufzählung" value="ul"><input type="button" id="qt_doc_content_ol" class="ed_button button button-small" aria-label="Nummerierte Liste" value="ol"><input type="button" id="qt_doc_content_li" class="ed_button button button-small" aria-label="Listeneintrag" value="li"><input type="button" id="qt_doc_content_code" class="ed_button button button-small" aria-label="Code" value="code"><input type="button" id="qt_doc_content_more" class="ed_button button button-small" aria-label="Weiterlesen-Tag einfügen" value="more"><input type="button" id="qt_doc_content_close" class="ed_button button button-small" title="Alle offenen Tags schließen" value="Tags schließen"></div><textarea class="wp-editor-area" rows="20" autocomplete="off" cols="40" name="doc_content" id="doc_content"></textarea></div>
    </div>
    
    			</div>
    		</div>
    
    		
    					<div id="doc-attachments">
    				<label for="insert-media-button">Anhänge</label>
    					<a href="#" id="insert-media-button" class="button add-attachment add_media" data-editor="doc_content" title="Dateien hinzufügen"><span class="wp-media-buttons-icon"></span> Dateien hinzufügen</a>
    <ul id="doc-attachments-ul">
    </ul>
    			</div>
    		
    		<div id="doc-meta">
    			
    							
    				<div id="doc-associated-group" class="doc-meta-box">
    					<div class="toggleable toggle-open">
    						<p class="toggle-switch" id="associated-group-toggle">
    							<span class="hide-if-js toggle-link-no-js">Assoziierte Gruppe</span>
    							<a class="hide-if-no-js toggle-link" id="associated-toggle-link" href="#"><span class="show-pane plus-or-minus"></span>Assoziierte Gruppe</a>
    						</p>
    
    						<div class="toggle-content">
    							<table class="toggle-table" id="toggle-table-associated-group">
    									<tbody><tr>
    		<td class="desc-column">
    			<label for="associated_group_id">Welcher Gruppe soll diesem Dokument zugeordnet werden?</label>
    			<span class="description">(Optional) Beachten Sie, dass die Zugriffseinstellungen für dieses Dokument kann durch die Datenschutzeinstellungen der Gruppe wählen Sie begrenzt.</span>
    		</td>
    
    		<td class="content-column">
    			<select name="associated_group_id" id="associated_group_id"><option value="">Nichts</option><option value="1" selected="selected">Test</option></select>
    			<div id="associated_group_summary">
    				<a href="http://localhost:8080/gruppen/test/"><img src="http://localhost:8080/wp-content/plugins/buddypress/bp-core/images/mystery-group-50.png" class="avatar group-1-avatar avatar-40 photo" width="40" height="40" alt="Profilbild"></a><div class="item"><a href="http://localhost:8080/gruppen/test/">Test</a><div class="meta">Öffentliche Gruppe / (Mitglieder Typen: 1)</div></div>			</div>
    		</td>
    	</tr>
    								</tbody></table>
    						</div>
    					</div>
    				</div>
    
    							
    							
    				<div id="doc-settings" class="doc-meta-box">
    					<div class="toggleable toggle-open">
    						<p class="toggle-switch" id="settings-toggle">
    							<span class="hide-if-js toggle-link-no-js">Zugriff</span>
    							<a class="hide-if-no-js toggle-link" id="settings-toggle-link" href="#"><span class="show-pane plus-or-minus"></span>Zugriff</a>
    						</p>
    
    						<div class="toggle-content">
    							<table class="toggle-table" id="toggle-table-settings">
    									<tbody>	<tr class="bp-docs-access-row bp-docs-access-row-read">
    		<td class="desc-column">
    			<label for="settings-read">Wer kann das Dokument lesen?</label>
    		</td>
    
    		<td class="content-column">
    			<select name="settings[read]" id="settings-read">
    																		<option value="anyone" selected="selected">Jeder</option>
    														<option value="loggedin">Eingeloggte User</option>
    														<option value="group-members">Mitglieder von Test</option>
    														<option value="admins-mods">Nur für Gruppen Administratoren und Moderatoren von Test</option>
    														<option value="creator">Der Dokumentauthor alleine</option>
    							</select>
    		</td>
    	</tr>
    
    		<tr class="bp-docs-access-row bp-docs-access-row-edit">
    		<td class="desc-column">
    			<label for="settings-edit">Wer kann das Dokument bearbeiten?</label>
    		</td>
    
    		<td class="content-column">
    			<select name="settings[edit]" id="settings-edit">
    																		<option value="loggedin">Eingeloggte User</option>
    														<option value="group-members" selected="selected">Mitglieder von Test</option>
    														<option value="admins-mods">Nur für Gruppen Administratoren und Moderatoren von Test</option>
    														<option value="creator">Der Dokumentauthor alleine</option>
    							</select>
    		</td>
    	</tr>
    
    		<tr class="bp-docs-access-row bp-docs-access-row-read_comments">
    		<td class="desc-column">
    			<label for="settings-read_comments">Wer kann Kommentare zu diesem Dokument lesen?</label>
    		</td>
    
    		<td class="content-column">
    			<select name="settings[read_comments]" id="settings-read_comments">
    																		<option value="anyone" selected="selected">Jeder</option>
    														<option value="loggedin">Eingeloggte User</option>
    														<option value="group-members">Mitglieder von Test</option>
    														<option value="admins-mods">Nur für Gruppen Administratoren und Moderatoren von Test</option>
    														<option value="creator">Der Dokumentauthor alleine</option>
    							</select>
    		</td>
    	</tr>
    
    		<tr class="bp-docs-access-row bp-docs-access-row-post_comments">
    		<td class="desc-column">
    			<label for="settings-post_comments">Wer kann das Dokument kommentieren?</label>
    		</td>
    
    		<td class="content-column">
    			<select name="settings[post_comments]" id="settings-post_comments">
    																		<option value="anyone">Jeder</option>
    														<option value="loggedin">Eingeloggte User</option>
    														<option value="group-members" selected="selected">Mitglieder von Test</option>
    														<option value="admins-mods">Nur für Gruppen Administratoren und Moderatoren von Test</option>
    														<option value="creator">Der Dokumentauthor alleine</option>
    							</select>
    		</td>
    	</tr>
    
    		<tr class="bp-docs-access-row bp-docs-access-row-view_history">
    		<td class="desc-column">
    			<label for="settings-view_history">Wer kann die Änderungsgeschichte des Dokument sehen?</label>
    		</td>
    
    		<td class="content-column">
    			<select name="settings[view_history]" id="settings-view_history">
    																		<option value="anyone" selected="selected">Jeder</option>
    														<option value="loggedin">Eingeloggte User</option>
    														<option value="group-members">Mitglieder von Test</option>
    														<option value="admins-mods">Nur für Gruppen Administratoren und Moderatoren von Test</option>
    														<option value="creator">Der Dokumentauthor alleine</option>
    							</select>
    		</td>
    	</tr>
    
    	</tbody></table>
    						</div>
    					</div>
    				</div>
    
    							
    			
    	<div id="doc-folders" class="doc-meta-box">
    		<div class="toggleable toggle-open">
    			<p id="folders-toggle-edit" class="toggle-switch">
    				<span class="hide-if-js toggle-link-no-js">Ordner</span>
    				<a class="hide-if-no-js toggle-link" id="folders-toggle-link" href="#"><span class="show-pane plus-or-minus"></span><span class="toggle-title">Gruppenordner</span></a>
    			</p>
    
    			<div class="toggle-content">
    				<table class="toggle-table" id="toggle-table-folders">
    					<tbody><tr>
    						<td class="desc-column">
    							<label for="bp_docs_tag">Wählen Sie einen Ordner für dieses Dokument.</label>
    						</td>
    
    						<td>
    							<div class="existing-or-new-selector">
    								<input type="radio" name="existing-or-new-folder" id="use-existing-folder" value="existing" checked="checked">
    								<label for="use-existing-folder" class="radio-label">Verwende einen existierenden Ordner</label><br>
    								<div class="selector-content">
    									<select name="bp-docs-folder" id="bp-docs-folder" class="chosen-select "><option value="">- Keine -</option></select>								</div>
    							</div>
    
    							<div class="existing-or-new-selector" id="new-folder-block">
    								<input type="radio" name="existing-or-new-folder" id="create-new-folder" value="new">
    								<label for="create-new-folder" class="radio-label">Neuen Ordner erstellen</label>
    								<div class="selector-content" style="display: none;">
    
    									
    	<label for="new-folder">Name</label> <input name="new-folder" id="new-folder">
    
    	
    	<div style="clear:both"></div>
    
    	<div class="folder-type-selector-div cannot-change">
    		<label for="new-folder-type">Ordnertyp</label>
    		<select name="new-folder-type" id="new-folder-type" class="folder-type"><option value="global">Global</option><option value="me">Persönlich</option><optgroup label="Gruppen-spezifisch"><option value="1" selected="selected">Test</option></optgroup></select>	</div>
    
    	<div style="clear:both"></div>
    	<label for="new-folder-parent">Übergeordneter (optional)</label>
    	<select name="new-folder-parent" id="new-folder-parent" class="chosen-select folder-parent"><option value="">- Keine -</option></select>
    	<div style="clear:both"></div>
    									</div><!-- .selector-content -->
    							</div>
    						</td>
    					</tr>
    				</tbody></table>
    			</div>
    		</div>
    	</div>
    
    	
    			<div id="doc-tax" class="doc-meta-box">
    				<div class="toggleable toggle-open">
    					<p id="tags-toggle-edit" class="toggle-switch">
    						<span class="hide-if-js toggle-link-no-js">Schlagworte</span>
    						<a class="hide-if-no-js toggle-link" id="tags-toggle-link" href="#"><span class="show-pane plus-or-minus"></span>Schlagworte</a>
    					</p>
    
    					<div class="toggle-content">
    						<table class="toggle-table" id="toggle-table-tags">
    							<tbody><tr>
    								<td class="desc-column">
    									<label for="bp_docs_tag">Stichworte sind Wörter oder Phrasen, die Ihre Dokumente zu beschreiben und zu organisieren helfen.</label>
    									<span class="description">Stichworte durch Kommas trennen (zum Beispiel: <em> Orchester, Snare-Drum, piccolo, Brahms <!-- em-->)</em></span><em>
    								</em></td>
    
    								<td>
    										<textarea name="bp_docs_tag" class="the-tags" id="tax-input-bp_docs_tag"></textarea>
    								</td>
    							</tr>
    						</tbody></table>
    					</div>
    				</div>
    			</div>
    
    			
    							
    				<div id="doc-parent" class="doc-meta-box">
    					<div class="toggleable toggle-open">
    						<p class="toggle-switch" id="parent-toggle">
    							<span class="hide-if-js toggle-link-no-js">Übergeordnet</span>
    							<a class="hide-if-no-js toggle-link" id="parent-toggle-link" href="#"><span class="show-pane plus-or-minus"></span>Übergeordnet</a>
    						</p>
    
    						<div class="toggle-content">
    							<table class="toggle-table" id="toggle-table-parent">
    								<tbody><tr>
    									<td class="desc-column">
    										<label for="parent_id">Wählen Sie ein Elternteil für dieses Dokument.</label>
    
    										<span class="description">(Optional) ein übergeordnetes Dokument zuweisen bedeutet, dass ein Link zu den Eltern am unteren Rand dieses Dokuments erscheint, und einen Link zu diesem Dokument werden am unteren Rand des Mutter erscheinen.</span>
    									</td>
    
    									<td class="content-column">
    																			</td>
    								</tr>
    							</tbody></table>
    						</div>
    					</div>
    				</div>
    							
    					</div>
    
    		<div style="clear: both"> </div>
    
    		<div id="doc-submit-options">
    
    			<input type="hidden" id="_wpnonce" name="_wpnonce" value="b99d1dc52f"><input type="hidden" name="_wp_http_referer" value="/docs/create/?group=test">
    			<input type="hidden" id="doc_id" name="doc_id" value="36">
    			<input type="submit" name="doc-edit-submit" id="doc-edit-submit" value="Speichern"> <input type="submit" name="doc-edit-submit-continue" id="doc-edit-submit-continue" value="Save and Continue Editing"> <a href="http://localhost:8080/gruppen/test/docs/" class="action safe confirm">Abbrechen</a>
    
    					</div>
    
    		<div style="clear: both"> </div>
    	    </div>
    	
    
    	</div>

    Hi @boonebgorges

    Thanks for your reply. =)

    This is what I get after enabling WP_Debug. Seems harmless no? What do you think?

    
    WARNING: wp-includes/functions.php:1086 - Cannot modify header information - headers already sent by (output started at /var/www/html/wp-includes/functions.php:3894)
    require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), apply_filters('template_include'), WP_Hook->apply_filters, call_user_func_array, bp_template_include, apply_filters('bp_template_include'), WP_Hook->apply_filters, call_user_func_array, bp_template_include_theme_compat, do_action('bp_template_include_reset_dummy_post_data'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, BP_Docs_Theme_Compat->create_dummy_post, bp_theme_compat_reset_post, status_header, header
    
    NOTICE: wp-includes/functions.php:3894 - Die verwendete Konstruktor-Methode für Debug_Bar_Panel::Debug_Bar_Panel in Debug_Bar_Panel ist seit Version 0.8.3 veraltet! Verwende stattdessen __construct().
    require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, _wp_admin_bar_init, WP_Admin_Bar->initialize, do_action('admin_bar_init'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, Debug_Bar->init, Debug_Bar->init_panels, apply_filters('debug_bar_panels'), WP_Hook->apply_filters, call_user_func_array, Log_Viewer_DebugBar_Integration::integrate_debugbar, Log_Viewer_DebugBar_Panel->__construct, Debug_Bar_Panel->Debug_Bar_Panel, _deprecated_constructor, trigger_error

    This is the complete page Source:
    https://gist.github.com/Retlawxx/3001308fc08463e8629ea3ad3076cd4c

    • This reply was modified 1 year, 4 months ago by  wlaurito.
    Plugin Author Boone Gorges

    (@boonebgorges)

    Thanks for the response. It looks to me like the page content is *not*, in fact, being killed by a PHP error. It must be that the markup or CSS has changed so that the elements are hidden. Using your inspector, are you able to see any styles that may be causing the element to be invisble?

    Hi @boonebgorges
    thanks for your answer.
    well the only thing I see is
    <div id="idle-warning" style="display:none;"> After removing the display:none everything is shown, but you the Save buttons are not working =/

    Here is a screenshot showing the described behavior: https://imgur.com/a/rcU1R

    • This reply was modified 1 year, 4 months ago by  wlaurito.
    Plugin Author David Cavins

    (@dcavins)

    I see a problem in the code. The id isn’t closed in the span inside of the idle-document:
    <span id = "idle-warning-time>

    It looks like the closing ” has been left out in the translation.

    That span shouldn’t be part of the translation string anyway. But, wlaurito, I think that’s your issue.

    Plugin Author David Cavins

    (@dcavins)

    We’ve fixed this in the BP Docs 2.1.x branch:
    https://github.com/boonebgorges/buddypress-docs/commit/2ba26192d204bf8db4410f2d0e635a56688b1550

    Thanks for reporting the problem!

    Ok, thank you for that fix.

    But, sorry, still I’ve got the problem that whether the “Save”-Button nor the “Save and continue editing”-Button doesn’t seam to have any effect.

    So, still I can’t create a document…

    Netflixtech

    (@netflixtechweb)

    You can put below text in to doc plugin folder single/edit.php

    File having string text like single comma
    <?php _e(‘You have been idle for <span id=”idle-warning-time”></span>’, ‘buddypress-docs’); ?>

    I have just changed single(‘) to double (“) look like below code its working fine for me.
    <div id=”idle-warning” style=”display:none”>
    <p><?php _e(“You have been idle for <span id=’idle-warning-time’></span>”, “buddypress-docs”); ?></p>
    </div>

    Hi guys! I tried it with 2.1x but the problem is still there if I use German as my default language. For English (United States) it does work as expected.

    • This reply was modified 9 months, 1 week ago by  wlaurito.
Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Can’t create document since update to 2.0’ is closed to new replies.