How to solve a PHP problem to increase user experience ?
-
Hi all, I am having a peculiar PHP problem that is affecting the user experience of the site and thus, the SEO.
The site is www.atlantiksurf.com and as you can see I use the QTranslate Plugin to manage the 3 different languages:
If you enter the german version: http://www.atlantiksurf.com/de/ , and you scroll down to the bottom of the page, you will notice there are a couple of posts that have (Español) in their Titles. This means that this particular post is written in Spanish and should only appear in the Spanish version of the site.
Every single post is published on the three versions even when they are language orientated. The result is that when you press that specific Spanish title on the German version, you get nothing but this:
http://www.atlantiksurf.com/de/aritz-aranburu-tendra-que-estar-un-mes-sin-competir/
Because obviously there is nothing there.
If I go to the wordpress admin panel and search for the post manually, I can solve the problem by erasing all the default code of the different language versions that should not appear. But this is only a manual and non practical solution.
The problem, I think, might be in the PHP orders that the Wordpress Theme is receiving from somewhere.
I come to all of you SEomoz users as my last chance, because I've been months in discussions with Qtranslate users and php amateurs that cannot solve the issue.
I know that this question isn't strictly about SEO, but in a way it is, because it must be affecting the way that Google look at us.
Please, some help or orientation would be highly appreciated.
-
Ok thanks a lot ! Cheers !
-
I'm not spotting it right away. The problem is I would need to know what the plug-in is doing. . .and I'm not the best guy to ask those kinds of questions. I haven't written in PHP/MySQL in about 8 years so I'm a bit out of it.
If you go to http://wordpress.org/support/plugin/qtranslate you should be able to post for help there.
-
Do you see any errors or can you localize the mistaken PHP function in this code?
if ( $postImg['showImage'] ) { ?>
endwhile;
else :
echo ''.__('There are no featured posts selected to display in this area (yet).',THEMENAME).'
';
endif;//Reset Query
wp_reset_query();
?>} // end if( featuredContentActive != '')
?>// Home Page Blog Posts
if (get_theme_var('homePostsActive') !== '') { ?>global $firstPage;
$firstPage = true;if ($paged > 1) {
// filter for offset and proper paging
add_filter('post_limits', 'my_post_limit');
// modify paging (to work with offset for home page)
$paged = $paged-1;
$firstPage = false;
} -
Thank you very much for your answer, it gave me some clues I will investigate.
-
I can diagnose where a search for the problem should begin, but not so much the specifics. My guess is the issue is in the plug-in.
WordPress is designed to read constantly from a database and it's reading something that looks like %TITLE%. Now I've never experimented with QTranslate, but my assumption is they are adding additional database entries for the various languages and then each post, in their respective language, is supposed to pull from it's own database.
It could be something as simple as a pointer to the database that is still using the Spanish version instead of making the switch the plugin is supposed to accomplish.
Again, QTranslate, who knows their own code, should be able to diagnose something like this very easy. I'm sorry to hear they haven't so far. Your solution is going to be either getting them to fix it or hiring someone who can edit PHP and MySQL (which usually go together anyway).
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Is a rootserver that has previously been used for porn and spam a problem for SEO?
As we found out via Alexa we are hosting our website on a server that has been used under the same IP heavily mostly for pornsites. Will this become a problem for our webproject? By the way: We are not in the porn-sector. We are an NGO with an alternative social media project for a better world. Thanks for your help.
Intermediate & Advanced SEO | | RWW0 -
Thousands of 503 errors in GSC for pages not important to organic search - Is this a problem?
Hi, folks A client of mine now has roughly 30 000 503-errors (found in the crawl error section of GSC). This is mostly pages with limited offers and deals. The 503 error seems to occur when the offers expire, and when the page is of no use anymore. These pages are not important for organic search, but gets traffic from direct and newsletters, mostly. My question:
Intermediate & Advanced SEO | | Inevo
Does having a high number of 503 pages reported in GSC constitute a problem in terms of organic ranking for the domain and the category and product pages (the pages that I want to rank for organically)? If it does, what is the best course of action to mitigate the problem? Looking excitingly forward to your answers to this 🙂 Sigurd0 -
Problems with a website-help
Soooooo, I did a crawl report on this site : www.greatwesternflooring.com and this was what was on the report. This is a dnn site. I'm guessing the site has a redirect loop given the http status code. Can anyone help me with a fix. (the developers have said there is no redirect on the site......clearly there is....) | http://www.greatwesternflooring.com/ | 2015-01-07T21:32:25Z | 609 : Redirect to already-visited URL received for page request. | Error attempting to request page; see title for details. | 302 | http://www.greatwesternflooring.com | <colgroup><col width="319"> <col width="144"> <col width="378"> <col span="39" width="64"></colgroup>
Intermediate & Advanced SEO | | Britewave
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |0 -
Solving a Mystery
I've been banging my head trying to solve a mystery for a few months, with little luck. Maybe one of you has an answer. My home page organic SERP rankings have dropped from #1 or #2 late last year, to between #8 and #25 a few months ago for a couple of important keywords. I did not make any on-page changes during this period. Meanwhile, many inner pages continue to rank well (top 5) for long-tail keywords. All of my SEO is white hat, no unusual on-page tactics, no purchased or otherwise fishy backlinks. In fact, looking closely at the on-page and backlink tactics of some of the websites that have leapfrogged ahead of me, I'd say some of them have (and continue to) engaged in shady practices. No errors reported by SEOmoz. I've been judiciously applying canonical tags and other techniques to ensure minimal duplicate content. I've not received a letter from Google warning me of any unnatural backlink profiles. The biggest part of the mystery is that it seems like my home page was the only page really affected. As mentioned above, the inner pages continue to rank well for their respective keywords. Thus, I don't think I've been hit by any kind of site-wide penalty. Also, I continue to rank well on Bing/Yahoo. Does anybody have an insight into what could have happened? Has anybody else experienced anything similar (home page dropping rank while other pages stay put)?
Intermediate & Advanced SEO | | ahirai0 -
Is cross-linking websites bad? What is your experience?
Today, I was watching video about Is cross-linking websites bad? on Google Webmaster YouTube channel. I've big confusion on this subject because, I have made big changes on this factor. I have removed my website link from two websites. Both websites are top to link my website. But, I have removed it due to certain issue. I have hyperlink following page with Patio Umbrellas keyword. http://www.vistastores.com/patio-umbrellas I know that, I have to maintain my inbound link statistics and that's why I'm going to add my website link with Patio Umbrellas text link to my clients' websites. I have already added it to certain clients' websites and going to add in another clients' websites. You can review my link in footer. http://www.tikitorchbargains.com/ http://www.firepitbargains.com/ http://www.curtainrodbargains.com/ These websites have similar subject to my website. Now, websites' subject is totally different to my website where I will my text link in footer. After big explanation:: 🙂 I have one big question. Will it help me to out rank well with Patio Umbrellas keyword? Do you have any experience about positive performance or negative performance? Is it advisable or not? If no so why? 🙂 Thanks... watch?v=ufGw65-1je8 6987059809_b6bf3c7335_z.jpg watch?v=ufGw65-1je8 6987059809_b6bf3c7335_z.jpg watch?v=ufGw65-1je8
Intermediate & Advanced SEO | | CommercePundit0 -
Yoast meta description in ' ' instead of " " problem
Hi Guys this is really strange, i am using yoast seo for wordpress on two sites. On both sites i am seeing meta name='description' instead of meta name="description" And this is why google is probably not reading it correctly, on many other link submission sites which read your meta data automatically say site blocked. How to i fix this? Thanks
Intermediate & Advanced SEO | | SamBuck0 -
Think I may have found a problem with site. Can you confirm my suspicions?
So I've been wracking my brain about a problem. I had posted earlier about our degrading rank that we haven't been able to arrest. I thought we were doing everything right. Many years ago we had a program that would allow other stores in our niche use our site as a storefront if they couldn't deal with setting up their own site. They would have their own homepage with their own domain but all links from that page would go to our site to avoid duplicate content issues (before I knew about canonical meta tags or before they existed, I don't remember). I just realize that we had dozens of these domains pointing to our site without nofollow meta tags. Is it possible that this pattern looked like we were trying to game Google and have been penalized as some kind of link farm since Panda? I've added nofollow meta tags to these domains. If we were being penalized for this, should this fix the problem?
Intermediate & Advanced SEO | | IanTheScot0 -
Anyone Experimented With YouTube SEO?
Primarily questions I want to know definitive answers to: Do incoming links to a YouTube video affect Google's decision to show a YouTube video thumbnail in the results? If so, does YouTube rank the video higher due to incoming links? Does YouTube take any off-page factors into consideration when ranking a video? Does anyone else have any other helpful tips/thoughts/suggestions? Please don't answer this just to get points and give me fluff information. I'd really like to get some concrete data/info 🙂 Cheers!
Intermediate & Advanced SEO | | alhallinan0