revIgniter and LC8

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

revIgniter and LC8

Alex Tweedly
[ Hope no-one minds me cross-posting to two lists - but I think this
could be useful for people on both lists ]

I have a couple of web sites based on revIgniter, hosted on hostM.com

They've been running happily up until today - running the default
version in use by hostm which was (probably) the latest released version
(i.e. 7.1.4 I think).

Today, LC8..0 was released, so hostM have changed their default version
to that - and all my revIgniter sites now fail - see traceback info below.

hostm do provide a way to choose the version to be used, by using a
different extension (i.e. .lc vs .lc7 vs .lc6 etc.)
However, using this with revIgniter doesn't work, because revIgniter
then uses the same extension in all included files.

So - in case anyone else runs into this - the quick work-around is to
add the second line below at line97 in ignite.lc, which is then renamed
ignite.lc7
(and of course modify any links/redirects as needed ...)

     put "." & item -1 of sTempFileName into gEXT
     put ".lc" into gEXT    -- override for now !! AGT

There may be a better workaround using .htaccess - but I couldn't get
that to work; I can't figure out what to use for the engine name.


So now that we have a workaround, what's the real problem ?  What about
LC8.0 breaks with revIgniter ?
The traceback is as follows .. web site is http://christineirvine.co.uk 
(still under development)

file "/home/ua886128/public_html/christineirvine.co.uk/system/libraries/Router.lc"
file "/home/ua886128/public_html/christineirvine.co.uk/system/libraries/URI.lc"
file "/home/ua886128/public_html/christineirvine.co.uk/system/libraries/Config.lc"
file "/home/ua886128/public_html/christineirvine.co.uk/system/libraries/Log.lc"
file "/home/ua886128/public_html/christineirvine.co.uk/system/libraries/Benchmark.lc"
file "/home/ua886128/public_html/christineirvine.co.uk/system/application/config/config.lc"
file "/home/ua886128/public_html/christineirvine.co.uk/system/libraries/Hooks.lc"
file "/home/ua886128/public_html/christineirvine.co.uk/system/application/config/constants.lc"
file "/home/ua886128/public_html/christineirvine.co.uk/system/revigniter/Common.lc"
file "/home/ua886128/public_html/christineirvine.co.uk/system/revigniter/RevIgniter.lc"
file "/home/ua886128/public_html/christineirvine.co.uk/system/libraries/Router.lc"
   row 1114, col 35: script: parsing error (13)
   row 1114, col 35: Operators mod: can't divide scalar by matrix (then)
   row 1114, col 35: do: can't find command (then)
   row 1114, col 35: request: error in keyword expression (then)
   row 89, col 1: script: parsing error
   row 89, col 1: if-then: error in statement
   row 89, col 1: if-then: error in statement
   row 89, col 1: if-then: error in statement
   row 77, col 1: Handler: error in statement (rigLoadLibrary)
file "/home/ua886128/public_html/christineirvine.co.uk/system/libraries/Output.lc"
   row 138, col 1: Handler: can't find handler (rigLoadLibrary)
file "/home/ua886128/public_html/christineirvine.co.uk/system/libraries/Input.lc"

I've not been able to identify what is the failing line, or even which script it is in :-)

-- Alex.






_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: [revIgniter] revIgniter and LC8

Dave Kilroy
Hi @Alex, I’m also using revIgniter on HostM and not seeing the same thing…

BTW, on the advice of a HostM technician a while ago I use the following in a .htaccess file in a domain folder to select which version of LC Server is used (I’ve not tried setting it to “lc8” but should think that would work too) - anyway, using this means you don’t have to make any changes to the .lc file extensions

<FilesMatch "\.lc$">
SetHandler lc6
</FilesMatch>

Kind regards

Dave




