@Lorrain Fontaine did you publish the file? Or does SiteConfig "own" the file relation, so it gets published automatically?

Lorrain Fontaine

But you were right, the image wasn't published, for some reason.

I checked and had to publish it manually using :

  1. public function onAfterWrite()
  2. {
  3. parent::onAfterWrite();
  5. if ($this->owner->LogoID) {
  6. $this->owner->Logo()->publishSingle();
  7. }
  8. }

The thing is that this is a custom SiteConfig, so I guess the process has to be done manually. Thank's for the tip ! 😉


Sometimes "owns" doesn't work correctly. You can publish the file in onAfterWrite() manually if that encounters more often

👍 (1)

@marvin it seems your db credentials are wrong. Can you login to db when you ssh on the server?

Lorrain Fontaine

Hi everyone. For some reason, I'm not able to use any file I'm uploading in a custom site config. Has anyone already encountered this "problem" ? 😮


According to StackOverflow the combination of letters and special characters (what?) that I have used is not allowed? Nothing ‘special’ or unusual in my settings — I think?


Hello people, just setting up my new site; environment prepared including .php version (check), files on server (check), Database configured and data uploaded (check), .env file set up (check), environment is set to dev mode and:

> [Warning] mysqli::real_connect(): (HY000/1045): Access denied for user ‘XXX_XXXX’@‘localhost’ (using password: YES) > GET / > Line 113 in /var/www/vhosts/test.domain.co.nz/httpdocs/vendor/silverstripe/framework/src/ORM/Connect/MySQLiConnector.php So what gives? Any ideas?


@Chris - means array, the above won't work with the hyphen there ❤️


Posting this for the logs: If you want to change the admin page title there's a config property you can change (any yml file): SilverStripe\Admin\LeftAndMain: application_name: 'YOUR APP NAME'


Maybe try to install debugbar and check what template we use on CMS