Jump to content

Registration Page Malfunctioning


bwilber

Recommended Posts

  • Administrators
  1. Are there any errors listed in the error_log file?
  2. Any errors shown in the console in Chrome?
  3. Any chance your site relies on ionCube or ionCube loader?
  4. What version of MySQL or MariaDB are you using?

 

 

Link to comment
Share on other sites

1. 2020/05/16 14:23:19 [error] 22463#0: *12404 FastCGI sent in stderr: "PHP Notice:  Use of undefined constant SITE_NAME - assumed 'SITE_NAME' in /home/fly-twva/public_html/core/lang/en.lang.php on line 31" while reading response header from upstream, client: 76.29.190.90, server: fly-twva.com, request: "POST /index.php/registration HTTP/1.1", upstream: "fastcgi://unix:/var/php-nginx/130827955019593.sock/socket:", host: "fly-twva.com", referrer: "https://fly-twva.com/index.php/registration"
2020/05/16 14:23:22 [error] 22459#0: *12372 FastCGI sent in stderr: "PHP Notice:  Constant SITE_ROOT already defined in /home/fly-twva/public_html/core/codon.config.php on line 46
PHP Notice:  Use of undefined constant SITE_NAME - assumed 'SITE_NAME' in /home/fly-twva/public_html/core/lang/en.lang.php on line 31" while reading response header from upstream, client: 173.216.53.4, server: fly-twva.com, request: "GET //action.php/acars/data?_=1589667655773 HTTP/1.1", upstream: "fastcgi://unix:/var/php-nginx/130827955019593.sock/socket:", host: "fly-twva.com", referrer: "https://fly-twva.com/index.php/acars"
2020/05/16 14:23:27 [error] 22458#0: *12408 FastCGI sent in stderr: "PHP Notice:  Use of undefined constant SITE_NAME - assumed 'SITE_NAME' in /home/fly-twva/public_html/core/lang/en.lang.php on line 31" while reading response header from upstream, client: 46.229.168.132, server: fly-twva.com, request: "GET /index.php/pireps/view/15922 HTTP/1.1", upstream: "fastcgi://unix:/var/php-nginx/130827955019593.sock/socket:", host: "fly-twva.com"

2. Warnings, but no errors.

3. No

4. MySQL version 5.5.60

Not sure how much of the errors log you need, but I tried to take what looked like it wasn't repeated.

 

Link to comment
Share on other sites

  • Administrators
2 hours ago, bwilber said:

1.

2020/05/16 14:23:19 [error] 22463#0: *12404 FastCGI sent in stderr: "PHP Notice:  Use of undefined constant SITE_NAME - assumed 'SITE_NAME' in /home/fly-twva/public_html/core/lang/en.lang.php on line 31" while reading response header from upstream, client: 76.29.190.90, server: fly-twva.com, request: "POST /index.php/registration HTTP/1.1", upstream: "fastcgi://unix:/var/php-nginx/130827955019593.sock/socket:", host: "fly-twva.com", referrer: "https://fly-twva.com/index.php/registration"

 

2020/05/16 14:23:22 [error] 22459#0: *12372 FastCGI sent in stderr: "PHP Notice:  Constant SITE_ROOT already defined in /home/fly-twva/public_html/core/codon.config.php on line 46
PHP Notice:  Use of undefined constant SITE_NAME - assumed 'SITE_NAME' in /home/fly-twva/public_html/core/lang/en.lang.php on line 31" while reading response header from upstream, client: 173.216.53.4, server: fly-twva.com, request: "GET //action.php/acars/data?_=1589667655773 HTTP/1.1", upstream: "fastcgi://unix:/var/php-nginx/130827955019593.sock/socket:", host: "fly-twva.com", referrer: "https://fly-twva.com/index.php/acars"

 

2020/05/16 14:23:27 [error] 22458#0: *12408 FastCGI sent in stderr: "PHP Notice:  Use of undefined constant SITE_NAME - assumed 'SITE_NAME' in /home/fly-twva/public_html/core/lang/en.lang.php on line 31" while reading response header from upstream, client: 46.229.168.132, server: fly-twva.com, request: "GET /index.php/pireps/view/15922 HTTP/1.1", upstream: "fastcgi://unix:/var/php-nginx/130827955019593.sock/socket:", host: "fly-twva.com"

 

2. Warnings, but no errors.

 

3. No

 

4. MySQL version 5.5.60

