The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Intermediate & Advanced SEO
    4. How to solve a PHP problem to increase user experience ?

    How to solve a PHP problem to increase user experience ?

    Intermediate & Advanced SEO
    6 2 319
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Tintanus
      Tintanus last edited by

      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:

      1. www.atlantiksurf.com (Spanish)
      2. www.atlantiksurf.com/en
      3. www.atlantiksurf.com/de

      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.

      rTqZI.png

      1 Reply Last reply Reply Quote 0
      • SSRMarketing
        SSRMarketing last edited by

        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).

        Tintanus 2 Replies Last reply Reply Quote 1
        • Tintanus
          Tintanus @SSRMarketing last edited by

          Thank you very much for your answer, it gave me some clues I will investigate. 😉

          1 Reply Last reply Reply Quote 0
          • Tintanus
            Tintanus @SSRMarketing last edited by

            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;
                                }

            SSRMarketing Tintanus 2 Replies Last reply Reply Quote 0
            • SSRMarketing
              SSRMarketing @Tintanus last edited by

              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.

              1 Reply Last reply Reply Quote 1
              • Tintanus
                Tintanus @Tintanus last edited by

                Ok thanks a lot ! Cheers !

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                • User intent
                  seoanalytics
                  seoanalytics
                  0
                  3
                  75

                • Will Reduced Bounce Rate, Increased Pages/Session, Increased Session Duration-RESULT IN BETTER RANKING?
                  Kingalan1
                  Kingalan1
                  1
                  8
                  107

                • How to solve our duplicate content issue? (Possible Session ID problem)
                  LoganRay
                  LoganRay
                  0
                  2
                  127

                • How to 301 Redirect /page.php to /page, after a RewriteRule has already made /page.php accessible by /page (Getting errors)
                  DirkC
                  DirkC
                  0
                  2
                  435

                • After Ranking Drop Continue SEO or Focus on Improving User Experience Instead?
                  wrttnwrd
                  wrttnwrd
                  1
                  2
                  274

                • Site Structure: How do I deal with a great user experience that's not the best for Google's spiders?
                  KristinaKledzik
                  KristinaKledzik
                  0
                  3
                  138

                • Urgent problem - multilingual website title tag and meta description problem
                  serp-eesti
                  serp-eesti
                  0
                  7
                  2.5k

                • Crawling error or somthing else that male my page unvisible ( Simple problem, no solved yet )
                  guidoboem
                  guidoboem
                  0
                  5
                  368

                Get started with Moz Pro!

                Unlock the power of advanced SEO tools and data-driven insights.

                Start my free trial
                Products
                • Moz Pro
                • Moz Local
                • Moz API
                • Moz Data
                • STAT
                • Product Updates
                Moz Solutions
                • SMB Solutions
                • Agency Solutions
                • Enterprise Solutions
                • Digital Marketers
                Free SEO Tools
                • Domain Authority Checker
                • Link Explorer
                • Keyword Explorer
                • Competitive Research
                • Brand Authority Checker
                • Local Citation Checker
                • MozBar Extension
                • MozCast
                Resources
                • Blog
                • SEO Learning Center
                • Help Hub
                • Beginner's Guide to SEO
                • How-to Guides
                • Moz Academy
                • API Docs
                About Moz
                • About
                • Team
                • Careers
                • Contact
                Why Moz
                • Case Studies
                • Testimonials
                Get Involved
                • Become an Affiliate
                • MozCon
                • Webinars
                • Practical Marketer Series
                • MozPod
                Connect with us

                Contact the Help team

                Join our newsletter
                Moz logo
                © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                • Accessibility
                • Terms of Use
                • Privacy