fmwebschool.com
Top Experts [learn more]Top 4-10
webko

9743 K
bandmandq

2458 K
Genx

1525 K
4. tcmeyers
5. kbata
6. Martie
7. Hammerton
8. rrenfrow
9. bneeman
10. plegler
Welcome, Guest. Please login or register.
December 19, 2014, 08:21:42 PM

Login with username, password and session length
Search:     Advanced search
FMWebschool releases more educational FMStudio webinars - check them out here:
http://www.fmwebschool.com/webinars.php
27830 Posts in 6157 Topics by 1525 Members
Latest Member: alkyred
* Home Help Search Calendar Login Register
+  fmwebschool.com
|-+  PHP Web Publishing Technologies
| |-+  FileMaker PHP, FX.php custom web publishing
| | |-+  Array not pulling From Filemaker to the Web
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Array not pulling From Filemaker to the Web  (Read 3107 times)
JeffreyCampos
Newbie
*
Offline Offline

Posts: 18


« on: March 14, 2011, 05:16:08 PM »

For three years, we've been running a Filemaker Server 8 implementation using FX.php on a G4 running OSX 10.3.9. Suddenly, all calls to the database from our website resulted in the following errors:

Warning: Cannot use a scalar value as an array in /Library/WebServer/Documents/www.scoutgraphics.com/Patches/PatchCenter/StockPatch_BSA.php on line 31

Warning: Invalid argument supplied for foreach() in /Library/WebServer/Documents/www.scoutgraphics.com/Patches/PatchCenter/StockPatch_BSA.php on line 31


We initially reinstalled the Web engine and reconfigured. No luck. We then reinstalled Filemaker Server 8 and reconfigured. No luck. I suppose the next step is to reinstall the web server (Huh??), but I'd rather not go this direction due to its complication.

What I'm hoping for is some direction on where to look for the problem.

On the other hand, we've been thinking of migrating the site to a hosting company. Any suggests on the reolsution of the hosting scenario  is well-appreciated.

Thanks in Advance.

Logged
webko
Global Moderator
Hero Member
*****
Offline Offline

Posts: 2120
Kudos: 9743



WWW
Applications:
« Reply #1 on: March 14, 2011, 06:12:17 PM »

Usually means that the variable name has been used somewhere further up the page as an integer or string, and so is not an array...

ie, declaring $value = 0 and then trying to use $value as an array from a resultset later on - as it's already been declared as an integer, this will cause the error you are seeing...
Logged

tim.webko_at_gmail.com
JeffreyCampos
Newbie
*
Offline Offline

Posts: 18


« Reply #2 on: March 14, 2011, 08:20:54 PM »

Thanks for the response.

In reality none of the page code has changed for months. All pages were pulling correctly until last Friday, when they started producing these errors. In fact, we get the same errors from every page on the website that is pulling from the databases. Moreover, We know that Filemaker Server 8 is operating properly inasmuch as we can access the databases via FileMaker Pro client. So it seems to us that the problem has to between the Web Publishing Engine and the Web server software (apache).


Where to look HuhHuhHuhHuh
Logged
bandmandq
Hero Member
*****
Offline Offline

Posts: 1045
Kudos: 2458



WWW
Applications:
« Reply #3 on: March 15, 2011, 09:31:49 AM »

Could your version of PHP have been updated?  (Not sure if that would cause this but something had to change if it was working fine before.)  For that matter ANY kind of update to the servers, were there any?
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!