Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Certain $GLOBALS['project'] dependent URLs break when it's not present #2

Open
matamouros opened this issue Nov 10, 2011 · 0 comments

Comments

@matamouros
Copy link
Owner

[Reported by Miguel Manso]

Problem:
Certain URLs that depend on $GLOBALS['project'] might get broken when that global var is missing, i.e., when a URL is copied/pasted on an empty session.

Reproducing steps

  1. Logout
  2. Go to url http:///project/history

Result (probably not necessary)
[Thu Nov 10 17:49:00 2011] [error] [client 192.168.0.52] PHP Fatal error: Call to a member function getTitle() on a non-object in /tmp/00c620118d61376f8f9777a32e0ca99bd4a021b8.file.history.tpl.php on line 37, referer: http://cintient.dev.fms/project/history/?
[Thu Nov 10 17:49:00 2011] [error] [client 192.168.0.52] PHP Stack trace:, referer: http://cintient.dev.fms/project/history/?
[Thu Nov 10 17:49:00 2011] [error] [client 192.168.0.52] PHP 1. {main}() /opt/www/vhosts/cintient/src/handlers/webHandler.php:0, referer: http://cintient.dev.fms/project/history/?
[Thu Nov 10 17:49:00 2011] [error] [client 192.168.0.52] PHP 2. Smarty->display() /opt/www/vhosts/cintient/src/handlers/webHandler.php:174, referer: http://cintient.dev.fms/project/history/?
[Thu Nov 10 17:49:00 2011] [error] [client 192.168.0.52] PHP 3. Smarty->fetch() /opt/www/vhosts/cintient/lib/Smarty-3.0rc4/Smarty.class.php:370, referer: http://cintient.dev.fms/project/history/?
[Thu Nov 10 17:49:00 2011] [error] [client 192.168.0.52] PHP 4. Smarty_Internal_Template->getRenderedTemplate() /opt/www/vhosts/cintient/lib/Smarty-3.0rc4/Smarty.class.php:328, referer: http://cintient.dev.fms/project/history/?
[Thu Nov 10 17:49:00 2011] [error] [client 192.168.0.52] PHP 5. Smarty_Internal_Template->renderTemplate() /opt/www/vhosts/cintient/lib/Smarty-3.0rc4/sysplugins/smarty_internal_template.php:568, referer: http://cintient.dev.fms/project/history/?
[Thu Nov 10 17:49:00 2011] [error] [client 192.168.0.52] PHP 6. include() /opt/www/vhosts/cintient/lib/Smarty-3.0rc4/sysplugins/smarty_internal_template.php:436, referer: http://cintient.dev.fms/project/history/?

@ghost ghost assigned matamouros Nov 10, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant