While enabling Sendgrid plugin I get such a message:
SendGrid: wp_mail has been declared by another process or plugin
An interesting thing is that I disable all plugins and enabling this plugin I still get this error. Is it possible to see what kind of process is using wp_mail?
Refer below scenario,
1. Maybe plugin not supported your WP version.
2. This plugin may used WP core class or function because of that this second time declaration error may occur.
Related
Background: One of my sites is using the Forget About Shortcode Buttons plugin, but this is throwing some sort of conflict since one of the recent Wordpress updates. I've been trying to contact the developer through Wordpress.org and Twitter, but to no success - they haven't replied to any support requests on Wordpress.org in months. I cannot remove this plugin because so many buttons on the site have already been created with it and I don't have the time to redo everything through a different plugin.
Test Case: The easiest way to see this is to simply download and activate the plugin from here. Open up your javascript console and notice the error message 'Uncaught TypeError: Cannot read property 'id' of undefined' and points to wp.media.view.settings.post.id being undefined as soon as you activate the plugin. When I go in and console.log wp.media.view.settings, that array is empty. So I think I've narrowed it down to there being a conflict with the plugin that prevents those settings from being set at some point.
Has anyone encountered this before and found a solution?
I want to get each WordPress plugin execution time and memory usage by it. I have gone through WordPress documentation and google search but I am getting code regarding complete page but not specific plugin.
Following codes, I have found
$wpdb->queries
echo get_num_queries();
timer_stop(1);
Can anyone guide me how I can get execution time and memory usage for specific plugin only?
Already exists plugin Debug Bar and another plugin (addon for that) you will need: Debug Bar-Slow Actions.
then you will get such results:
Another plugin I can recommend is P3 (Plugin Performance Profiler):
https://wordpress.org/plugins/p3-profiler/
When purchasing the Applay Application theme for wordpress it is recommended to install Visual Composer.
It looks simple enough attempting to create custom CSS, however any attempts to save the use design options
Gives an error:
Design options could not be saved. Error: error evaluating function darken:a.toHSL not a function.
Which essentially means there is an element that cannot have no color value, that is attempted to being darkened.
I searched the theme, thinking I'd done something creating a child theme, reverted it back to the parent theme and could not solve it.
Both reports of this on the support page were:
Hi, we haven’t received such complains before – please open support ticket at support.wpbakery.com and share your site credentials so our support team can help you out.
It turns out the error is due to the apptheme's author's own inbuilt theme customisation and a lack of compatibility with Visual Composer.
I received this email repsonse from the support for Visual Composer.
The issue is because there is an inbuilt version of Visual Composer (or the related code) present in your theme which is overriding the standalone plugin version and hence causing the issue. You will have to get rid of it. I would advise you to do so with the help of theme author, otherwise you might loose the extra elements added by him. Once this is done, you can install the standalone plugin and it will work fine. Kindly check.
The theme author is the one who built the theme. In your case he is: http://themeforest.net/user/leafcolor
I decided to post this, as it may help others searching for this.
I'm developing a system integration java webapp - wordpress CMS. I adopted the WP-API plugin.
In my case i have some codes in JSPs like.. for example using JSTL:
<c:import url="[[host-wordpress]]/wp-api/post/44888">
However, if a wordpress user recreate the post consequently broken my integration.
Also would be intuitive for java frontend programmer find a code like :
<c:import url="[[host-wordpress]]/wp-api/post/news-about-something">
I saw in wp-api documentation that is possible by WP-QUERY, however i would like to implement a less invasive method.
Anybody knows how to do that ?
I forked wp-api and I added a new method :
https://github.com/dufabricio/WP-API/commit/3c3399c9a613143590d38df06a8f4c4848b21627
I don't know if it is the better way, but this method solves my issue by now :)
Have been asked to shift a custom made module of drupal site to another site (which is based on Openpublish d7). That module primarily is for providing web service data when a specific url is called (thus the module is implementing menu_hook).
However when adding and activating the module on the new site, it gives an error when that specific url is called that page does not exist.
First the assumption was that Openpublish may not have hooks but recently saw the path module installed (which in my knowledge required the menu hook).
Now the question was that whether it is possible that the path module may be causing issues for the custom module's menu hook to work properly.. ? if so, can there be any workarounds. cannot possibly turn off the path module as i have only been asked to add this new module and the site is already live (so experimentation may not be a choice :) )
Any help appreciated..
issue seems to have been solved after clearing the drupal cache . wasn't actually considering cache at that time.
thought to answer in case it helps others as well :)