-
Author
-
November 3, 2016 at 20:20 #142774RoclaParticipant
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.
November 3, 2016 at 20:37 #142776RoclaParticipantFor a screenshot of the theme options page
Attachments:
You must be logged in to view attached files.November 4, 2016 at 00:51 #142799RaduModeratorHi,
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 solutionNovember 4, 2016 at 07:58 #142826RoclaParticipantOh dear, yes, you are right…
Do you have a config file where this could be set up?November 4, 2016 at 09:56 #142834RoclaParticipantI found that it’s related to
ReduxFramework::$_url . 'assets/css/redux-fields.css'
November 4, 2016 at 10:24 #142836RoclaParticipantso… my quick fix was to replace the string
ReduxFramework::$_url
withstr_replace("/bitnami/wordpress/wp-content/", "",ReduxFramework::$_url)
but that’s definitely just a patch up specific to my environment…November 4, 2016 at 19:16 #142881RaduModeratorHi,
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 solutionNovember 6, 2016 at 16:28 #143020RoclaParticipantWell, 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?November 7, 2016 at 17:19 #143130RaduModeratorJust 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 solutionNovember 7, 2016 at 17:31 #143132RoclaParticipantIt works.
plugins_url()
-> http://IP/wp-content/plugins
get_template_directory_uri()
-> http://IP/wp-content/themes/kleoYou can easily make a relative path by splitting the urls with “/”
November 7, 2016 at 18:50 #143155RaduModeratorOk then
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionNovember 8, 2016 at 14:02 #143327RoclaParticipantI 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()) );
November 8, 2016 at 18:51 #143382RaduModeratorThank 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 -
AuthorPosts
The forum ‘Bugs & Issues’ is closed to new topics and replies.