Not sure how much of the errors log you need, but I tried to take what looked like it wasn't repeated.

 

 

1 - I separated out the error_log entries you provided.

 

2 - What warning are you seeing?

 

For the PHP version - did you change the entire hosting plan to 5.4.45 or just the directory/sub-domain that your phpVMS is in?

 

As a test.....

in .../core/lang/en.lang.php on line 31

change

'email.pilot.retired.subject'		=> SITE_NAME.': You\'ve been marked as retired',

to

'email.pilot.retired.subject'		=> 'SITE_NAME'.': You\'ve been marked as retired',

basically adding a ' on either side of SITE_NAME - save the file and retest. If it works - GREAT -- if not, revert back to the original SITE_NAME without the ' on either side.

 

Let us know what happens.

Link to comment
Share on other sites

I changed the entire domain to 5.4.45.

After add the ' on either side of SITE_NAME, it still reverts back, but the error is gone. However, now I get different errors:
 

2020/05/16 17:16:14 [error] 22464#0: *16996 FastCGI sent in stderr: "PHP Warning:  Creating default object from empty value in /home/fly-twva/public_html/core/common/PIREPData.class.php on line 337" while reading response header from upstream, client: 46.229.168.149, server: fly-twva.com, request: "GET /index.php/pireps/view/8937 HTTP/1.1", upstream: "fastcgi://unix:/var/php-nginx/130827955019593.sock/socket:", host: "fly-twva.com"
2020/05/16 17:16:59 [error] 22459#0: *17010 FastCGI sent in stderr: "PHP Warning:  Creating default object from empty value in /home/fly-twva/public_html/core/common/PIREPData.class.php on line 337" while reading response header from upstream, client: 46.229.168.151, server: fly-twva.com, request: "GET /index.php/pireps/view/11803 HTTP/1.1", upstream: "fastcgi://unix:/var/php-nginx/130827955019593.sock/socket:", host: "fly-twva.com"
2020/05/16 17:27:51 [error] 22458#0: *17269 FastCGI sent in stderr: "PHP Warning:  Creating default object from empty value in /home/fly-twva/public_html/core/common/PIREPData.class.php on line 337" while reading response header from upstream, client: 46.229.168.163, server: fly-twva.com, request: "GET /index.php/pireps/view/10683 HTTP/1.1", upstream: "fastcgi://unix:/var/php-nginx/130827955019593.sock/socket:", host: "fly-twva.com"

Link to comment
Share on other sites

  • Administrators

I wonder if your issue has anything to do with "fastcgi"? I am not well versed enough to know.

 

The last errors mention "fastcgi" and creating a default object in the PIREPData.class file on line 337

 

As for the IP addresses mentioned - 46.229.168.163 - 46.229.168.151 - 46.229.168.149 - have a look here: 

https://whatismyipaddress.com/ip/46.229.168.163

https://whatismyipaddress.com/ip/46.229.168.151

https://whatismyipaddress.com/ip/46.229.168.149

and here

https://www.abuseipdb.com/check/46.229.168.163

https://www.abuseipdb.com/check/46.229.168.151

https://www.abuseipdb.com/check/46.229.168.149

 

Not sure what all that is about, but you may want to consider blocking those IP addresses or possibly the entire range - 46.229.168.0 thru 46.229.168.255.

And I didn't check the IP addresses in your first post about the error messages.

Link to comment
Share on other sites

Thanks for all your help. You have gone above and beyond. I appreciate it. I think you are right about FCGI being the culprit. I had to put a directive into the NGINX config for the domain just to get the website to show anything other than the home page. I had to take it out to make the change to 5.4, and then put it back in so the site worked at all. Without that directive, when you clicked to go to another page, it would show a 502 Bad Gateway. I never gave it a thought until you said it, that that might be the problem.

 

As for the IP's, they'll be taken care of indeed.

 

Thanks again.

Link to comment
Share on other sites

  • Administrators

Glad to help - wish we could have found the culprit. Maybe someone else will see this thread and be able to assist further.

 

Maybe time to start thinking of an upgrade to phpVMS 7 when released. Now may be a good time to start testing it out.

Link to comment
Share on other sites

Been thinking about it, but life has kept me from jumping in and doing it. I know we should have more time with the stay at home order, but in Georgia, we have still had the freedom to go camping in state parks, so being retired, we have stayed gone most of the time. Too peoply close to home.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...