WordPress.org

Ready to get started?Download WordPress

Forums

Transposh WordPress Translation
[resolved] Error with the line to insert in google sitemap generator (7 posts)

  1. Dreagnout
    Member
    Posted 1 year ago #

    Hello, i want to insert the line that i must to put for make a language in the sitemap. I put this after AddElement):
    do_action('sm_addurl', $page);

    So the code is this now:

    function AddElement(&$page) {
    do_action('sm_addurl', $page);
    if(empty($page)) return;

    $s = $page->Render();

    if($this->_fileZipHandle && $this->IsGzipEnabled()) {
    gzwrite($this->_fileZipHandle,$s);
    }

    if($this->_fileHandle && $this->GetOption("b_xml")) {
    fwrite($this->_fileHandle,$s);
    }
    }
    And i see this bug:

    Fatal error: Call to undefined method GoogleSitemapGeneratorXmlEntry::GetUrl() in /home/cssbloes/domains/cssblog.es/public_html/wp-content/plugins/transposh-translation-filter-for-wordpress/wp/transposh_3rdparty.php on line 181

    What happen?

    Thanks.

    http://wordpress.org/extend/plugins/transposh-translation-filter-for-wordpress/

  2. Ofer Wald
    Member
    Plugin Author

    Posted 1 year ago #

    Well, it has been a long time since I touched this patch, I am quite sure you didn't place it in the most accurate location.

    Solutions:
    * Use the latest beta version
    * Use on older patched version
    * Wait for me to patch it
    * Patch properly :)

    Good luck

  3. Dreagnout
    Member
    Posted 1 year ago #

    Hello, can you patch it? Thanks.

  4. Ofer Wald
    Member
    Plugin Author

    Posted 1 year ago #

    Yes, but not for free :)

    I am not using that version any more, and setting up the environment and testing it will take my time, which I aim to value.

    This is exactly the reason a paid support option was added, if you really want this, you can pay for it.

    I still suggest you upgrade to version 4 beta of that plugin, much better

  5. Dreagnout
    Member
    Posted 1 year ago #

    The version beta doesn't work fully for me, so i need to use the estable version. But if i can't send the translate urls to the sitemap, i can't get satisfied because is very important to me to send the translated urls to google.

    Thanks.

  6. Dreagnout
    Member
    Posted 1 year ago #

    I want to work with the beta to make the urls work but in the beta many of the options in the admin have been dissapear, so i need to wait for future versions.

    Thanks.

  7. Ofer Wald
    Member
    Plugin Author

    Posted 1 year ago #

    So your choices are:
    * use an older patched version
    * wait till I patch it (because you want to pay for it, or someone else will)
    * do it yourself

    Good luck

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.