Fork me on GitHub

#1 2012-06-12 23:16:10

shann
Member
From: France
Registered: 2012-04-06
Posts: 11

[FIXED] EyeDesigner 1.0.0 runCode function - (last svn 7569)

Hi,

I try last svn ( oneye 0.9.0 (1.11.0.1) ) on my laptop (use Arch Linux).
I found a issue for EyeDesigner.
In fact with apache 2.2.22 / php 5.4.3 run function doesn't work (seem not work).
I analysed page with web developer include in Firefox and find the code doesn't interpreted by php.

In oneyexxx/apps/eyeDesigner/compile.eyecode you use a short php tag.
$code = '<? function eyeDesigner_Test_run($params=null){'."\n".$wndCode."\n}\n".'function eyeDesigner_Test_end($params = null) {'."\neyeWidgets('unserialize',".'$params'.');}?>';

I modified for:
$code = '<?php  function eyeDesigner_Test_run($params=null){'."\n".$wndCode."\n}\n".'function eyeDesigner_Test_end($params = null) {'."\neyeWidgets('unserialize',".'$params'.');}?>';

Work perfectly wink
       
I think you should use a full php tag <?php ?> instead of <? ?>.
in fact this depends of php version who runs on server.

Last edited by lars-sh (2012-06-13 17:39:14)

Offline

#2 2012-06-13 01:53:11

s0600204
Member
From: UK
Registered: 2012-01-22
Posts: 118
Website

Re: [FIXED] EyeDesigner 1.0.0 runCode function - (last svn 7569)

Thank you for reporting this.

You're right, it should be the full php tag. I'm not sure why it wasn't, perhaps a quirk of the original programmer (Nowhere else in oneye is the shortened tag used).

It has been amended in the repository (r.7570), and the downloadable eyePackage updated.

Offline

Board footer

Powered by FluxBB