markleeds wrote on Friday, April 07, 2006:
I think I patched up the main problems preventing a normal login when using MySQL and PHP 5. I don’t know if they are the best fixes, but, for now, I seem to be able to use OpenEMR normally with Apache 2.2, PHP 5, Mysql 5.
There is a good discussion of what seems to be the mysql problem here:
http://forums.devshed.com/mysql-help-4/mysql-5-0-left-joins-not-working-correctly-301347.html
I went with the workaround solution because I didn’t see how to apply the appropriate fix of fixing the joins.
Otherwise, the other few problems seem to be OOP related with PHP5 being more strict.
All problems seem to be Calendar and Smarty related.
Here are some notes I took to myself while going through this:
Fatal error: Class ADODB_Iterator contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Iterator::valid) in /usr/local/apache2/htdocs/openemr/library/adodb/adodb-iterator.inc.php on line 47
fix:
added stub function:
function valid() {}
to ADODB_Iterator
----
added () to FROM clause in pnuserapi.php at lines 736, 953 (the ‘workaround’)
----
/usr/local/apache2/htdocs/openemr/interface/main/calendar/modules/PostCalendar/pnincludes/Smarty/plugins/function.eval.php
changed this to _this
$_this->_compile_template("evaluated template", $var, $source);
$source = ""
and set source to "" after compile_template
I have no idea what I am messing up by doing this.
(end of notes)
Hope this helps. So far, the only other problems I’m having are due to not updating the database structure for my data. I may go live with this setup if it works ok with further testing over the next week or two.