Revignitor and Livecoder Server

Bringing the internet highway into your project? Building FTP, HTTP, email, chat or other client solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
rippertoews
Posts: 9
Joined: Thu Sep 25, 2014 10:11 pm

Revignitor and Livecoder Server

Post by rippertoews » Thu Sep 17, 2015 8:39 pm

Hi,

I'm using xampp to host livecode server and so far so good... then I tried to copy revIgnitor into a subfolder and I can't seem to get it working... in my config.lc I have
the gConfig["baseUrI"] setting set and put "index.lc" into gConfig["indexPage"]... which appears to be correct.

I can run lc scripts but when I try to hit my page I get the following error...

file "C:/xampp/htdocs/testlocal/index.lc"
row 142, col 1: include: could not find file (/system/revigniter/RevIgniter.lc)

I"ve confirmed the follow file path exists... C:/xampp/htdocs/testlocal/system/revigniter/RevIgniter.lc

Thanks,
Jason

ghettocottage
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 366
Joined: Tue Apr 10, 2012 9:18 am

Re: Revignitor and Livecoder Server

Post by ghettocottage » Fri Sep 18, 2015 2:40 am

If it were a Linux box I would say it is probably a permissions problem, but I am not sure who Xampp runs as on a Windows box..

but check permissions on those files you added..they should be the same as some other web-files that do work.

rabit
Posts: 40
Joined: Wed May 31, 2006 8:30 am

Re: Revignitor and Livecoder Server

Post by rabit » Fri Sep 18, 2015 9:35 am

Could you please tell me what the value of your server variable $_Server["PATH_TRANSLATED"] is?
Check this anywhere in your index.lc file above the following line

include gBASEPATH & "revigniter/RevIgniter" & gEXT


Thanks.

Ralf

rippertoews
Posts: 9
Joined: Thu Sep 25, 2014 10:11 pm

Re: Revignitor and Livecoder Server

Post by rippertoews » Fri Sep 18, 2015 4:05 pm

Hi Ralf,

It value of PATH_TRANSLATED appears to be

C:\xampp\htdocs\index.lc

Thanks,
Jason

rippertoews
Posts: 9
Joined: Thu Sep 25, 2014 10:11 pm

Re: Revignitor and Livecoder Server

Post by rippertoews » Fri Sep 18, 2015 4:46 pm

I tried running process monitor on the livecode-server.exe and it looks like it's looking /system/revigniter/RevIgniter.lc in the root of c:\ completely bypassing the c:\xampp\htdocs\testlocal\ folder path...

I also have external hosting in on-rev.com and I tried what works there (want to try my own hosting for experience) and just changed the URL in the config.lc baseUrl and I figured that would work but I get the error instead... if I try to run other lc scripts I create - they will run but not if I try loading the index.lc inside my testlocal subfolder.

My structure (from a windows perspective) is
c:\xampp\htdocs --> testlocal folder
testlocal\system
testlocal\assets
testlocal\userGuide

I thought just changing the baseUrl in config.lc to my external DNS name and subfolder and trailing slash would be enough to get it working...

Thanks,
Jason

rabit
Posts: 40
Joined: Wed May 31, 2006 8:30 am

Re: Revignitor and Livecoder Server

Post by rabit » Sat Sep 19, 2015 3:27 pm

Hi Jason,

to be honest, it appears that you are first who tried
to install revIgniter on Windows. This doesn't mean
that it is not possible to run revIgniter on Windows
but certainly it requires a couple of adjustments.

If you are adventurous we could try together to
iron out all flaws you may find on Windows.

So, my first advice is to set an absolute path for
gSystemFolder in index.lc. In your case this is:

C:\xampp\htdocs\testlocal\system

if this path still applies. Strangely PATH_TRANSLATED
gives:

C:\xampp\htdocs\index.lc

as you mentioned, actually "testlocal" is missing here.
So, you might double check the path to your index file again.


Then replace:

