import RTL data

This topic contains 14 replies, has 3 voices, and was last updated by  shahram rasti 5 years, 8 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #443340

    shahram rasti
    Free User
    Post count: 17

    Hi

    I am using geo directory on RTL language ( Persian ) on standard Persian word press

    when I want to import data to geo directory it give an error that show dont let special characters

    is it limited for other characters like Persian?
    How can I solve this?

    #443353

    Alex Rollin
    Moderator
    Post count: 27815

    Make sure you are using LibreOffice to edit and save your CSV for import:

    Please read: https://wpgeodirectory.com/docs/core-export/

    Try it with LibreOffice, and if it doesn’t work, share the LibreOffice CSV here.

    You may need to zip the file in order to attach it.

    #443958

    shahram rasti
    Free User
    Post count: 17

    I changed open office with libre office , the error changed as below

    Total 5 item(s) found.

    5 / 5 item(s) could not be added due to blank/invalid address(city, region, country, latitude, longitude).

    I have added some records manually and with very small edit I tried to upload it again and overwrite it , the encoding is UTF-8 and persian

    the file is attached

    #443967

    Alex Rollin
    Moderator
    Post count: 27815

    OK, then it is not a problem with language.

    That error means that one of those columns is blank.
    Those columns are required.

    https://wpgeodirectory.com/docs/core-export/#mandatory

    If you want to add locations outside your default location, you will need to install the MultiLocations addon before you can import your data.

    https://wpgeodirectory.com/downloads/location-manager/

    These fields are required:

    post_address: Street address [This can be the actual street address, or the name of the Business, etc – it just cannot be blank]
    post_city: City, town etc
    post_region: state, province etc
    post_country: country
    post_latitude: latitude in signed degrees format, for example -20.97625669
    post_longitude: longitude in signed degrees format, for example 162.45444

    #443972

    shahram rasti
    Free User
    Post count: 17

    Hi

    all of above fields are complete but still have problem

    can you kindly check the attached file?

    #443975

    Alex Rollin
    Moderator
    Post count: 27815

    Please share the following information so we can try to debug it on your site:

    WordPress Credentials
    WP Admin Login URL:
    WP Admin Username:
    WP Admin Password:

    FTP Credentials
    SFTP/FTP:
    FTP Host:
    FTP Port:
    FTP User:
    FTP Password:

    #443981

    shahram rasti
    Free User
    Post count: 17
    This reply has been marked as private.
    #444056

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    You can enable debugging to get better error reports. Instructions are here: https://wpgeodirectory.com/docs/core-export/#debug

    I have flagged your topic for the developers who will take a look when they get back into the office after the weekend.

    When I export the current Places Listings the same listings cannot be re-imported.

    The error is: Total 7 item (s) found.

    7/7 item (s) could not be added due to blank title / invalid post type / invalid characters used in data.

    Thanks for your patience while we look into the issue.

    #444145

    Kiran
    Moderator
    Post count: 7069

    Hello Shahram,

    The FTP account you provided has no wordpress directory access. It not showing any files/directory after connecting via FTP client. Please give root directory access to that account.

    I have tested same csv file you attached with import/export/re-import in my test site and it imported without any issue.

    Let us know.

    Thanks,
    Kiran

    #444172

    shahram rasti
    Free User
    Post count: 17

    the files are in the info folder

    anyway the problem exist , I checked it again

    #444175

    Kiran
    Moderator
    Post count: 7069

    Hello,

    It still not showing any files/directory (see attachment). You have to give access to root WordPress to FTP account testgd. This is managed from CPanel > FTP Accounts.

    Kiran

    #444182

    shahram rasti
    Free User
    Post count: 17
    This reply has been marked as private.
    #444200

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    #444290

    Kiran
    Moderator
    Post count: 7069

    Hello Shahram,

    After doing some debugging found that there is conflict with “WP-Persian” plugin. WP-Persian plugin have options that translate date numbers into non-english language. Ex it translates post date to ۱۳۹۷-۰۵-۲۳ ۱۴:۰۹:۳۵, and during post insert/update it raises error. That’s why it refuses to import post.

    You can fix this by one of following:
    1) Remove post_date column from csv
    2) Disable date number translation from WP-Persian
    2) Add following code snippet in your child theme functions.php or execute via any PHP snippet plugin.

    
    
    function _gd_custom_fix_wpp_conflict() {
    	if ( class_exists( 'WPP_Hooks' ) && ! empty( $_REQUEST['task'] ) && $_REQUEST['task'] == 'import_post' && ! empty( $_REQUEST['action'] ) && $_REQUEST['action'] == 'geodir_import_export' ) {
    		remove_filter( 'date_i18n', array( 'WPP_Hooks', 'wpp_date_i18n' ) );
    	}
    }
    add_action( 'admin_init', '_gd_custom_fix_wpp_conflict', 10 );

    Kiran

    #444425

    shahram rasti
    Free User
    Post count: 17

    thank you so much , the problem solved

Viewing 15 posts - 1 through 15 (of 15 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket