#1 December 28, 2016 8:34am

daansk44
Member
From: Amersfoort, The Netherlands
Registered: September 12, 2016
Posts: 42

Images invisible on page

Good Afthernoon,

I am trying to upload images to a page, but it adds the wrong link (http://domain.comfiles/resources/large_gym.jpg)

This is my enviroments.php (someone know why it does nog work

wrong_page.png

<?
// Time Zone
    date_default_timezone_set("Europe/Amsterdam");
    // Website Environment
    $bigtree["config"]["debug"] = true; // Set to false to stop all PHP errors/warnings from showing, or "full" to show all errors include notices and strict standards
    $bigtree["config"]["domain"] = "http://domain.lan/";    // "domain" should be http://www.website.com
    $bigtree["config"]["www_root"] = "http://domain.lan/"; // "www_root" should be http://www.website.com/location/of/the/site/
    $bigtree["config"]["static_root"] = "http://domain.lan/"; // "static_root" can either be the same as "www_root" or another domain that points to the same place -i t is used to server static files to increase page load time due to max connections per domain in most browsers.
    $bigtree["config"]["admin_root"] = "http://domain.lan/admin/"; // "admin_root" should be the location you want to access BigTree's admin from, i.e. http://www.website.com/admin/
    $bigtree["config"]["force_secure_login"] = false; // If you have HTTPS enabled, set to true to force admin logins through HTTPS
    $bigtree["config"]["environment"] = ""; // "dev" or "live"; empty to hide
    $bigtree["config"]["environment_live_url"] = ""; // Live admin URL
    $bigtree["config"]["developer_mode"] = false; // Set to true to lock out all users except developers.
    $bigtree["config"]["maintenance_url"] = false; // Set to a URL to 307 redirect visitors to a maintenance page (driven by /templates/basic/_maintenance.php).
    $bigtree["config"]["routing"] = "htaccess";
    $bigtree["config"]["cache"] = false; // Enable Simple Caching
    $bigtree["config"]["cache_ttl"] = 300; // Number of seconds to keep a cached page
    $bigtree["config"]["sql_interface"] = "mysqli"; // Change to "mysql" to use legacy MySQL interface in PHP.

    // Database Environment
    $bigtree["config"]["db"]["host"] = "localhost";
    $bigtree["config"]["db"]["name"] = "xx";
    $bigtree["config"]["db"]["user"] = "xx";
    $bigtree["config"]["db"]["password"] = "xx";
    $bigtree["config"]["db"]["port"] = "";
    $bigtree["config"]["db"]["socket"] = "";

    // Separate write database info (for load balanced setups)
    $bigtree["config"]["db_write"]["host"] = "";
    $bigtree["config"]["db_write"]["name"] = "";
    $bigtree["config"]["db_write"]["user"] = "";
    $bigtree["config"]["db_write"]["password"] = "";
    $bigtree["config"]["db_write"]["port"] = "";
    $bigtree["config"]["db_write"]["socket"] = "";
?>

Offline

#2 December 28, 2016 2:42pm

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 978

Re: Images invisible on page

Usually that's an indication of a missing trailing slash on your $bigtree["config"]["static_root"] configuration.

Offline

Board footer

Powered by FluxBB

The Discussion Forum is not available on displays of this size.