New Module Error Saving

Hi,

I was thinking of adding a new UI module to handle my hostapd config file, instead of having to do it by hand. I followed the tutorial and I was able to get all the UI elements I wanted, but whenever I try to save the settings I get the following error;

Task completed with errors

I then tried using just the example code provide in the repo, but it always comes up with the same error. Any one know what I need to do for data to be saved?

Cheers

you need to dig in the logs and to post here the error messageā€¦
what youā€™re posting here (coming from WEB GUI) is just ā€œit doesnā€™t workā€, pretty useless :wink:

Yeah, I didnā€™t know if it was a common issue.
Which log is recommended, there doesnā€™t appear to be anything shown the messages log? Is there a way of enabling PHP debug logs? Iā€™m not very familiar with PHP, I normally work in C++.

take a look ad /var/log/http/*

to enable php debug logs I think you need a custom fragment, just give me 3 minutes

Just located this in the error logs.

Oct 17 14:58:11 neth httpd-admin: [ERROR] Nethgui\System\NethPlatform: process on queue post-process exited with code 2: /usr/libexec/nethserver/ptrack -j -s ā€˜/var/run/ptrack/ff41fd2e33a9a2622ba76ed83b617465.sockā€™ -d ā€˜/var/spool/ptrack/0d24dfe47ba682f4.dumpā€™ ā€“ /usr/bin/sudo -n /sbin/e-smith/signal-event ā€˜nethserver-myserver-saveā€™

1 Like

Is that event defined?

Apologies, I donā€™t think Iā€™ve defined it. I followed the example provided in the wiki. Where do I define the event?

Create an empty dir under

/etc/e-smith/events
1 Like

Thank You!
Hopefully, Iā€™ll be able to progress a little now :slight_smile:

1 Like

I am interested in how this is going.
Please, share with us your achivements