500 internal server error wiki

500 internal server error wiki

HTTP Status Code 500: The server encountered an unexpected condition that prevented it from fulfilling the request. 500 Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. and in the apache error_log. The 500 status code, or “Internal Server Error,” means that the server cannot process the request for an unknown reason. Sometimes this code will appear.

500 internal server error wiki - mine

activex applet

500 Internal Server Error

This error is usually related with the permissions/ownership issue.

suPHP requires that the files are owned by the user name, and suExec requires that they are executed from the correct home folder.

Permissions on php files should also be set to 640 (-rw-r-----), folder permission must be 755.
All other files like html, css, js and others should have 644.

How to change ownership on the files and folders
go to CWP.admin Left Menu --> User Accounts -- > Fix Permissions and select user.

Apache Logs are in:
/usr/local/apache/logs/
/usr/local/apache/domlogs/

500 Internal Server Error
Issue related to the server configuration, examples, and most common issues:
- Domain has custom PHP version configured using .htaccess and that PHP version isn't installed on the server.
- Domain has defined Options in .htaccess file, you need to remove line starting with Options
- PHP/PHP-FPM version is not working well with the site code, try another version.

Check more detailed info about webserver errors here.

A 500 internal error occurs when viewing a particular wiki page, the following appears in the log:

Started GET "/redmine/projects/projName/wiki/SomeWikiPage" for <IP ADR> at Thu Sep 26 13:57:39 +1000 2013 Processing by WikiController#show as HTML Parameters: {"project_id"=>"projName", "id"=>"SomeWikiPage"} Current user: userName(id=3) Completed 500 Internal Server Error in 19ms NoMethodError (undefined method `current_version?' for nil:NilClass): app/controllers/wiki_controller.rb:96:in `show'

The error is 100% repeatable when viewing this particular page, although other wiki pages are rendered ok.
We believe it may have happened after deleting a revision on the wiki history page.
We tried to repeat it on the redmine demo site with no luck, although the demo site says it was running 2.3.1.devel.11915, we are using 2.3.3.stable.

Environment:
Redmine version 2.3.3.stable
Ruby version 1.8.7-p253 (2010-04-19) [i686-linux]
Rails version 3.2.13
Environment production
Database adapter Mysql2
Redmine plugins:
redmine_github_hook 0.2.0

chrome) >.(script \t/g, “”), 25)}</p>
<p class=”text-center”>
Weiterlesen »
</p>
</div>
<div class=”card-footer bg-white text-center bootstrap_cards_footer”>
${new Date(data.date).toLocaleDateString(‘de-DE’, bootstrap_cards_object.date_options)}
</div>
</div>
</div>
`);
},
get_and_append_items: function(category_id) {

bootstrap_cards_object.current_offset = bootstrap_cards_object.current_offset + bootstrap_cards_object.per_page;

var data = {
per_page: bootstrap_cards_object.per_page,
offset: bootstrap_cards_object.current_offset
};

if(category_id == “all”){

} else {
data.categories = category_id;
}

$.ajax({
method: “GET”,
url: window.location.origin + “/wp-json/wp/v2/posts?_embed”,
data: data
})
.done(function( data ) {

if(category_id == “all”){
for (var i = 0; i < data.length; i++) {
bootstrap_cards_object.append_item_with_tag(data[i]);
}
} else {
for (var i = 0; i < data.length; i++) {
bootstrap_cards_object.append_item(data[i]);
}
}

//bootstrap_cards_object.add_load_more_button(category_id);
bootstrap_cards_object.empty_load_more_button_container();

if(data.length >= bootstrap_cards_object.per_page ){
bootstrap_cards_object.add_load_more_button(category_id);
} else {

}

});
},
get_and_place_items: function(category_id) {
bootstrap_cards_object.toggle_spinner();
bootstrap_cards_object.empty_items_container();
bootstrap_cards_object.empty_load_more_button_container();
bootstrap_cards_object.current_offset = 0;

var data = {
per_page: bootstrap_cards_object.per_page
};

if(category_id == “all”){

} else {
data.categories = category_id;
}

$.ajax({
method: “GET”,
url: window.location.origin + “/wp-json/wp/v2/posts?_embed”,
data: data
})
.done(function( data ) {

bootstrap_cards_object.toggle_spinner();
bootstrap_cards_object.empty_items_container();

if(category_id == “all”){
for (var i = 0; i < data.length; i++) {
bootstrap_cards_object.append_item_with_tag(data[i]);
}
} else {
for (var i = 0; i < data.length; i++) {
bootstrap_cards_object.append_item(data[i]);
}
}

if(data.length >= bootstrap_cards_object.per_page ){
bootstrap_cards_object.add_load_more_button(category_id);
} else {
bootstrap_cards_object.empty_load_more_button_container();
}

});
},
get_and_place_categories: function(params) {

$.ajax({
method: “GET”,
url: window.location.origin + “/wp-json/wp/v2/categories”,
data: {exclude: bootstrap_cards_object.categories_to_be_excluded}
})
.done(function( data ) {
$(“.bootstrap_cards_buttons_container”).empty();
$(“.bootstrap_cards_buttons_container”).append(`
<button type=”button” class=”bootstrap_cards_category_button bootstrap_cards_category_button_all mb-4″ data-category-id=”all”>Alle anzeigen</button>
`);

for (var i = 0; i < data.length; i++) {

bootstrap_cards_object.category_names[data[i].id] = data[i].name;

$(“.bootstrap_cards_buttons_container”).append(`
<button type=”button” class=”bootstrap_cards_category_button my-2″ data-category-id=${data[i].id}>${data[i].name}</button>
`);
}
bootstrap_cards_object.add_listeners_for_category_buttons();
});
},
truncate: function(string, max) {
var array = string.trim().split(‘ ‘);
var filtered_array = array.filter(function(el) { return el; });
var ellipsis = array.length > max ? ‘…’ : ”;
return filtered_array.slice(0, max).join(‘ ‘) + ellipsis;
}
};

bootstrap_cards_object.categories_to_be_excluded = $(“.bootstrap_cards_container”).data(“categories-to-be-excluded”);
bootstrap_cards_object.per_page = $(“.bootstrap_cards_container”).data(“per-page”);

bootstrap_cards_object.get_and_place_categories();
bootstrap_cards_object.get_and_place_items(“all”);
});`

blog-filter-with-bootstrap-cards.css