Categories > OpenTBS general >

Demo Open TBS Version : 3.8.0 for PHP 4 fails

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Claudio
Date: 2013-05-03
Time: 10:14

Demo Open TBS Version : 3.8.0 for PHP 4 fails

Hi,
I'm trying to run the demo of openTBS on a windows server with PHP ver.4.4.4. I installed Version: 3.8.0 for PHP 4 and the plug-in to version 1.7.6 OpenTBS (2012-06-06) in order to create "on the fly" a Word document. The first problem is that in the class tbs_class_php4.php at line 131 there is the following statement, which is not compatible with php4:} elseif ($ srcid instanceof Zend_Db_Adapter_Abstract). instanceof will only work for php5.
The second problem is that the demo is running in loop. In the script at line 67 demo_merge.php statement is executed: $ TBS-> MergeBlock ('a, b​​', $ data); when executing this statement must be in the loop. (If I comment it, does everything).
I think I find the point where the class tbs_class_php4 goes into loop. It should be during the execution of the function: function f_Xml_FindTagStart (& $ Txt, $ Tag, $ Opening, PosBeg $, $ Forward, $ Case = true) {
executes the statement at line 4121: if (substr ($ Txt, $ p, $ xl)! == $ x) continue; / / For PHP 4 only, at this point goes loop.

Has anyone had the same problem with PHP4?

Many thanks...
By: Skrol29
Date: 2013-05-04
Time: 00:03

Re: Demo Open TBS Version : 3.8.0 for PHP 4 fails

The version 3.8.0 that you're talking about is for TBS (TinyButSTrong), not OpenTBS.
The is a new version 3.8.2 that fixes the bug you have, I think.

You can run OpenTBS 1.7.6 with TBS 3.8.2.
A new version OpenTBS 1.8.0 will be released in few days. The package will include the demo with TBS 3.8.2.
By: Claudio
Date: 2013-05-06
Time: 08:00

Re: Demo Open TBS Version : 3.8.0 for PHP 4 fails

I wait for OpenTBS 1.8.0 and retry it.

Do is it possible to have an e-mail in order to know when OpenTBS 1.8.0 is released ?

Many thanks for your replay.

By: Skrol29
Date: 2013-05-06
Time: 10:53

Re: Demo Open TBS Version : 3.8.0 for PHP 4 fails

It is released :)