• Resolved yacinelhichri

    (@yacinelhichri)


    Hi,
    SJB is creating issues with the WPML transaltion plugin, by messing with the directory URL option. I have a multilingual website and I am putting the second language in a folder. However, for some weird reason, SJB keeps changing some values in the .htaccess file and breaks the second language version of the site.

    This is what the support from WPML told me:

    I have been testing your site locally and it seems that ‘Simple Job Board’ is messing with .htaccess. I noted that this file is was being modified.

    It changed:

    1
    RewriteRule . /milaha/index.php [L]
    for

    1
    RewriteRule . /milaha/ar/index.php [L]
    If have installed WordPress in a different directory (/milaha).

    Then I disabled the plugin and everything was fine.

    This plugin has this class simple-job-board/includes/class-simple-job-board-rewrite.php that try to avoid hotlinking modifying the .htaccess file, but when directories for languages are selected, it seems to fail.

    Please, ask your developer to disable the plugin and test if everything works OK. It the plugin cause the 500 error, you should remove writable permissions to the .htaccess file.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author PressTigers

    (@presstigers)

    Hello,

    Please accept our apology for the inconvenience.

    We have noted down your above mentioned issues. Will get back to you shortly, once we are done with its rectification.

    Thank you for your patience.

    Regards,
    PressTigers

    Thread Starter yacinelhichri

    (@yacinelhichri)

    Thank you for your reply.
    I have removed this part from the “class-simple-job-board-rewrite.php” file and so far the plugin works fine with WPML without breaking the site. That said, since I am not expert, I am afraid I may have disabled some key functionality from the plugin.

    // Appending rules in .htaccess
    if (file_exists($root_path . ‘.htaccess’) && is_writable($root_path . ‘.htaccess’)) {

    $forcedownload_rule = explode(“\n”, $forcedownload_rule);

    // Anti-Hotlinking Rules Writing in .htaccess file
    if (!function_exists(‘insert_with_markers’)) {
    require_once( ABSPATH . ‘wp-admin/includes/misc.php’ );
    }

    // Remove Hotlinking Rules
    insert_with_markers($root_path . ‘.htaccess’, ‘Hotlinking’, ”);

    /* Revert File Permission */
    if (!empty($file_existing_permission)) {
    chmod( $root_path . ‘.htaccess’, $file_existing_permission );
    }
    }

    So guys, it would be great if you can look into this and, if possible, send me an updated “class-simple-job-board-rewrite.php” to upload on my site. I like your plugin and I do not want to end up removing it because of this issue.

    Thanks,
    Yacine

    Plugin Author PressTigers

    (@presstigers)

    Yacine,

    We will reach you out once we are done with these changes. Stay connected for the updates here or you can also contact us at [email protected]

    Thank you for your patience.

    Regards,
    PressTigers

    • This reply was modified 7 years, 11 months ago by PressTigers.
    • This reply was modified 7 years, 11 months ago by PressTigers.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘SJB and WPML’ is closed to new replies.