castalos
Forum Replies Created
-
I’ve fixed the problem I was seeing. Apparently something in YOP Poll is causing it to display the warning messages even though WP_DEBUG is set to false in wp-config file. So I found a place that said to try this in the wp-config.php file instead:
ini_set('log_errors','On'); ini_set('display_errors','Off'); ini_set('error_reporting', E_ALL ); define('WP_DEBUG', false); define('WP_DEBUG_LOG', true); define('WP_DEBUG_DISPLAY', false);
So I did that and it’s working fine – no error messages displaying.
I don’t understand WHY I had to do this, but it was definitely related to YOP poll. When this poll that I’m currently running finishes, I’m going to look for a different plugin – while this one has great options for customization, it shouldn’t be doing what it’s doing.
Forum: Plugins
In reply to: [YOP Poll] YOP not working with Events Planner ProI’ve fixed the problem I was seeing. Apparently something in YOP Poll is causing it to display the warning messages even though WP_DEBUG is set to false in wp-config file. So I found a place that said to try this in the wp-config.php file instead:
ini_set('log_errors','On'); ini_set('display_errors','Off'); ini_set('error_reporting', E_ALL ); define('WP_DEBUG', false); define('WP_DEBUG_LOG', true); define('WP_DEBUG_DISPLAY', false);
So I did that and it’s working fine – no error messages displaying.
Forum: Plugins
In reply to: [YOP Poll] YOP not working with Events Planner ProI’m getting a similar problem when I activate YOP Poll with Paid Memberships Pro.
Notice: Undefined property: MemberOrder::$Gateway in /home/sudsol5/public_html/sudsol.net/wp/wp-content/plugins/paid-memberships-pro/classes/class.memberorder.php on line 180
Did you find a solution to this?
ColeenForum: Networking WordPress
In reply to: Multi-site search including tags & displaying featured imageSorry, I abandoned trying to use Global Site Search as I could never get it to do what I wanted.
Forum: Themes and Templates
In reply to: [Social Magazine] Creating Child theme of social-magazineMy guess is it’s related to bootstrap. I think you have to queue the javascript for bootstrap as well.
I’ve decided to go with a different layout. Thanks for the response though!
ColeenForum: Fixing WordPress
In reply to: Adding Javascript to a WP pageIssue resolved
Forum: Fixing WordPress
In reply to: Adding Javascript to a WP pageIt turned out that the problem was that this code is going out to another website to get data. I needed to add to my .htaccess
header set Access-Control-Allow-Origin "*"
To allow it to get data from an external site.
ColeenForum: Themes and Templates
In reply to: Enqueueing Parent/Child StylesheetsFigured out the problem. I had the child style enqueued properly, but it didn’t seem like it was working. Always a good idea to run the stylesheet through a validator. One missing } can make a big difference on the stylesheet working or not!
Forum: Fixing WordPress
In reply to: Adding Javascript to a WP pageI’ve determined that I have set up the javascript properly in WordPress and that my javascript is actually being executed. But it’s got something that WordPress doesn’t like in it (this script works fine outside of WordPress). Can anyone shed insight into what WordPress doesn’t like?
function grabData(id,rv) { var xmlhttp = (window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("Microsoft.XMLHTTP")); xmlhttp.onreadystatechange = function() { if (xmlhttp.readyState == 4) { if (xmlhttp.status == 200) { res = JSON.parse(xmlhttp.responseText); for (i = 0;i < res[0].length;++i) { items.push(res[0][i]); } errors = []; for (i = 0;i < res[1].length;++i) { errors.push(res[1][i]); } drawItems(); drawPreview(); drawErrors(errors); } else { console.log('Error: '+xmlhttp.status); } } } xmlhttp.open("GET", "stampinup.php?a="+encodeURIComponent(rv), true); xmlhttp.send(); document.getElementById("productnumbers").value = ""; }
I’m getting into the else statement which writes a 404 error to the console.log
Here is the call to grabData:
function checkProductID(){ alert('entering checkProductID'); grabData("stampinuppreview",document.getElementById("productnumbers").value); return false;
Thanks,
ColeenForum: Fixing WordPress
In reply to: Adding Javascript to a WP pageSorry for not doing this properly. I’ve made changes and I seem to be closer, but it’s still not working. So let me try again to get help.
This is what I’ve done…
1) I’ve created instant_icon_script.js file that contains just the javascript code functions. One of those functions is “checkProduct”.
2) I’ve created a instant_icon_style.css file that contains the styling for the page.
3) I’ve added these lines to the function.php file of my theme://Instant Icons function add_instant_icon_script() { wp_register_script('instant_icon_script', get_template_directory_uri() . '/js/instant_icon_script.js', false); wp_enqueue_script('instant_icon_script'); } add_action( 'wp_enqueue_scripts', 'add_instant_icon_script' ); function add_instant_icon_style() { wp_enqueue_style('instant_icon_style', get_template_directory_uri() . '/css/instant_icon_style.css'); } add_action( 'wp_enqueue_scripts', 'add_instant_icon_style' );
Then on the page that I want this javascript to execute on, I’ve loaded the html coding which looks like this:
<div class="stampinup"> <form method="post"> <div class="formarea"> <div class="fieldbox"> <label for="productnumbers">Enter Stampin' Up product numbers</label> <textarea name="productnumbers" id="productnumbers"></textarea> </div> <div class="fieldbox c"> <button id="addproducts" onclick="return checkProductID();">Add Products</button> <button id="clearproducts" onclick="return clearProducts();">Clear</button> </div> </div> </form> <div id="stampinup_errors_box"></div> <div id="stampinup_results"> <h3>Preview</h3> <div id="stampinuppreview"></div> <h3>Copy this code</h3> <textarea id="widgetcode"></textarea> </div> </div>
You can see the call to the javascript checkProductID(); when the “Add Products” button is clicked. However nothing happens when the button is clicked, the javascript isn’t being executed at all.
I also tried creating a page template with the same HTML code and use it for the page and I get the same results – nothing.
Where have I gone wrong?
Thanks,
ColeenForum: Plugins
In reply to: [Network Latest Posts] Featured Images are Black & WhiteI found in the .css where this grayscale was being set. Removed it and I’m good.
Forum: Fixing WordPress
In reply to: Adding Javascript to a WP pageI’m confused as why you say that the wp_enqueue script function I used in step #2 adds the javascript file to the footer? I have placed this code in the theme’s functions.php file.
I do not see anything after the “Instant Icons, Your Blog Helper” title until it reaches the footer I have (which I do see).
If the part in #3 is unnecessary:
<script type="text/javascript"><!--//--><![CDATA[//><!-- instant_icon_widget(); //--><!]]></script>
then how do I tell the template page to actually execute the javascript function on that page? That’s what I thought I was doing there. Perhaps that’s the problem?
Coleen
ColeenForum: Plugins
In reply to: [Search Everything] Search doesn't exclude posts properlyDisregard – it is working correctly.
Forum: Plugins
In reply to: [WP Payeezy Pay] Integrate with PaidMembershipsPro?Ok, that’s for the reply.
ColeenForum: Hacks
In reply to: Recent Posts from different tableI found Network Latest Posts which does this.
Coleen