Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

FMSA 12 and PHP: 'hostspec' defined = failed CWP?

Featured Replies

We have a (fortunately) backup server we are trying to bring up and we testing our PHP/CWP solutions on it as the last step.  Up to this point, everything seemed to be working fine:  all the canned server tests (well, IWP and CWP) had worked OK; a couple of add-ons appeared to be working fine; client access was good; custom IWP solutions were good.

 

Then we ran into a problem with the CWP solutions that we have.  We have a login system where you start at an Index page, it reroutes you Login if you aren't logged in.  The initial redirection and showing of the login page works OK.  But when you log in, it apparently fails to authenticate you and just returns error:  "XML error: Not well-formed (invalid token) at line 1" (or something like that).

 

The failed login attempt doesn't show up in the FMS logs, either.  So it is almost as if it isn't even contacting the server. 

 

These CWP pages are working fine under the live server (thankfully), which is configured very similarly:

Windows 2008 R2

FMSA 12.05

SSL

two plugins that run as tomcat processes

IIS 7.5  (using URL re-write for HTTPS redirection)

 

We have even had them running on an OSX based server without problems. 

 

I think that I discovered the apparent cause of the CWP problems, at least, but I would like to know WHY, and how to fix it if someone knows:

 

I had to remove the 'hostspec' definition from the dbaccess.php file we use. 

remove the 'hostspec' definition from "dbaccess.php" = works
define 'hostspec' in "dbaccess.php" = fails
remove the 'hostspec' definition from "dbaccess.php" = works

 

I found this because the canned FMS CWP test does not use a 'hostspec' definition.

 

I suspect that it may have something to do with the php.ini or various other FMS configuration files around there.  You see, we didn't have SSL installed at first, but installed it after FMS was setup.  So during the installation of SSL, I have previously discovered that there are a few files you have to manually adjust (I posted about them here), even if you do a redeployment.  But, it could also be because of some IIS redirection issue, it seems.

 

Any ideas?

 

Thanks,

Justin

  • 2 months later...
  • Author

One factor in this that I discovered later:  if you leave 'hostspec' empty it will default to 127.0.0.1.

 

So that appears to be the condition for a successful run.  But still not sure why it was failing when defined to be the actualy machine's IP address.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.