Code: Select all

	put $_Server["PATH_TRANSLATED"] into sTempPath
	set the itemdel to "/"

	if char 1 of gSystemFolder is not "/" then
		put item 1 to -2 of sTempPath & "/" & gSystemFolder into gSystemFolder
	end if

with:

Code: Select all

put $_Server["PATH_TRANSLATED"] into sTempPath
   
   	if "/" is in sTempPath then
   		put "/" into tPathDel
   	else
   		put "\" into tPathDel
   	end if
    
   	set the itemdel to tPathDel
   
   	if (char 1 of gSystemFolder is not "/") or (char 2 of gSystemFolder is not ":") then
   		put item 1 to -2 of sTempPath & tPathDel & gSystemFolder into gSystemFolder
   	end if


If this works you may replace the absolute path to system
in gSystemFolder with "system".


Please let me know if this helps.


Warm regards

Ralf

rabit
Posts: 40
Joined: Wed May 31, 2006 8:30 am

Re: Revignitor and Livecoder Server

Post by rabit » Sat Sep 19, 2015 5:58 pm

Hi Jason,

sorry, made a mistake, the fixed code should read:

Code: Select all

put $_Server["PATH_TRANSLATED"] into sTempPath

   if "/" is in sTempPath then
      put "/" into tPathDel
   else
      put "\" into tPathDel
   end if
 
   set the itemdel to tPathDel

   if ((tPathDel is "/") and (char 1 of gSystemFolder is not "/")) or ((tPathDel is "\") and (char 2 of gSystemFolder is not ":")) then
      put item 1 to -2 of sTempPath & tPathDel & gSystemFolder into gSystemFolder
   end if


Ralf

rippertoews
Posts: 9
Joined: Thu Sep 25, 2014 10:11 pm

Re: Revignitor and Livecoder Server

Post by rippertoews » Mon Sep 21, 2015 2:24 pm

Thanks for your help... I just wanted a testbed type of situation of using Revigniter & LiveCode server - but there are too many things with xampp that are becoming difficult - I'm going to see try a Ubuntu Server virtualbox image and set it up on there. Maybe we could have a Livecode/Revigniter "appliance" that is preconfigured... Just not sure on the legalities of that...

Thanks again,
Jason

denzio
Posts: 6
Joined: Sat Oct 05, 2013 9:02 am

Re: Revignitor and Livecoder Server

Post by denzio » Wed Nov 18, 2015 5:57 am

Hi,

I also have the same issue using XAMPP. My Livecode Community Server is running ok but the RevIgniter Framerk got error.
It does not include the folder path where the Revigniter Framework are stored.

ERROR:
file "C:/xampp/htdocs/index.lc"
row 148, col 1: include: could not find file (C:/xampp/htdocs/system/revigniter/RevIgniter.lc)


whereas the missing folder is revig (my folder that stores the revigniter framework files and folder)

The correct path should be:
C:/xampp/htdocs/revig/system/revigniter/RevIgniter.lc

Please help how to resolve this issue.

Thank you so much in advance.

Regards,
Denns

ghettocottage
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 366
Joined: Tue Apr 10, 2012 9:18 am

Re: Revignitor and Livecoder Server

Post by ghettocottage » Wed Nov 18, 2015 4:11 pm

In linux, a quick-fix would be to create a symlink to the folder that the application is looking for...not sure if windows has that. Shortcut maybe?

In other words, can you create a shortcut for this:

C:/xampp/htdocs/revig/system/

and rename that Shortcut to just system and put it in this folder:

C:/xampp/htdocs/

rabit
Posts: 40
Joined: Wed May 31, 2006 8:30 am

Re: Revignitor and Livecoder Server

Post by rabit » Thu Nov 19, 2015 2:07 pm

Hmm... even the engine gives the wrong path to the script file
in it's error message:

file "C:/xampp/htdocs/index.lc"

Could you please provide info about which revIgniter version you are using?
What happens if you set gSystemFolder in index.lc (line 19) to a full-server path to your system folder? Like:

Code: Select all

put "C:/xampp/htdocs/revig/system" into gSystemFolder

Ralf

Post Reply

Return to “Internet”