> On 5 May 2016, at 00:45, Alex Tweedly <[hidden email]> wrote:
>
> [ Hope no-one minds me cross-posting to two lists - but I think this could be useful for people on both lists ]
>
> I have a couple of web sites based on revIgniter, hosted on hostM.com
>
> They've been running happily up until today - running the default version in use by hostm which was (probably) the latest released version (i.e. 7.1.4 I think).
>
> Today, LC8..0 was released, so hostM have changed their default version to that - and all my revIgniter sites now fail - see traceback info below.
>
> hostm do provide a way to choose the version to be used, by using a different extension (i.e. .lc vs .lc7 vs .lc6 etc.)
> However, using this with revIgniter doesn't work, because revIgniter then uses the same extension in all included files.
>
> So - in case anyone else runs into this - the quick work-around is to add the second line below at line97 in ignite.lc, which is then renamed ignite.lc7
> (and of course modify any links/redirects as needed ...)
>
>     put "." & item -1 of sTempFileName into gEXT
>     put ".lc" into gEXT    -- override for now !! AGT
>
> There may be a better workaround using .htaccess - but I couldn't get that to work; I can't figure out what to use for the engine name.
>
>
> So now that we have a workaround, what's the real problem ?  What about LC8.0 breaks with revIgniter ?
> The traceback is as follows .. web site is  http://christineirvine.co.uk <http://christineirvine.co.uk/>  (still under development)
>
> file "/home/ua886128/public_html/christineirvine.co.uk/system/libraries/Router.lc"
> file "/home/ua886128/public_html/christineirvine.co.uk/system/libraries/URI.lc"
> file "/home/ua886128/public_html/christineirvine.co.uk/system/libraries/Config.lc"
> file "/home/ua886128/public_html/christineirvine.co.uk/system/libraries/Log.lc"
> file "/home/ua886128/public_html/christineirvine.co.uk/system/libraries/Benchmark.lc"
> file "/home/ua886128/public_html/christineirvine.co.uk/system/application/config/config.lc"
> file "/home/ua886128/public_html/christineirvine.co.uk/system/libraries/Hooks.lc"
> file "/home/ua886128/public_html/christineirvine.co.uk/system/application/config/constants.lc"
> file "/home/ua886128/public_html/christineirvine.co.uk/system/revigniter/Common.lc"
> file "/home/ua886128/public_html/christineirvine.co.uk/system/revigniter/RevIgniter.lc"
> file "/home/ua886128/public_html/christineirvine.co.uk/system/libraries/Router.lc"
>   row 1114, col 35: script: parsing error (13)
>   row 1114, col 35: Operators mod: can't divide scalar by matrix (then)
>   row 1114, col 35: do: can't find command (then)
>   row 1114, col 35: request: error in keyword expression (then)
>   row 89, col 1: script: parsing error
>   row 89, col 1: if-then: error in statement
>   row 89, col 1: if-then: error in statement
>   row 89, col 1: if-then: error in statement
>   row 77, col 1: Handler: error in statement (rigLoadLibrary)
> file "/home/ua886128/public_html/christineirvine.co.uk/system/libraries/Output.lc"
>   row 138, col 1: Handler: can't find handler (rigLoadLibrary)
> file "/home/ua886128/public_html/christineirvine.co.uk/system/libraries/Input.lc"
>
> I've not been able to identify what is the failing line, or even which script it is in :-)
>
> -- Alex.
>
>
>
>
>
>
> _______________________________________________
> revIgniter mailing list
> [hidden email]
> http://lists.livecodejournal.com/listinfo.cgi/revigniter-livecodejournal.com

_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
"The first 90% of the task takes 90% of the time, and the last 10% takes the other 90% of the time."
Peter M. Brigham
Reply | Threaded
Open this post in threaded view
|

Re: revIgniter and LC8

Monte Goulding-2
In reply to this post by Alex Tweedly
These errors can be hard to read. You want:
> row 1114, col 35: script: parsing error (13)
> file "/home/ua886128/public_html/christineirvine.co.uk/system/libraries/Input.lc”

_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: [revIgniter] revIgniter and LC8

Alex Tweedly
In reply to this post by Dave Kilroy
Thanks Dave - good suggestion for the htaccess file, this means you
never use the 'default' version of LC, you are using the latest version
of LC 6.x.x without having to specify the exact detailed version !

-- Alex.

On 05/05/2016 01:08, Dave Kilroy wrote:

