Page 1 of 1

[FIXED]ERROR: Undefined variable: output

Posted: 17 Aug 2014, 09:54
by hackie
Hi

I'm currently renting a server at http://nc1.eu/index.php?route=common/home

The owner installed eXpansion for me but somehow some things do not work right.

When I want to check for update I get a responce from eXpansion : already a request for update or check underway.
But I never get an answer for new update available or what so ever, so it keeps checking or can not connect.


At my host I have a control panel to configure the server and stuff , I think he made it himself.
In that control panel I have a live log for server ( log keeps refreshing everey time ) and it shows :

ERROR: Undefined variable: output

Live log should show the last 10 lines from log , but it only shows that error.


I asked my host about it and he said :

eXpansion is still under development and I had to ask You guys about it.
He could not find anything.

I only have acces to the server controller.

Could You help out ?

For info about host system I have to ask the host himself.

Re: ERROR: Undefined variable: output

Posted: 17 Aug 2014, 15:33
by reaby
hackie wrote: ERROR: Undefined variable: output
Live log should show the last 10 lines from log , but it only shows that error.
Looks like not to be my problem.
hackie wrote: I asked my host about it and he said:
eXpansion is still under development and I had to ask You guys about it.
He could not find anything.
"He didn't find anything..." as i thought so, it's really not problem with the plugins. this is not my consern.
hackie wrote: I only have acces to the server controller.
Could You help out ?
Since you have access for the server controller only, and you are paying for the server hosting service. It's really not anymore your job to update the controller. Best would be to disable the updates and update checking, let the sysadmin to do his job.

--
edit:
after thinking some more, the automatic updating and restarting of eXpansion needs to use php system calls, which might have been disabled by your sysadmin.

Re: ERROR: Undefined variable: output

Posted: 17 Aug 2014, 15:49
by hackie
Thanks for responce.

Re: ERROR: Undefined variable: output

Posted: 17 Aug 2014, 17:26
by sotn0r
Hi,

just for clarification:

the php exec that eXpansion is using for updates function is indeed disabled on the server controller process, so i guess eXpansion's git updater will not work (as far as i can read from a quick look over the source).


Concerning the "ERROR" messages, i'm not sure what is causing this, but the runtime.log shows the following lines:

Code: Select all

[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\Widgets_Times\Widgets_Times" 0.9.7...
[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\Widgets_ResSkip\Widgets_ResSkip" 0.9.7...

[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\Widgets_ServerInfo\Widgets_ServerInfo" 0.9.7...
[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\Widgets_LocalRecords\Widgets_LocalRecords" 0.9.7...
[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\Widgets_LiveRankings\Widgets_LiveRankings" 0.9.7...
[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\Dedimania\Dedimania" 0.9.7...
[PluginHandler] Loading plugin "\ManiaLivePlugins\eXpansion\Widgets_DedimaniaRecords\Widgets_DedimaniaRecords" 0.9.7...
[LocalRecods]Fetching Server Ranks from Database !
registered Dedimania event!!
[PluginHandler] All registered plugins have been loaded
[eXpansion][Adm/AdminPanel][DediMania/Connection][Dedimania] Authentication success to dedimania server!
[eXpansion:AutoUpdate]Starting checking for update to Dedicated server Api !!

ERROR: Undefined variable: results
ERROR: Undefined variable: results
ERROR: Undefined variable: results
ERROR: Undefined variable: results
ERROR: Undefined variable: results
ERROR: Undefined variable: results
ERROR: Undefined variable: results
ERROR: Undefined variable: results
ERROR: Undefined variable: results
ERROR: Undefined variable: results
ERROR: Undefined variable: results
ERROR: Undefined variable: results
ERROR: Undefined variable: results
ERROR: Undefined variable: results
ERROR: Undefined variable: results


FOUND\n

and then over and over,

Code: Select all

ERROR: Undefined variable: output
ERROR: Undefined variable: output
ERROR: Undefined variable: output
ERROR: Undefined variable: output
ERROR: Undefined variable: output
ERROR: Undefined variable: output
ERROR: Undefined variable: output
ERROR: Undefined variable: output
ERROR: Undefined variable: output
ERROR: Undefined variable: output
ERROR: Undefined variable: output
ERROR: Undefined variable: output
ERROR: Undefined variable: output
ERROR: Undefined variable: output

which i assume, is caused here:

https://github.com/eXpansionPluginPack/ ... n.php#L161

I'll submitted a pull request which should remove the recurring error messages.


@reaby: Thx for your input!


greetz

Re: ERROR: Undefined variable: output

Posted: 17 Aug 2014, 17:52
by oliverde8
Ooo, i understand the errors are caused by auto update. Waiting the next update you should disable the auto update and it should work fine.