Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Developers' Forum

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 29th March 2013, 15:51
MaddinXx MaddinXx is offline
Senior Member
 
Join Date: Jul 2011
Location: Switzerland
Posts: 197
Thanks: 25
Thanked 60 Times in 44 Posts
Default $data['new'] is of type app rather than array

Hi there

I'm currently highly investigating to get my Nginx reverse proxy plugin to work with 3.0.5.2 - but I'm just not able to get it to.

I've tried as much as possible, but newest error is:

Code:
PHP Fatal error:  Cannot use object of type app as array in /usr/local/ispconfig/server/plugins-available/nginx_reverse_proxy_plugin.inc.php on line 92
which is here: https://github.com/Rackster/ispconfi...in.inc.php#L92

therefor, the $data variable isn't an array but of type app object (holding the whole config etc.)

Is this a bug, new behavior or my fault?

Thanks!
__________________
Rackster Internet Services's presences:
Official | Open Source | Github | Facebook | Twitter
Reply With Quote
Sponsored Links
  #2  
Old 2nd April 2013, 10:01
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,503
Thanks: 813
Thanked 5,265 Times in 4,129 Posts
Default

This is neither a bug nor a new bahaviour as it works with all other plugins like before. So there must be a issue in the code of that plugin
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
MaddinXx (2nd April 2013)
  #3  
Old 2nd April 2013, 12:49
MaddinXx MaddinXx is offline
Senior Member
 
Join Date: Jul 2011
Location: Switzerland
Posts: 197
Thanks: 25
Thanked 60 Times in 44 Posts
Default

Hi till

That's what I thought
You have an idea what could be wrong?

I mean basically line 74-92 is nothing special, nothing is done with $data nor with $app.

On the other hand, could it be that it's not a fault of the plugin itself but that my ISPConfig install is kind of messed up?

Thx
__________________
Rackster Internet Services's presences:
Official | Open Source | Github | Facebook | Twitter
Reply With Quote
  #4  
Old 2nd April 2013, 13:09
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,503
Thanks: 813
Thanked 5,265 Times in 4,129 Posts
Default

My guess is that the sql query does not return a result which results in this error. You should try to echo the sql query so that you see the exact query string and also output $tmp with e.g. print_r($tmp);
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
MaddinXx (2nd April 2013)
  #5  
Old 2nd April 2013, 17:31
MaddinXx MaddinXx is offline
Senior Member
 
Join Date: Jul 2011
Location: Switzerland
Posts: 197
Thanks: 25
Thanked 60 Times in 44 Posts
 
Default

Thank you till, I was able to fix it. There was a problem with the helper methods (vhost_, cert_) that caused the problem

It was new in 3.0.5.2 since I moved separate helper files within the main plugin
__________________
Rackster Internet Services's presences:
Official | Open Source | Github | Facebook | Twitter
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Xen for Centos 6.3 HowTo needs updating. Peter Williams HOWTO-Related Questions 24 28th January 2013 03:31
CP210x USB to UART Bridge Linux VCP Drivers(SILICON Labs) perfectpol7 Kernel Questions 13 9th November 2010 07:30
CPU load locks up box. Apache or MYSQL related. crypted General 61 29th October 2010 22:16
Fedora 13 BIND Server wont start. ev0css Installation/Configuration 1 23rd June 2010 22:16
log files, rotation and emailing them hairydog2 General 65 11th October 2006 13:18


All times are GMT +2. The time now is 21:01.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.