[commits] [Wiki] changed: Doc/Dev/H6/Developer/KnownIssues
Wiki Guest
wikiguest at horde.org
Mon Mar 13 21:07:30 UTC 2023
guest [91.32.116.242] Mon, 13 Mar 2023 21:07:30 +0000
Modified page: https://wiki.horde.org/Doc/Dev/H6/Developer/KnownIssues
New Revision: 2
Change log: added first issue
@@ -3 +3,46 @@
++ turba
+
++++ Non-static method Horde_Form::getType() cannot be called statically
+
+**Issue description:**
+
+<code>
+A FATAL ERROR HAS OCCURRED
+
+NON-STATIC METHOD HORDE_FORM::GETTYPE() CANNOT BE CALLED STATICALLY
+
+in /var/www/html/horde/vendor/horde/turba/templates/browse/row.inc:75
+1. require() /var/www/html/horde/vendor/horde/turba/index.php:24
+2. Turba_View_Browse->run()
/var/www/html/horde/vendor/horde/turba/browse.php:48
+3. Turba_View_List->display()
/var/www/html/horde/vendor/horde/turba/lib/View/Browse.php:425
+4. Turba_View_List->getAlpha()
/var/www/html/horde/vendor/horde/turba/lib/View/List.php:234
+5. Turba_View_List->_get()
/var/www/html/horde/vendor/horde/turba/lib/View/List.php:294
+6. include() /var/www/html/horde/vendor/horde/turba/lib/View/List.php:442
+</code>
+
+**Proposed solution from Brent <impuser at bitrealm.com>**
+I have found the fix for this. I had to "patch" the
+/var/www/html/horde/vendor/horde/turba/templates/browse/row.inc
+file. Here's my patch...I am decidedly NOT a programmer, so I've no
+idea if this is the right way to fix this, created a bottleneck, or if
+maybe I've unleashed Zod from his mirror prison.
+
+<code>
+@@ -72,11 +72,11 @@
+ if ($type == 'email') {
+ $this->variables[$this->columns[$c - 1]] =
+ new Horde_Form_Variable('', $this->columns[$c - 1],
+- Horde_Form::getType('html'), false);
++ (new
+Horde_Form(0))->getType('html'), false);
+ } else {
+ $this->variables[$this->columns[$c - 1]] =
+ new Horde_Form_Variable('', $this->columns[$c - 1],
+- Horde_Form::getType($type, $params),
++ (new
+Horde_Form(0))->getType($type, $params),
+ false);
+ }
+</code>
+
+
More information about the commits
mailing list