PHP wizard #80

Closed
skinkie opened this Issue Mar 23, 2013 · 17 comments

Comments

Projects
None yet
3 participants
Member

skinkie commented Mar 23, 2013

Throws me: "global name 'SystemInfo' is not defined"

Member

Borkason commented Mar 28, 2013

It works for me with d436b2f on Debian 6.0.7

Member

Borkason commented Mar 28, 2013

Can you provide a traceback?

@ghost ghost assigned Borkason Mar 28, 2013

@Borkason Borkason closed this Apr 16, 2013

smokku commented Jul 17, 2013

I just got it on Fedora 19 with Cherokee Web Server 1.2.103 (May 17 2013)
I would gladly provide traceback, once you point me to instructions how to obtain it.

@Borkason Borkason reopened this Jul 17, 2013

Member

Borkason commented Jul 17, 2013

Usually it's a whole bunch of stuff that comes with the error message, not sure though. Else, try running cherokee in the shell (not as a daemon) and it will print a traceback right in the shell, when you hit that error again.

Member

skinkie commented Jul 17, 2013

cherokee-admin -x for output on the console of traces.

Member

Borkason commented Jul 24, 2013

@smokku Any news on this?

smokku commented Jul 24, 2013

I was setting up some more vHosts with PHP and the problem didn't occur.
Perhaps it is reproducible with clean configuration, when PHP FastCGI handler is not yet created.
Unfortunately the mentioned server went live, so I cannot wipe its configuration to verify the hypothesis.

Member

Borkason commented Jul 24, 2013

Thanks for the feedback. Your thought seems logic. Let's see if I can try that out some time!

@ghost ghost assigned Borkason Jul 24, 2013

Member

skinkie commented Jul 24, 2013

Let me know if you can reproduce it @Borkason

Member

Borkason commented Jul 25, 2013

@smokku @skinkie What PHP5 package did you use? php5-gci, php5-fpm, …?

Member

skinkie commented Jul 25, 2013

php5-fpm is advised

Member

Borkason commented Jul 25, 2013

Reproduce as following:

  1. Install php5-fpm (php5-cgi seems okay)
  2. Use a fresh configuration file
  3. Run cherokee-admin
  4. Add a new virtual server
  5. Choose Languages > PHP
  6. Go through the wizard and press Create
  7. See error message box global name 'SystemInfo' is not defined
  8. Cancel the wizard

There is another interesting issue. Because there was an error and we canceled the wizard, no virtual server had been created.

  1. Rerun the wizard
  2. Click Create
  3. An error message box appears with no content.
  4. There is a line under New Host Name: Virtual Server nick name is already being used.
  5. Cancel wizard and see a new virtual server despite the fact that we canceled the wizard!
Member

Borkason commented Jul 25, 2013

I fix this! But right now I need to do some other things. I should have this fixed by the weekend 😺

smokku commented Jul 25, 2013

I used php-fpm

@Borkason Borkason closed this in 48dd429 Aug 3, 2013

Borkason added a commit that referenced this issue Aug 3, 2013

Member

Borkason commented Aug 3, 2013

And that line took me hours? 😫

At least now I know how to remote debug a python application that has been started outside of my IDE. Worth it.

Member

skinkie commented Aug 3, 2013

Care to share?

Member

Borkason commented Aug 6, 2013

I used Pycharm and followed the instructions of the manual:
http://www.jetbrains.com/pycharm/webhelp/remote-debugging-2.html

And I just found a blog entry about that.
http://blog.jetbrains.com/pycharm/2010/12/python-remote-debug-with-pycharm/

Basically, your IDE runs a type of server and you include a line into the python script so it connects to your IDE. Then you will have full control over the python app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment