Skip to content
M. Drew LaMar edited this page Mar 2, 2024 · 6 revisions

Release Notes

Next Release

HubZero CMS Version: 2.2
ETA: February 1, 2018

  • NEW: [COM_TAGS] Focus areas implemented for Publications.
  • NEW: [COM_PARTNERS] Added Partners component.
  • NEW: [COM_PUBLICATIONS] Group owner added as organization in publication citation (displays with link to group).

FAQ

How to fix permissions

Sometimes you will run into a permissions issue (e.g. files having the wrong owner). All CMS files should have owner hubadmin, while all project files in /srv/<hubname>/projects should have owner apache. To fix any permissions issue you maybe be having, ssh into the hub and run the following:

sudo su - hubadmin
sudo /usr/share/adm/scripts/check_group_access_php.py

How to access component parameters

// Component params
$params = Component::params('com_publications');
$address = $params->get('curatorreplyto');

Logs

This log stores all CMS debug messages, but in particular when an email is sent successfully or not:

/var/log/hubzero/cmsdebug.log

Math support

$this->js('https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml-full.js')
//   ->js('MathJax/MathJax.js', 'system') // Should work?

How to call a task in a controller

https://github.com/qubeshub/hubzero-cms/blob/e990c587734d1418b56550887b04516347dffec2/app/plugins/groups/publications/publications.php#L289C1-L289C1

This code mimics a page call by setting request variables, instantiating a controller, executes the controller, and then loads the resulting view.

Exceptions

Useful for getting a readable stacktrace/backtrace.

throw new \Exception("Sup");

Clone this wiki locally