Forum Replies Created
-
hello danbp, thanks for your reply.
I have tried the suggestion to use
define('WP_DEBUG', true);
in conjuction withdefine('WP_DEBUG_LOG', true);
with a twenty theme. It works fine when buddypress is not activated. No error or logfile whatsover. Then after I tried to activate buddypress, and test again. The media library still cannot load out. I have tried to check for error log and I can’t seems to find any.Nevertheless I found the culprit can be my bp-custom.php in which I put it just under /wp-content/plugins/[here]
if I remove the file and everything seems works fine again with buddypress activated.
This is the content for my bp-custom.php
<?php // hacks and mods will go here /** * Make a site Private, works with/Without BuddyPress * * @author sbrajesh * @global string $pagenow * */ /* function buddydev_private_site() { //first exclude the wp-login.php //register //activate global $pagenow; //do not restrict logged in users if( is_user_logged_in() ) { return ; } //if we are here, the user is not logged in, so let us check for exclusion //we selectively exclude pages from the list //are we on login page? if( $pagenow == 'wp-login.php' ) { return ; } //let us exclude the home page if( is_front_page() ) { return ; } $exclude_pages = array( 'register', 'activate', 'excelportfolio' );//add the slugs here //is it one of the excluded pages, if yes, we just return and don't care if( is_page( $exclude_pages ) ) { return ; } $redirect_url = wp_login_url( site_url('/') );//get login url, wp_safe_redirect( $redirect_url ); exit( 0 ); } */ //add_action( 'template_redirect', 'buddydev_private_site', 0 ); ?> <style type="text/css"> #wp-admin-bar-bp-login { display:none; /* JOWY: hide login link for buddypress. */ } #wp-admin-bar-bp-register { display:none; /* JOWY: hide register link for buddypress. */ } #adminloginform { color: #ffffff; /* JOWY: text color on form. */ } #wpadminbar { opacity: 0.7; /* JOWY: Opacity for wpadminbar. */ } </style>
what can possible went wrong?
Hello Dan,
The error is: “error occurred in the upload, please try again”. I cannot check from media library if the file is there. However, when I go to wp-content I can see the file is already being transferred to the folder. It is very weird.
I have seeing other people having the issue, but not just from BuddyPress.
https://wordpress.org/support/topic/media-library-cannot-display-images/I have tried but no luck. It seems mine is stucked with buddypress. I have cleared all my plugins and even only just installed and activate buddypress. I am not sure why this happens.
I haven’t try to deactivate “loginizer” and also “akismet” as they seems to come with the default wp installation. Moreover, it happens when I activate the buddypress. I am also running on default wordpress 2016 theme just to test things out.
Sorry for double posting. It seems that list view is fine. Only grid view keep loading on and on. Even there is error displayed, I can still see my files uploaded successfully.
Good day dan, thanks for your reply.
It doesn’t work for both whereas I am trying to browse and upload and also drag and drop.
Actually when I goes to my library, I can’t even display the items that I have uploaded. It is just keep on loading and loading.Hello guys, I am running with Ampps locally before I try to have my website upload in the actual server. I have recently find out that BuddyPress is the culprit. It only happens if BuddyPress is activated.
You can see the beside animation keeps going round and round and never really stop. How can this be solved?
I am using latest WordPress 4.6.1 and also latest buddypress 2.6.2
Thanks danbp! It work just fine!
Thread can be closed for now. Cheers!
Sorry guys, I found a rather neat solution here.
I believe it was not php error. Rather than the wordpress itself. The chunking still goes on and on. I checked the directory image was uploaded. But wordpress just give the error. Perhaps I need to reinstall and try again.