I'm a bit lost with how the precedences etc are calculated

what's the best way to specify a config variable in <submodule>/_config/config.yml and have it overwritable in mysite's config?

TIL: I learnt how to trivially fix mysql table names on Winders for SS. Go into MySQLSchemaManager::checkAndRepairTable and add this and then run /dev/build:

  1. $this->renameTable(strtolower($tableName), $tableName.'_renameplease');
  2. $this->renameTable($tableName.'_renameplease', $tableName);

Example:

  1. public function checkAndRepairTable($tableName) {
  2. // Flag to ensure we only send the warning about PDO + native mode once
  3. static $pdo_warning_sent = false;
  4.  
  5. // If running PDO and not in emulated mode, check table will fail
  6. if($this->database->getConnector() instanceof PDOConnector && !PDOConnector::is_emulate_prepare()) {
  7. if (!$pdo_warning_sent) {
  8. $this->alterationMessage('CHECK TABLE command disabled for PDO in native mode', 'notice');
  9. $pdo_warning_sent = true;
  10. }
  11.  
  12. return true;
  13. }
  14.  
  15. // CODE HERE
  16. $this->renameTable(strtolower($tableName), $tableName.'_renameplease');
  17. $this->renameTable($tableName.'_renameplease', $tableName);
  18. // CODE HERE
  19.  
  20. // Perform check
  21. if (!$this->runTableCheckCommand("CHECK TABLE \"$tableName\"")) {
  22. if ($this->runTableCheckCommand("CHECK TABLE \"" . strtolower($tableName) . "\"")) {
  23. $this->alterationMessage(
  24. "Table $tableName: renamed from lowercase",
  25. "repaired"
  26. );
  27. return $this->renameTable(strtolower($tableName), $tableName);
  28. }
  29.  
  30. $this->alterationMessage(
  31. "Table $tableName: repaired",
  32. "repaired"
  33. );
  34. return $this->runTableCheckCommand("REPAIR TABLE \"$tableName\" USE_FRM");
  35. } else {
  36. return true;
  37. }
  38. }

Finally, run /dev/build

PHP settings? http://www.silverstripe.org/community/forums/general-questions/show/24938

Attachments:
silverstripe.org  
General Questions

Seen that before. Possibly a setting on your PHP not allowing the file through.

Normally I get permission errors but never seen this message.

Hey guys, I have just set up a new server and am getting Filesize is zero bytes. when uploading images through the upload field. Permissions on assets are 775 and is owned by my deployer (capistrano) and group is apache (centos 7).

The framework should work standalone, so it's good to get those things done as well.