geraintp
Forum Replies Created
-
Define cookie banner? Do you mean your browser is asking you to allow the site to used cookies? ( what browser are you using? )
Do you mean a banner on the page, like all eu companies are supposed to show on their sites now…
e.g.
http://www.bmw.co.uk/en/index.htmlEither way neither of these things are generated by default by wordpress, either you’ve changes a setting on your browser to warn you about sites using cookies, or you have installed a plugin that is generating the banner for you
Forum: Installing WordPress
In reply to: Error in WebsiteThe configuration of your new web host is breaking the plugin Instapress which if you look on its support forum:
https://wordpress.org/support/plugin/instapresslooks like its a compatibility problem with PHP5 see:
https://wordpress.org/support/topic/fatal-error-1173?replies=8Forum: Fixing WordPress
In reply to: Disable redirection of /index.php?page_id=12 to permalinkNot without hacking the code, and possible not even then, the only way is to turn off permalinks.
Can I just be able to access a pages with both url, domain.com/blabla and also domain.com/index.php?page_id=12
Yes but it will always redirect to the .. permalink version.
Forum: Installing WordPress
In reply to: WordPress 4.0.1 Dashicons.css Malicious code?src:url(data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAFk8AA4AAAAAkVwAAQAAAAAAAAAAA........is a font file embedded in the css file, its an optimisation, its a standard part of wp 4.0.1
😉
Forum: Installing WordPress
In reply to: WordPress 4.0.1 Dashicons.css Malicious code?define gibberish? it maybe that its a base64 encoded image, if an image is small enough your can embed images into css to save having to load a separate file…
Forum: Hacks
In reply to: How to position my images at the same place in different browsersDid you add the social icons your self or are they part of the original theme?
If their originally part of the theme theres probably a place in the theme options panel to select which ones you want displayed and what url or social user id each one should attach to it, the theme will take care of the rest.
If you’ve added them to the template your self, you need to set the href for each of the a tags around each icon.
<div class="social-icons"> <a href="http://....wherever..../.../"> <img src="http://princessoffinland.com/wp-content/themes/themify-base-child/twitter12.png" width="25" height="25"> <img style="padding-right:8px"> </a> <a>... </a> <a>... </a> </div>Forum: Fixing WordPress
In reply to: How to create a WP user from a Java Web applicationHay,
I’ve never used the Apache HTTP components but if I’m getting the gist of what your saying your’ basically suggesting making a custom http api, some how, but your still going to be requesting to a wordpress site, so your still going to have to load wp, and create a plugin to intercept and respond to special url which is totally do able.. This is essentially manually doing what the json and xmlrpc apis do,
both are just structure http request at the end of the day, just one uses json formatted payloads and the other xml payloads sent over a http post/request. Both are specifically designed for what you want async communication with a wp site.
As for their limited wp api access, that’s not strictly true, by default the built in api methods only expose certain functionality within wordpress but you can add as many custom methods as you like which expose as little or as much of the WP api as your application requires, your custom methods have as much access to the WP code base as any function in another plugin might.
The example I include did just that, it exposed the standard wp_create_user method so my app could access it. I just had to include
require_once(ABSPATH . WPINC . '/registration.php');to load it first.You can certainly do it the manual way, which I’ve done before to receive and store basic post notifications from other web apis, but is way more of a hack by hooking in the template load action you can execute code right before the theme loads and do whatever you like, you might have to filter query_vars as wordpress filters them for safety, you’ll basically be doing a lot of prodding to get it to behave.
As for checking the http referrer i’m not sure if it can be spoofed, but also won’t you java app be running client side so the referrer wont be localhost ?
Forum: Fixing WordPress
In reply to: Front page: "No posts found" (but posts are all still there)Hay,
I’m not sure if this is your actually problem, as it shouldn’t effect what post get shown when in the dashboard, but looking at your theme, its pretty old.
and I quote from your stylesheet
Theme last updated: Jan 13, 2006a lot has changed in WP in nearly a decade. sorry if you’ve been maintaining your theme your self ignore this..
it might be worth installing twenty fourteen to an seeing if you still have the same problems..
Forum: Fixing WordPress
In reply to: number of posts in wp_posts very different than number of posts+ I agree with @songdogtech that its probably the Redirect plugin.
as all those entries are http status codes, which match up with what a redirect plugin might log, that or one of the SEO plugins,
+ @songdogtech is right that you should really add redirect to your .htaccess file, the’ll be a lot more efficient and reduce the load on your server as it wont have to load php and wordpress before it executes the redirect.
Forum: Fixing WordPress
In reply to: number of posts in wp_posts very different than number of postsI hate to argue but wordpress does store a record in the wp_posts table for every attachment, as well as several wp_postmeta records attached to that post.
this is the count of posts by post types in a small wp site, the bottom four are all custom post types but the top four are the built in wp types.
attachment 747 page 10 post 51 revision 115 safecss 1 ttd_feature_image 12 ttd_portfolio_post 90 ttd_testimonial 9Forum: Fixing WordPress
In reply to: number of posts in wp_posts very different than number of posts@songdogtech: yes sorry i was lagging behind, you’ve already got the data that that query would show you.
Forum: Fixing WordPress
In reply to: number of posts in wp_posts very different than number of postswow,
looks like you have some sort of http request tracking plugin storing logs in your posts table
200ok 42045
301movedpermanently 58
302found 114
400badrequest 1
403forbidden 529
404notfound 1324
500internalservererr 37
502badgateway 417
503serviceunavailabl 366
508 123thats all custom posts types and its 80%+ of the records in your table
Forum: Fixing WordPress
In reply to: number of posts in wp_posts very different than number of postsIf you have access to mysql admin run this query against the posts table a it’ll give you a list of post_types and a count of them it might help you track down the offender. 😉
SELECT post_type ,COUNT(*) FROM wp_posts GROUP BY post_type;i had to remove the ‘ from the query, see this gist for the properly quoted query;
https://gist.github.com/geraintp/52547996a7e174fb8424Forum: Fixing WordPress
In reply to: number of posts in wp_posts very different than number of postsHay,
FYI not only posts are also stored in wp_posts. Pages, Posts, Revision of both, menu items any custom content types as well as entries for all uploads and attachments are all stored in that table, its the main storage area in the database.
It could be one of you plugins has stored a lot of data in that table.
Ironically Akismet doesn’t really use the post table it does us wp_commentmeta and wp_postmeta to store information of spam comments, and a while back there was a bug in it when it wasn’t clearing out metadata on deleted spam which could cause massively inflated tabled in the db but the posts table wasn’t one of them.
Forum: Hacks
In reply to: How to position my images at the same place in different browsersHay
The theme your using is responsive, by nature its designed to appear differently on different devices.
but by the looks of it your changes have broken your site on the responsive versions because you haven’t matched your changes to the specific media width’s included in the theme.
@media screen and (max-width: 1240px) { ... } ... @media screen and (max-width: 480px) { ... }see the
media-queries.cssfile in your parent theme.