Replies
- Brajesh Singh on July 16, 2018 at 8:53 am in reply to: [Resolved] Featured Member: time limit option #16338
That would be strange. Is there any chance that WordPress Cron is disabled by your web host?
Hi Daniel,
I don’t see any issue in upgrading without disabling plugins. To be honest, There can be a fatal error caused during update by a unruly theme/plugin that calls BddydPress functionality(without BuddyPress provided hook or checking for the BuddyPress availability).
Try upgrading the staging environment first and see if it throws fatal. If it does, you can login to your original site and delete the staging environment and deactivate the plugin/theme causing fatal before upgrading.
After upgrading, if you keep the BP Legacy template pack, you won’t have any issue. If you switch to BP Nouveau template pack, you will see issues.
PS:- Thank you for the note and the donation. I was pleasantly surprised 🙂
Regards
BrajeshHi Nabeel,
I don’t own an iphone, so could not check on the iphone.I was able to get a windows computer today and tested it as per your previous post(using the chrome addon). I do see the issue. The issue is related to setting parameters/settings of the uploader.
It was a bug in the plupload library(older version). The bug is fixed in the newer version of plugpload but WordPress includes a very old version(2.1.2).
The solution for now will be to put a workaround for settings. Since I have managed to see the issue now, I can fix it. I will have the solution available in next 3-4 days.
Thank you
Brajesh- Brajesh Singh on July 16, 2018 at 8:17 am in reply to: [Resolved] Featured Member: time limit option #16334
Hi Herve,
1. Tried several variant:- 60 means 60 seconds but the cron job will only remove it after an hour(It checks hourly). Also, only newer members marked after you change the time will have the new time.So, change it to say 120( 2 minutes), Mark a user as featured member after the change and check after an hour.
DAY_IN_SECONDS is a constant that WordPress defines which is equivalent to 24*60*60( 86400) seconds.
Hi Andrew,
My approach and suggestion will depend on how many media you want to import and how often/convenient it should be.If it needs human intervention, I will go for a simple approach that provides an UI for moving to gallery.
If it can be automated, you can either create an array of media, gallery id and use a loop to automate it. Please do note that php time limits may not allow all to be imported in a go.
Writing a plugin is better approach but you can put the code in a file and include it in functions.php
Please make sure that you do not run the code before mpp_init action. The most suitable action for running the code will mpp_template_redirect if not using ajax actions.
Hi,
Please allow me to look into it and get back to you by Monday. It’s strange behaviour. Are you using any user blocking/exclusion or object caching plugin? Just trying to get some idea.Thank you
BrajeshHi Andrew,
Here are some of my suggestions.1. Instead of the WordPress API, Please use MediaPress API. It will make your job very easy and things will be setup automatically
You can use ‘mpp_create_gallery’ to create a gallery using code. Please search for ‘mpp_create_gallery’ on the forum and you will find many example. Here is one.
$component_id = 3709; $component = 'sitewide'; $gallery_id = mpp_create_gallery( array( 'creator_id' => get_current_user_id(), 'title' => 'some title', 'description' => '', 'status' => 'public', 'component' => $component, 'component_id' => $component_id, 'type' => 'photo', ) );Also, For importing Media to a galelry, we have helper functions like mpp_import_file() , mpp_import_attachment() using which you can import a file from server or an existing WordPress attachment to MediaPress.
Here is the signature for them
mpp_import_attachment( $attchment_id, $gallery_id, $overrides = array() ); mpp_import_file( $file_abs_path,$gallery_id, $overrides = array() );Both the function returns the imported media id or WP_Error object if there was a problem in importing.
Example:-
Import attachment id 32 to gallery id 7
mpp_import_attachment( 32, 7 );That will import the attachment and setup all the properties of media from the given galery(privacy, status, type, component etc).
If you want to override some propert, you can do it by passing 3rd argument. Let us assume that the gallery 7 is public but we want the imported media to be private, It can be easily accomplished by over riding status as
mpp_import_attachment( $attchment_id, $gallery_id, array( 'status' => 'private' ) );Same applies for the mpp_import_file(). You can import any file from server disk. It create an attachment out of the file(Please note that mpp_import_file() only copies the file, does not remove it from the original directory).
If you use these methods, the media will be setup properly and you won’t have issues in listing.
Regards
BrajeshThank you Oscar.
We haven’t been putting the likes plugin as we wanted to push the newer schema first. Our goal will be to push the newer scheam and like in next 3-4 weeks max.
Regards
BrajeshIt is a bug caused by the Essential grid. Please contact Themepunch team and ask that the plugin is not allowing meta to be saved for another plugin using CMB2.
If they say that it is not caused by their plugin, Please point me to the topic and I can prove it for them.
Also, I had a look at the code 2 year ago when Essential grid took down the site of one of my clients(Yes, It loaded 35000 posts while only showing 20). Sorry about this, but I will try to avoid playing with their code again.
That’s good to know.
Yes, I have deactivated it. Please try adding/removing tabs now.