This topic has 12 replies, 2 voices, and was last updated 7 years by Radu.

  • Author
  • #142774
     Rocla
    Participant

    Hello, I have a problem on the admin side with the Theme Options menu.

    Indeed, all the settings are on one page, and I have those errors in the console:

    “wp-content/bitnami/wordpress/wp-content/themes/kleo/kleo-framework/options/assets/css/redux-fields.css?ver=3.5.9 Failed to load resource: the server responded with a status of 404 (Not Found)”

    I checked that the file is indeed in the folder, it is.

    I am not sure about the problem here.

    #142776
     Rocla
    Participant

    For a screenshot of the theme options page

    Attachments:
    You must be logged in to view attached files.
    #142799
     Radu
    Moderator

    Hi,

    I think there it’s a theme upload problem because the console shows a non-existing path

    wp-content/bitnami/wordpress/wp-content/themes/kleo/kleo-framework/options/assets/css/redux-fields.css?ver=3.5.9 Failed to load resource: the server responded with a status of 404 (Not Found)”

    The wp-content at the begin of the path shouldn’t be there.

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #142826
     Rocla
    Participant

    Oh dear, yes, you are right…
    Do you have a config file where this could be set up?

    #142834
     Rocla
    Participant

    I found that it’s related to ReduxFramework::$_url . 'assets/css/redux-fields.css'

    #142836
     Rocla
    Participant

    so… my quick fix was to replace the string ReduxFramework::$_url with str_replace("/bitnami/wordpress/wp-content/", "",ReduxFramework::$_url) but that’s definitely just a patch up specific to my environment…

    #142881
     Radu
    Moderator

    Hi,

    The theme should work by default, do you have theme and plugins folders to default location ?

    (wp-content/plugins/ , wp-content/themes/)

    If you will install the theme to another environment should work by default

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #143020
     Rocla
    Participant

    Well, it means that it is not working on universal environments, and like in my case with symlinks.
    It also means that I will have to grep and replace to fix the problem that have the Redux Framework with the path generation at each update of the theme 🙁
    A solution could be to use the “plugins_url()” maybe?

    #143130
     Radu
    Moderator

    Just test it resolves the correct path ? using plugins_url() ?

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #143132
     Rocla
    Participant

    It works.

    plugins_url() -> http://IP/wp-content/plugins
    get_template_directory_uri() -> http://IP/wp-content/themes/kleo

    You can easily make a relative path by splitting the urls with “/”

    #143155
     Radu
    Moderator

    Ok then

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #143327
     Rocla
    Participant

    I also had to patch in kleo/kleo-framework/metaboxes/init.php

    define( 'KLEO_META_BOX_URL', kleo_Meta_Box::get_meta_box_url() ); -> define( 'KLEO_META_BOX_URL', str_replace("/bitnami/wordpress", "",kleo_Meta_Box::get_meta_box_url()) );

    #143382
     Radu
    Moderator

    Thank you for providing your solution

    Cheers
    R..

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 13 posts - 1 through 13 (of 13 total)

The forum ‘Bugs & Issues’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?