Damn!!!! One simple little typo on pswd!!! Sorted!!!


Hi @wmk — sorry, I’m not sure how to log into DB via SSH on server. Any pointers/links/whatever? I did re-check settings and everything appears to match up...

Lorrain Fontaine

well, unless it doesn't work like any other SiteTree class, I indeed have published the file and the siteconfig owns it :

  1. private static $owns = [
  2. 'Logo'
  3. ];

@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/ So what gives? Any ideas?


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