Eric
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Crontrol] Cron action callback not executingI am having the same issue. Made a cron event. it runs successfully but wont work.
Hey John I can give you access to the theme and you can see that I made a simple function and it does not seem to be executing.I also tried a PHP cron event right in the browser. they wont run…
- This reply was modified 5 years, 5 months ago by Eric.
Hi Nastia
https://www.dropbox.com/s/ophg9j3l43vm235/Screenshot%202019-09-24%2011.50.02.png?dl=0
Here were the settings for the plugin.
I then uploaded an image that had a width larger than 2048.
https://www.dropbox.com/s/v89vsz0u7se4mz2/Screenshot%202019-09-24%2011.50.56.png?dl=0As you can see it did not get resized on upload to the media library.
i was able to manually smush it afterward.When I have a chance i can spin up a dev and remove some plugins and see if that affects it. The only plugins I have that touch the media files are “crop thumbnails” plugin, and “regenerate thumbnails”
Ok. The issue seems to be from libs/sfsi_widget.php line 29.
Your are trying to get the title for the widget, which has not been set yet so it throws an error of undefined offset.
You should surround that line with isset and create a default to show.What you have:
apply_filters('widget_title', $instance['title'] )
What you need:
isset( $instance['title'] ) ? apply_filters('widget_title', $instance['title'] ) : ''
I changed the theme to twenty seventeen and the errors are still there.
i am the theme creator. lol.
These are some of the erros it throws:
( ! ) Notice: Undefined index: showf in /app/public/wp-content/plugins/ultimate-social-media-icons/libs/sfsi_widget.php on line 92 Call Stack #TimeMemoryFunctionLocation 10.0000407080{main}( )…/customize.php:0 24.882313608784do_action( )…/customize.php:265 34.882313609160WP_Hook->do_action( )…/plugin.php:465 44.882313609160WP_Hook->apply_filters( )…/class-wp-hook.php:310 54.905213715520WP_Customize_Manager->customize_pane_settings( )…/class-wp-hook.php:286 65.000613863392WP_Widget_Form_Customize_Control->json( )…/class-wp-customize-manager.php:4877 75.000613863392WP_Widget_Form_Customize_Control->to_json( )…/class-wp-customize-control.php:331 85.000713865912WP_Customize_Widgets->get_widget_control_parts( )…/class-wp-widget-form-customize-control.php:117 95.000713866664WP_Customize_Widgets->get_widget_control( )…/class-wp-customize-widgets.php:1072 105.000713884248wp_widget_control( )…/class-wp-customize-widgets.php:1053 115.000813885056Sfsi_Widget->form_callback( )…/widgets.php:265 125.000913885800Sfsi_Widget->form( )…/class-wp-widget.php:517 ” id=”widget-sfsi-widget-3-showf” name=”widget-sfsi-widget[3][showf]” />Please go to the plugin page to set your preferences
unfortunately it’s in development and I cannot easily give you that access….
Forum: Plugins
In reply to: [Perfect Images] using wp retina with logosI see. I was using method none, which somehow works if there are 2x images found in the body.
By switching to picture fill it started working.Forum: Plugins
In reply to: [Perfect Images] Using WP Retina with Ewww image optimizerI get a timeout and according to sitegorund which is where I am hosting
“I have tested the functionality and the issue seem to be caused by the fact that the process of optimizing the images ( that is done by the plugin ) is exceeding the timeout limits on the server due to the size of the images.”
This happens when both plugins are installed. When one is installed it does not happen.
Forum: Plugins
In reply to: [Gravity Forms: Post Updates] Using in a templateok so altogether:
for using in your theme templates and you want to let users (subscribers) edit a post, perhaps their profile post or something… I have a post type profile. Each user has a post there.
You need to make a edit page and put this in the template for that page:
//allow subscribers to edit post //even though they are not the author add_filter( 'gform_update_post/public_edit', '__return_true'); //update post action do_action('gform_update_post/setup_form', array('post_id' => $post_id, 'form_id' => 12)); //actual form echo gravity_form( 12, false, false);
My form ID was 12.
Lastly make sure you use conditionals and test to make sure on your own that this user can edit this specific post. In my site the post has a meta field that holds the subscribers ID.
Once i test the current_user_id against it I show the form.And lastly, use pre_submission hook to make sure they dont tamper with the update post id.
- This reply was modified 8 years, 4 months ago by Eric.
Forum: Plugins
In reply to: [Gravity Forms: Post Updates] Using in a templateok i looked through the code…
theres a lot more filters!!if you want to allow anyone to edit posts use:
add_filter( 'gform_update_post/public_edit', '__return_true');
Forum: Plugins
In reply to: [Gravity Forms: Post Updates] Using in a templateok:
for those of you scratching your heads wondering how to make this work:
the action must come first then echo the form.Now unfortunately for some reason the developers decided it would be smart to make it that only the author of the post or an admin can edit the post.
grrr… I guess it makes sense if your embedding it on a page or something.Here i was using current_user_can() to decide if the form should even be output based on the post id and the user id. And they went ahead and made it more difficult :/
sigh… ill play around and get back when i figure it out…Also beware users CAN change the update id via the hidden field and can ruin someone esles post. I would use pre_submission hook and reset it back to the current post in case it got tampered with…
Forum: Plugins
In reply to: [MC4WP: Mailchimp for WordPress] dynamic emailsmeh… ill just do it myself with wp_mail….
Forum: Fixing WordPress
In reply to: mk_button with query stringAre you using a form plugin or did you make the form yourself?
Are you trying to populate fields in a form?
Forum: Fixing WordPress
In reply to: blocked wp-admin IP address