Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter komodosp

    (@komodosp)

    OK this is resolved. There was something wrong with the page with the Limerick location – I don’t know enough about wordpress I suppose to know what – but it was a result of the fact that I created the page before moving the site to another hosting / domain. (e.g. the post->guid still reflected the old URL)

    I just deleted and recreated it and now they both appear. I still don’t know how to choose the default zoom level but it’s zoomed out so both locations are visible which is fine for the moment.

    As an aside, it was showing the post title in the “speech bubble” when you click on the marker instead of the description I had entered. I rectified this with…

    function add_info_to_pronamic_google_maps ($item) {
    
    	global $post;
    	return get_post_meta($post->ID, Pronamic_Google_Maps_Post::META_KEY_DESCRIPTION, true);
    
    }
    
    add_filter (Pronamic_Google_Maps_Filters::FILTER_MASHUP_ITEM, 'add_info_to_pronamic_google_maps');

    Are you talking about the description in the “speech-bubble” that appears on the map?

    When putting in the description text I just wrapped it in a
    <p style=”margin:0;color:#000000″>…….</p>

    But looking at it now, you could also use the .pgm selector as the outermost div seems to have class=”pgm”

    Thread Starter komodosp

    (@komodosp)

    As usual I spend the whole day trying to figure it out and soon after I post the message I finally do.

    Turns out the problem was that calling get_posts also fills the wp_object_cache which was using all the memory. A simple wp_cache_flush() was the solution…

    <meta name=”description” content=”What if the reason he gave you for the break up is not his real reason? I’m sure you know it’s easier to get him back if you know the truth. But, it’s…” />

    in the <head> section

    Note however that Google will only show this if it contains the search terms… Otherwise it will display a part of your site that does contain the search terms.

    I was having the same problem as andrewpk above. I just tried it again and didn’t get the error.

    But now on the WordPress config screen, I am getting “Warning: Sphinx Search Server is NOT running.”

    I clicked on “Start Sphinx Daemon” but I got another error saying “Can not start searchd, try to start it manually.
    Command: /home/mmccoy/public_html/testserver/wp-content/uploads/sphinx/bin/searchd –config /home/mmccoy/public_html/testserver/wp-content/uploads/sphinx/sphinx.conf”

    So I did that and it said “Listening port=9312”, but still I have “Warning: Sphinx Search Server is NOT running.”

    I tried clicking on the Start button again but same error.

    … What code do you add? And what’s the latest version? I clicked on “Download Version 3.0” on the WordPress site, but judging by the file names it appears to be version 0.9.9

    So the end of the glass is that if you’re having that trouble, look out for rogue ob_start()s.

    Ha!

    I’ve discovered at the top of my header.php, it had “ob_start()” for some reason. Haven’t yet figured out why. (is this included in WP by default? I didn’t start the website.)

    This is throwing off a check in AIOSEO’s wp_head function which checked if its own function replace-title callback function was the latest callback. However, because of the ob_start() in header, it’s adding “default output handler” to the list and therefore AIOSEO decides not to flush the output. Presumably this gets flushed at the end but by then it must be too late to rely on is_category() and is_page() and all them.

    So that’s why it’s happening… (for me anyway)

    Hope ye don’t mind me “bouncing” ideas around in this thread. It seems to hold on to the fact that it’s a “is_category” inside template_redirect () but it calls an ob_start.

    The ob_end_flush is called in AIOSEO’s own wp_head function (hooked to ‘wp_head’ action)

    I have a similar problem – on my Categories, it displays the title for the Pages.

    WP 2.9.2
    AIOSEO 1.6.13.1 (said to be compatible all the way back to WP 2.8)

    I’ve tried to do a bit of investigation and have discovered that the is_category() function works fine when we get to template-loader.php.

    It’s here we do_action(‘template_redirect’) which is what eventually replaces the title with the AIOSEO title. Once it gets in there, the is_* functions go all funny – first my page is thought to be a home page (is_home returns true) and then thought to be a page (is_page).

    After the do_action, it seems to once again (correctly) believe that is_category is true.

    What’s going on? Is the info not available to the do_action? Is it just not compatible with my version of WP?

    Any help on this would be great…

Viewing 10 replies - 1 through 10 (of 10 total)