[help] pwadmin import files

Results 1 to 5 of 5
  1. #1
    Member CoG is offline
    MemberRank
    Mar 2009 Join Date
    BrazilLocation
    36Posts

    [help] pwadmin import files

    Whenever I try to import the character's speech, how do I solve?

    COMMAND: http://localhost:8080/pwAdmin/index....rocess=sqlsync
    ERROR: Importing Roles to MySQL Failed

    Starts importing ... there delay and failure, it only matters to the 256.


  2. #2
    Grand Master ronny1982 is offline
    Grand MasterRank
    Jan 2010 Join Date
    744Posts

    Re: [help] pwadmin import files

    Quote Originally Posted by CoG View Post
    Whenever I try to import the character's speech, how do I solve?

    COMMAND: http://localhost:8080/pwAdmin/index....rocess=sqlsync
    ERROR: Importing Roles to MySQL Failed

    Starts importing ... there delay and failure, it only matters to the 256.
    • make sure database settings in pwAdmin configuration are correct
    • when using an older pwAdmin you must have preinstalled a corresponding roles table

  3. #3
    Member CoG is offline
    MemberRank
    Mar 2009 Join Date
    BrazilLocation
    36Posts

    Re: [help] pwadmin import files

    I know it's boring, plus you can give me a clue what to do exactly?

  4. #4
    Angelemu founder tbnanubis is offline
    Grand MasterRank
    Mar 2011 Join Date
    Unicorn ForestLocation
    527Posts

    Re: [help] pwadmin import files

    if your character database has invalid characters it would crash at some point, because some releases of pwAdmin don't escape the strings properly. Your problem is an sql error because of invalid strings like "'"

    to fix it you need to change your role.jsp at several points to something like this:
    Code:
    rolename = StringEscapeUtils.escapeJava(StringEscapeUtils.escapeHtml(chr.base.name.getString()));

  5. #5
    Member CoG is offline
    MemberRank
    Mar 2009 Join Date
    BrazilLocation
    36Posts

    Re: [help] pwadmin import files

    Edit only the line 450 and failed, what other line should be edited?



Advertisement