• Resolved Singed

    (@singed)


    After edit some php files in theme, all pages shows 404 error (without plugin i have no errors). Posts and categories work normally.
    If click “Save changes” on permalink settings than pages works until edit some php theme files.

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author sbouey

    (@sbouey)

    I have not understand what you have make to reproduce the problem locally, the save permalink fix the problem ?

    Thread Starter Singed

    (@singed)

    Need just some pages.

    Open Appearance -> Theme file editor

    Make some changes functions.php or other php file in theme. (Any theme, no difference between them), save changes.

    After that all pages shows 404 error (but main, posts, cats still works).

    If in Settings -> Permalinks just click Save changes, then pages works.

    But when you try edit php theme files, error keep showing and you must again save permalink settings.

    • This reply was modified 4 months ago by Singed.
    Plugin Author sbouey

    (@sbouey)

    i can’t reproduce the problem on my dev site (woodmart template)

    i try on my demo site for Falang for Yootheme and i don’t have this problem too.

    just a small change in the function.php

    Thread Starter Singed

    (@singed)

    My bad, i missed out when deactivate all plugins with bulk, woocommerce stay still active. Separatly they works without error, but together looks like conflicts.

    So yes, need enough two plugins – woocommerce and falang, any theme (i just used Astra from search).
    Check if some pages opens, edit and save any php file in theme, and then got error on any page.

    I think maybe php memory low and also try increase, but it doesnt help.

    • This reply was modified 4 months ago by Singed.
    Pritpal Singh

    (@pritpal0190)

    Hi @singed,

    Thanks for the detailed info!

    WooCommerce and Falang are both active, editing and saving PHP files in the theme triggers permalink rewrite rules to break for pages. temporarily fixes is saving permalinks in Settings -> Permalinks. Dont worry about the memory size, its not a memory limit issue, it is more of a rewrite rule error.

    Test with other plugin combinations to narrowdown the conflicts.

    Thread Starter Singed

    (@singed)

    And in addition, I didn’t notice, but the translated titles and descriptions of products also stopped displaying on the product pages or query (other strings outside the content area are translated normally).

    I also checked this problem on a clean site, where there are only 2 plugins woocommerce and falang.

    • This reply was modified 3 months, 3 weeks ago by Singed.
    Plugin Author sbouey

    (@sbouey)

    i have problem to reproduce the error you have all my test sites have woocommerce, even if i make change in the function.php , i don’t have 404 on front-end

    Thread Starter Singed

    (@singed)

    Ok, i record the video and uploaded to the google drive, can you please check
    https://www.youtube.com/watch?v=ua0Y7tRELv8
    or these
    https://drive.google.com/file/d/10hvoshibAA9RF8bJnpEy50dL926RQS3O/view?usp=sharing

    Maybe i can insert some code to collect any logs? Default debug.log doesnt help to detect problem.

    Thread Starter Singed

    (@singed)

    Oh, translated titles/desc will show after select product in falang settigs, so second half video not relevant, forgot to check after activate/deactivate plugins, sorry

    Plugin Author sbouey

    (@sbouey)

    I can reproduce the problem now, with wc 9.8.5 i don’t have it but after updating to 10.1.1 now i have a 404

    Plugin Author sbouey

    (@sbouey)

    with the plugin wp rollback i know now it’s the woocommerce 10.0.0 that make the problem, the 9.9.5 work fine with Falang

    Plugin Author sbouey

    (@sbouey)

    I think i have found the problem in the file 

    wp-content\plugins\falang\public\class-falang-public.php

    in the load method

    //theme_editor don't like falang with home slug - disable falang for theme editor check
    if (isset($_REQUEST['wp_scrape_key'])){
    return;
    }

    comment the return like this

    if (isset($_REQUEST['wp_scrape_key'])){
    //return;
    }

    this will make an error if the slug is done in falang for the default language but it’s seem to fix the problem temporary

    Thread Starter Singed

    (@singed)

    Thank you for responding, comment line helps, noticed this is temporary

    • This reply was modified 3 months, 2 weeks ago by Singed.
    Plugin Author sbouey

    (@sbouey)

    i have published the fix , can you confirm all is good now.

    Thread Starter Singed

    (@singed)

    Tested new version, i have no errors, thanks.
    Then i mark as resolved.

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

You must be logged in to reply to this topic.