elog from php, posted by Stefano on Wed Sep 23 23:57:43 2015
|
Hi,
I need to run elog command in an online php script. The problem I see is that the script works from the command line but not from the browser. In the script I just use:
system(elog -h mypc -p 8080 -l bla -a Author=\'io\' -a Type=\' ..etc.etc
any suggestions? |
Elog command not working properly, posted by Stefano colafranceschi on Thu Sep 24 00:13:31 2015
|
|
Elog command not working properly, posted by Stefano colafranceschi on Thu Sep 24 00:14:49 2015
|
<p>Hi,</p>
<p>I have a problem running elog command from php script. Basically in the php I call system("elog -h etc etc.. And from the php command line works but not in the browser apparently without errors (php apache logfile no problem), any suggestions?</p> |
Re: Elog command not working properly, posted by Edmund Hertle on Fri Sep 25 22:37:08 2015
|
> <p>Hi,</p>
>
> <p>I have a problem running elog command from php script. Basically in the php I call system("elog -h etc etc.. And from the php command line works but not in the browser apparently without errors (php apache
logfile no problem), any suggestions?</p>
Hey,
this sounds more like a PHP issue.
Which PHP version are you using?
Which webserver?
Which php function are you using: shell_exec() or exec()? Try looking at the return of exec()
Is the elog file set to the correct file permissions to be executed by the webserver?
Is the elog file in the PHP path or do you take care of defining the correct path?
eddy |
Re: Elog command not working properly, posted by Stefano on Sat Sep 26 03:34:44 2015
|
Yes it was a path issue PHP was not loading correctly environmental path
> > <p>Hi,</p>
> >
> > <p>I have a problem running elog command from php script. Basically in the php I call system("elog -h etc etc.. And from the php command line works but not in the browser apparently without errors (php apache
> logfile no problem), any suggestions?</p>
>
> Hey,
> this sounds more like a PHP issue.
> Which PHP version are you using?
> Which webserver?
> Which php function are you using: shell_exec() or exec()? Try looking at the return of exec()
> Is the elog file set to the correct file permissions to be executed by the webserver?
> Is the elog file in the PHP path or do you take care of defining the correct path?
>
>
> eddy |
resending information confirmation box after refresh interval, posted by Ken Ludington on Mon Nov 16 20:42:15 2015
|
After submitting a new post, if the page is left completely alone,, it will after a few minutes prompt that the page needs to resend information.
This is the same prompt you'd get if you attempt to refresh a page that had session variables passsed to it. Example is attached.
Is there something in my config that could cause this? This is a fresh install of the latest verison however my elogd.cfg file has been migrated throuh many installs over many versions, so it's very possible this is something following along.
thanks. |
Re: resending information confirmation box after refresh interval, posted by Stefan Ritt on Tue Nov 17 08:33:15 2015
|
Start with the demo example configuration, add one line after the other from your config, and figure out which is the offending statement in your config, then post a minimal configuration here which triggers the problem.
Ken Ludington wrote: |
After submitting a new post, if the page is left completely alone,, it will after a few minutes prompt that the page needs to resend information.
This is the same prompt you'd get if you attempt to refresh a page that had session variables passsed to it. Example is attached.
Is there something in my config that could cause this? This is a fresh install of the latest verison however my elogd.cfg file has been migrated throuh many installs over many versions, so it's very possible this is something following along.
thanks.
|
|
If a Required Attribute starts with a number – No CKEditor, posted by David Dunne on Fri Nov 27 06:53:54 2015
|
Hello,
Is the below an issue or am I doing something incorrectly?
Creating an attribute starting with a number and then including that attribute in the Required Attribute list prevents access to the CKEditior.
This appears to be the case at least with FreeBSD (10.2 Rel) using Elog V3.1.0 and Windows 7 with Elog V3.1.1-3f311c5.
The problem can be recreated using the Elog supplied sample config and adding the necessary attribute, sample config showing below.
While attribute 7SWM is part of the Required Attributes the CKEditor fails to appear, remove 7SWM from the Required Attributes list and the CKEditor returns.
[global]
port = 8080
[demo]
Theme = default
Comment = General Linux Tips & Tricks
Attributes = Author, Type, Category, Subject, 7SWM
Options Type = Routine, Software Installation, Problem Fixed, Configuration, Other
Options Category = General, Hardware, Software, Network, Other
Options 7SWM = Name-1, Name-2, Name-3
Extendable Options = Category
Required Attributes = Author, Type, 7SWM
Page Title = ELOG - $subject
Reverse sort = 1
Quick filter = Date, Type
Thank you,
David Dunne |
|