> Hi @Alex, I’m also using revIgniter on HostM and not seeing the same thing…
>
> BTW, on the advice of a HostM technician a while ago I use the following in a .htaccess file in a domain folder to select which version of LC Server is used (I’ve not tried setting it to “lc8” but should think that would work too) - anyway, using this means you don’t have to make any changes to the .lc file extensions
>
> <FilesMatch "\.lc$">
> SetHandler lc6
> </FilesMatch>
>
> Kind regards
>
> Dave
>
>
>
>
>> On 5 May 2016, at 00:45, Alex Tweedly <[hidden email]> wrote:
>>
>> [ Hope no-one minds me cross-posting to two lists - but I think this could be useful for people on both lists ]
>>
>> I have a couple of web sites based on revIgniter, hosted on hostM.com
>>
>> They've been running happily up until today - running the default version in use by hostm which was (probably) the latest released version (i.e. 7.1.4 I think).
>>
>> Today, LC8..0 was released, so hostM have changed their default version to that - and all my revIgniter sites now fail - see traceback info below.
>>
>> hostm do provide a way to choose the version to be used, by using a different extension (i.e. .lc vs .lc7 vs .lc6 etc.)
>> However, using this with revIgniter doesn't work, because revIgniter then uses the same extension in all included files.
>>
>> So - in case anyone else runs into this - the quick work-around is to add the second line below at line97 in ignite.lc, which is then renamed ignite.lc7
>> (and of course modify any links/redirects as needed ...)
>>
>>      put "." & item -1 of sTempFileName into gEXT
>>      put ".lc" into gEXT    -- override for now !! AGT
>>
>> There may be a better workaround using .htaccess - but I couldn't get that to work; I can't figure out what to use for the engine name.
>>
>>
>> So now that we have a workaround, what's the real problem ?  What about LC8.0 breaks with revIgniter ?
>> The traceback is as follows .. web site is  http://christineirvine.co.uk <http://christineirvine.co.uk/>  (still under development)
>>
>> file "/home/ua886128/public_html/christineirvine.co.uk/system/libraries/Router.lc"
>> file "/home/ua886128/public_html/christineirvine.co.uk/system/libraries/URI.lc"
>> file "/home/ua886128/public_html/christineirvine.co.uk/system/libraries/Config.lc"
>> file "/home/ua886128/public_html/christineirvine.co.uk/system/libraries/Log.lc"
>> file "/home/ua886128/public_html/christineirvine.co.uk/system/libraries/Benchmark.lc"
>> file "/home/ua886128/public_html/christineirvine.co.uk/system/application/config/config.lc"
>> file "/home/ua886128/public_html/christineirvine.co.uk/system/libraries/Hooks.lc"
>> file "/home/ua886128/public_html/christineirvine.co.uk/system/application/config/constants.lc"
>> file "/home/ua886128/public_html/christineirvine.co.uk/system/revigniter/Common.lc"
>> file "/home/ua886128/public_html/christineirvine.co.uk/system/revigniter/RevIgniter.lc"
>> file "/home/ua886128/public_html/christineirvine.co.uk/system/libraries/Router.lc"
>>    row 1114, col 35: script: parsing error (13)
>>    row 1114, col 35: Operators mod: can't divide scalar by matrix (then)
>>    row 1114, col 35: do: can't find command (then)
>>    row 1114, col 35: request: error in keyword expression (then)
>>    row 89, col 1: script: parsing error
>>    row 89, col 1: if-then: error in statement
>>    row 89, col 1: if-then: error in statement
>>    row 89, col 1: if-then: error in statement
>>    row 77, col 1: Handler: error in statement (rigLoadLibrary)
>> file "/home/ua886128/public_html/christineirvine.co.uk/system/libraries/Output.lc"
>>    row 138, col 1: Handler: can't find handler (rigLoadLibrary)
>> file "/home/ua886128/public_html/christineirvine.co.uk/system/libraries/Input.lc"
>>
>> I've not been able to identify what is the failing line, or even which script it is in :-)
>>
>> -- Alex.
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> revIgniter mailing list
>> [hidden email]
>> http://lists.livecodejournal.com/listinfo.cgi/revigniter-livecodejournal.com
> _______________________________________________
> use-livecode mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: revIgniter and LC8

Alex Tweedly
In reply to this post by Monte Goulding-2
Thanks Monte. I had looked at the files listed immediately before and
after that part of the traceback - didn't think of going further down
the list ...

So looking in Input.lc, I found line 1114 has

     repeat for each item tSegment in tIPsegments then

which is clearly wrong - the stricter parser in LC8 complained (quite
rightly :-) even though earlier version were happy.

Many thanks
Alex.

On 05/05/2016 01:15, Monte Goulding wrote:
> These errors can be hard to read. You want:
>> row 1114, col 35: script: parsing error (13)
>> file "/home/ua886128/public_html/christineirvine.co.uk/system/libraries/Input.lc”
> _______________________________________________
> use-livecode mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: [revIgniter] revIgniter and LC8

Dave Kilroy
In reply to this post by Alex Tweedly
Yep that’s right, the .htaccess file can go anywhere in the file system so with multiple copies you can have some domains running really old versions of LC Server, others just moderately old and yet others surfing the latest version

> Thanks Dave - good suggestion for the htaccess file, this means you
> never use the 'default' version of LC, you are using the latest version
> of LC 6.x.x without having to specify the exact detailed version !
>
> -- Alex.
_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
"The first 90% of the task takes 90% of the time, and the last 10% takes the other 90% of the time."
Peter M. Brigham
Reply | Threaded
Open this post in threaded view
|

Re: [revIgniter] revIgniter and LC8

Ralf Bitter-2
Sorry for coming late. The superfluous "then" keyword in
system/libraries/Input.lc -> _rigValid_ipv4() was overlooked
because server engine versions prior to 8 were forgiving and
didn't complain.
The bug is fixed since version 1.7.2. So, all of you who use
older versions need to fix this in case you intend to upgrade
the server engine to version 8.
Anyhow I recommend to update revIgniter to the latest version.


Warm regards

Ralf

_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode