webbtj
Forum Replies Created
-
Forum: Plugins
In reply to: [Flexo Facebook Manager] Comments ErrorHi again, so my solution was simply to stop urlencode-ing the data-href attributed of the fb-comments box. I haven’t dug into your plugin but hopefully that points you in the right direction.
Forum: Plugins
In reply to: [Flexo Facebook Manager] Comments ErrorJust in case it hasn’t been noted yet, it seems as though this is broken again. I’m not using this plugin myself, but when I find the solution I’ll share.
Forum: Plugins
In reply to: [Register Plus Redux] Data Migration from 3.7.3 to 3.9.8Excellent, yeah I managed to get through it myself with some SQL, but it’ll be great for the community to have this resolved.
Thanks!
Forum: Fixing WordPress
In reply to: Suddenly my "wp-admin" login page won't loadIf you have access to your php error logs I would suggest checking there first. If you’re not a programmer or other nerd type you could post the last 20 lines or so of your error_log here. If you don’t know where your log is, you should be able to get that info from your host.
Forum: Hacks
In reply to: How To Set post_id For Custom Post TypeLooks good to me!
Forum: Everything else WordPress
In reply to: WordPress scalability??If you’re adding 1000s a month without removing old ones then at some point you’re going to run into issues. But this is less of a WordPress issue and more of a database issue. SQL databases (including MySQL which WordPress uses) are not infinitely scalable. Keep in mind it’s not like you’ll run into trouble any time soon, but if you’re eventually going to end up with a quarter million products or more, you may want to invest some of your revenue into a more scalable system. That being said I’ve seen MySQL databases with millions of records.
Are you able to log into the back end of your WordPress site (yourdomain.com/wp-admin)? If so, try deactivating your plugins, if that still doesn’t work, try switching to the “Twenty Eleven” theme, if that still doesn’t work your solutions will be to continue to grill GoDaddy or to hire someone technical to check out your error logs and find the source of the problem.
If your site was working fine, you changed nothing, and now it’s not working, the host would be the first place I checked, if there is a genuine PHP, Apache, MySQL error then they may have changed something, if the error now comes from PHP code and it wasn’t there before I would be concerned as to how the code was changed.
I won’t sway towards one host or another in a public forum, but GoDaddy is typically frowned upon by many, including a large chunk of the WP community.
Forum: Hacks
In reply to: How To Set post_id For Custom Post TypeAre you creating the post first? If you can create the post with
wp_insert_post
it will return the ID of the new post (assuming there were no errors). https://codex.www.ads-software.com/Function_Reference/wp_insert_postForum: Hacks
In reply to: Localhost Works Fine but Live Site Generating Header ErrorI would still try disabling errors on your live copy. You’re right that the first two are “just notices” that don’t really “stop” anything. The third, which is fatal, actually happens because the server is allowed to write out these errors, so it is printing errors to the browser screen, which is fine, but then later WordPress is trying to write header information, which cannot be done because stuff has already been written to the document (once document writing starts you cannot write header information).
If you’re OK with coding and modifying the plugin you could wrap the two
if
conditions that are causing the notices in additionalif
conditions to test that $post is an object. It may also be as simple as runningsetup_post($post);
before the $post object is used, I’m not too familiar with this plugin.Forum: Hacks
In reply to: Localhost Works Fine but Live Site Generating Header ErrorWell the notices are happening because WP Access Control is trying to access properties of something that isn’t actually an object. Based on line numbers and assuming you’re running the current version of WP Access Control, it’s trying to get the ID property of the $post object, except it seems that $post is not actually an object, which seems odd since it is using the global $post object.
If everything is running fine on your local machine, I would assume that this is a small bug or plugin conflict. My educated guess would be that your local server just isn’t reporting warnings and notices to the screen. If you are getting the desired results and a looking for a quick solution, you can try this:
First confirm that the notices are actually triggered on you local copy. Add the following code to the top of your
functions.php
file, inside of<?php
tags:error_reporting( E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
. If you are now seeing these warnings on your local copy then the difference is the error reporting. If this is the case you can delete that line and check with your host about turning off PHP notices. You could turn them off yourself by addingini_set('display_errors', 'strerr');
. Ideally, you’ll have your host change the error setting on a higher level, but if they can’t help you this should work.Ideally you would do some debugging with the
error_reporting
function above and see if there is a plugin conflict. If this problem occurs with all other plugins disabled I would put in a support ticket with the developer of WordPress Access Control.Good luck! Respond if you need any help
Forum: Plugins
In reply to: [Surveys] embed in a pageWhen embedding on a page, does it just print out the “quick code” (example: [SURVEYS 1]) or is there nothing there at all? If the quick code is being printed out then your issue is probably with your theme, if may not be properly applying filters on the page template which means that quick code does not get replaced with what the plugin should be outputting.
Forum: Plugins
In reply to: Can you stop wp_login_form redirecting to wp-login on fail?You are right, never a good idea to mess around with the core.
I see what you’re looking to do as I am trying to do the same. The process I am going to go with is to handle the login myself manually. There is a function called wp_signon, you pass it an array of arguments (username and password) and it returns a user object. My plan of action is to create the HTML form, submit it to my own process (could be handled by a plugin or a function in the theme) and use wp_signon to validate the login. I’ll then use is_wp_error (passing the user object) to determine if it passed or failed authentication. From there you can do whatever you want as far as handling failed logins (or good logins for that matter).
In short – lookup wp_signon and is_wp_error in the codex.
-TJ