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.
May 23, 2013, 04:00:11 AM

Login with username, password and session length
Search:     Advanced search
Welcome to the FileMaker Web Masters Exchange.  If you have any questions about how to use this forum, please watch the getting started movie at:
http://www.fmwebschool.com/movies/forum1/forum1.html
27462 Posts in 6065 Topics by 1523 Members
Latest Member: donok
* Home Help Search Calendar Login Register
+  fmwebschool.com
|-+  FMStudio
| |-+  FMStudio Pro
| | |-+  FM 12 Upgrade Problem
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: FM 12 Upgrade Problem  (Read 1037 times)
gwbamber
Newbie
*
Offline Offline

Posts: 14


« on: May 30, 2012, 12:18:46 PM »

So I just recently upgraded to FM Pro 12 Advanced and FM Server 12 and all has gone well so far. I updated the API files and everything was working perfectly, until today when I noticed the following:

I have a table-based login setup for clients. When a client logs in to their profile, they see their info that they've entered into the Customers layout. They have the option to create a new "claim" which creates a new file in the Cases layout. This process works fine for clients that were in the system when we were running FM Pro 11 Adv, but anyone added since the upgrade gets the error "401 No records match the request" even though there is very clearly a record there to match the request in the database.

Has anyone else run into this problem? And does anyone know why this might be happening? How should I fix it? I'm happy to paste some code here, but since it's something that works for some clients and not others, I'm not sure which code snippets to put up.
Logged
webko
Global Moderator
Hero Member
*****
Offline Offline

Posts: 2050
Kudos: 9743



WWW
Applications:
« Reply #1 on: May 30, 2012, 04:18:41 PM »

How about posting the code that creates this error/ I suspect that is the new claim creation code... I can then tell you what needs to beset for it to work, and you can check if the new records have that information...
Logged

tim.webko_at_gmail.com
ozydiver
Jr. Member
**
Offline Offline

Posts: 27
Kudos: 50



Applications:
« Reply #2 on: May 30, 2012, 06:01:36 PM »

HI
have moved my question to here as I think it is more appropriate.

I have upgraded to FMS12 and all things work fine via the php test page. I can see the test data etc on a webpage BUT I cannot see or interact via the web with any of my own databases. I added the newest php folder and the filemaker folder within the server folder to the top level  that holds all the webpages and even added them within one of the sites as a test. I still get nothing. I can access the databases via filemaker direct.
I have the server set up on the c drive and the databases on e drive, just as I did with server 10. what I do notice is that the php test page is access a database on the c drive not actually on the e drive. I have set the e drive correctly and am not sure why this is not working. can anybody see what I may have done wrong?
Glenda


* php.jpg (145.75 KB, 1024x768 - viewed 82 times.)

* database.jpg (174.05 KB, 1024x768 - viewed 64 times.)
Logged
gwbamber
Newbie
*
Offline Offline

Posts: 14


« Reply #3 on: May 31, 2012, 08:42:51 AM »

The problem is, I don't know that it's the code that's the problem. It's still working fine for any of the client files that were in existence before the upgrade to FM 12. The error is only coming up with any of the clients that have been added since the upgrade. Basically, it's telling me that new client files don't exist in the database, which they do, but it's finding the old client files perfectly and behaving just as it should for those. But here's the code for the applicable pages...


New Case Page:

Code:
<?php require_once('Connections/Warranty_table.php'); ?>
<?php

$found_records_find 
$Warranty_table->newFindCommand('Cases_Detail');
$found_records_findCriterions = array('_kf_CustomerID'=>$_REQUEST['__kp_CustomerID'],);
foreach(
$found_records_findCriterions as $key=>$value) {
    
$found_records_find->AddFindCriterion($key,$value);
}

fmsSetPage($found_records_find,'found_records',10); 

$found_records_result $found_records_find->execute(); 

if(
FileMaker::isError($found_records_result)) fmsTrapError($found_records_result,"error.php"); 

fmsSetLastPage($found_records_result,'found_records',10); 

$found_records_row current($found_records_result->getRecords());

$found_records__CUSTOMERS_portal fmsRelatedRecord($found_records_row'CUSTOMERS');
$found_records__ITEMCODES_portal fmsRelatedRecord($found_records_row'ITEMCODES');
$found_records__casesCASESsameCustomer_portal fmsRelatedRecord($found_records_row'cases_CASES_sameCustomer');
$found_records__NOTEScreatenew_portal fmsRelatedRecord($found_records_row'NOTES_createnew');
$found_records__NOTES_portal fmsRelatedRecord($found_records_row'NOTES');
$found_records__WORKORDER_portal fmsRelatedRecord($found_records_row'WORKORDER');
 

<form action="new_case_response.php" method="post" name="new_case" id="new_case">
  <table>
      <
tr>
      <td colspan="2" align="right"><h3><strong>Customer ID:</strong> <?php echo $found_records_row->getField('_kf_CustomerID',0); ?>
</h3></td>
        </tr>
            <tr>
  <td width="100px"><strong>Invoice Number:</strong></td>
          <td><input type="text" name="Invoice_Number" value="" /></td>
        </tr>
          <td><strong>Purchaser Name:</strong></td>
          <td><input name="Purchaser_Name" type="text" value="" size="40" /></td>
<tr>
          <td><strong>Date Of Purchase:</strong></td>
          <td><input type="text" name="Date_Of_Purchase" value="" /><br />(mm/dd/yyyy)</td>
        </tr>
    <tr>
      <td><strong>Furniture Type:</strong></td>
          <td><select name="Furniture_Type2" id="Furniture_Type">
            <?php
foreach(fmsValueListItems2($Warranty_table,'Cases_Detail','Furniture Type',"",null,"") as $list_item) {
  if(
html_entity_decode($list_item[0]) == "") {
    echo 
"<option value=\"{$list_item[0]}\" selected=\"selected\">{$list_item[1]}</option>\n";
  } else {
    echo 
"<option value=\"{$list_item[0]}\">{$list_item[1]}</option>\n";
  }
}
fmsValueListCustomChoice(null);
?>

      </select></td>
        </tr>
    <tr>
      <td><strong>Warranty Protection Code:</strong></td>
      <td><input type="text" name="Warranty_Item_Code" value="" /></td>
        </tr>
        <tr>
          <td colspan="2">Examples: CA-GWEND or WC-GWCP01</td>
        </tr>
        <tr>
          <td colspan="2">&nbsp;</td>
        </tr>
    <tr>
      <td colspan="2"><strong>Problem &amp; Cause:</strong><br />
          Please be specific in describing the problem(s). List <strong>EACH</strong> item that has a problem by name or item code. Describe <strong>WHAT</strong> the problem is, <strong>WHERE</strong> it is located as if you are standing and facing the front of the item, <strong>HOW</strong> the problem was caused, and any other relevant information such as size or what cleaning products you have already used. </td>
</tr>
        <tr>
      <td colspan="2"><textarea name="Problem" cols="135" rows="7"></textarea></td>
        </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
        </tr>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td><input type="submit" name="new_case_submit" value="Next" />
          <input name="__kp_CustomerID" type="hidden" value="<?php echo $found_records_row->getField('_kf_CustomerID'); ?>" id="_kf_CustomerID"></td>
        </tr>
      </table>
  </form>
<p>&nbsp;</p>
</div>
<!-- End Page Body -->
</body>
</html>

PHP for the New Case Handling Page:
Code:
<?php require_once('Connections/Warranty_table.php'); ?>
<?php $new_case_add $Warranty_table->newAddCommand('Cases_Detail');
$new_case_fields = array('Invoice Number'=>$_REQUEST['Invoice_Number'],'Date Of Purchase'=>$_REQUEST['Date_Of_Purchase'],'Furniture Type'=>@($_REQUEST['Furniture_Type2']),'Warranty Item Code'=>$_REQUEST['Warranty_Item_Code'],'Problem'=>$_REQUEST['Problem'],'_kf_CustomerID'=>$_REQUEST['__kp_CustomerID'],'Purchaser_Name'=>$_REQUEST['Purchaser_Name'],'Status'=>'Online',);
foreach(
$new_case_fields as $key=>$value) {
    
$new_case_add->setField($key,$value);
}

$new_case_result $new_case_add->execute(); 

if(
FileMaker::isError($new_case_result)) fmsTrapError($new_case_result,"error.php"); 

$new_case_row current($new_case_result->getRecords()); 

Client Profile Page:
Code:
<?php require_once('Connections/Warranty_table.php'); ?>
<?php
$customer_find 
$Warranty_table->newFindCommand('Customers_Detail');
$customer_findCriterions = array('Email'=>'=='.fmsEscape($_SESSION["Warranty_table_tableLogin"]["user"]),'Password'=>'=='.fmsEscape($_SESSION["Warranty_table_tableLogin"]["pass"]),);
foreach(
$customer_findCriterions as $key=>$value) {
    
$customer_find->AddFindCriterion($key,$value);
}

fmsSetPage($customer_find,'customer',10); 

$customer_result $customer_find->execute(); 

if(
FileMaker::isError($customer_result)) fmsTrapError($customer_result,"error.php"); 

fmsSetLastPage($customer_result,'customer',10); 

$customer_row current($customer_result->getRecords());

$customer__WORKORDER_portal fmsRelatedRecord($customer_row'WORKORDER');
$customer__CASES_portal fmsRelatedRecord($customer_row'CASES');
 <
h2><?php echo $customer_row->getField('CustomerName'); ?>

  </h2>
  <p>Welcome to your Customer Profile Page! Below you will see all of your personal information that you have entered. If there are any mistakes or if you need to update your information, you can click on Edit Profile. <br /><br />
    <a href="new_case.php?__kp_CustomerID=<?php echo $customer_row->getField('__kp_CustomerID'); ?>"><input type="submit" name="new_case" id="new_case" value="Create New Case"></a>
    <br />
  </p>
</div>
<table align="center" name="results_table" style="background-color: #000000; width: 600px;" cellspacing="1">
  <tr>
    <th bgcolor="#EEEEEE" width="135" align="left">Customer ID</th>
    <td bgcolor="#FFFFFF" colspan="5"><?php echo $customer_row->getField('__kp_CustomerID'); ?></td>
  </tr>
  <tr>
    <th bgcolor="#EEEEEE" align="left">Customer Name</th>
    <td bgcolor="#FFFFFF" colspan="5"><?php echo $customer_row->getField('CustomerName'); ?></td>
  </tr>
  <tr>
    <th bgcolor="#EEEEEE" align="left">Alternate Contact</th>
    <td bgcolor="#FFFFFF" colspan="5"><?php echo $customer_row->getField('AlternateContact'); ?></td>
  </tr>
  <tr>
    <th bgcolor="#EEEEEE" align="left">Phone Number</th>
    <td bgcolor="#FFFFFF" colspan="5"><?php echo $customer_row->getField('CustPhone'); ?></td>
  </tr>
  <tr>
    <th bgcolor="#EEEEEE" align="left">Alt. Phone Number</th>
    <td bgcolor="#FFFFFF" colspan="5"><?php echo $customer_row->getField('Alternate_Phone'); ?></td>
  </tr>
  <tr>
    <th bgcolor="#EEEEEE" align="left">Email</th>
    <td bgcolor="#FFFFFF" colspan="5"><?php echo $customer_row->getField('Email'); ?></td>
  </tr>
  <tr>
    <th bgcolor="#EEEEEE" align="left">Address</th>
    <td bgcolor="#FFFFFF" colspan="5"><?php echo $customer_row->getField('Address'); ?></td>
  </tr>
  <tr>
    <th bgcolor="#EEEEEE" align="left">City</th>
    <td bgcolor="#FFFFFF" width="225"><?php echo $customer_row->getField('City'); ?></td>
    <th bgcolor="#EEEEEE" align="left">State</th>
    <td bgcolor="#FFFFFF" width="35"><?php echo $customer_row->getField('State'); ?></td>
    <th bgcolor="#EEEEEE" align="left">Zip Code</th>
    <td bgcolor="#FFFFFF" width="75"><?php echo $customer_row->getField('Zip Code'); ?></td>
  </tr>
  <tr>
    <th bgcolor="#EEEEEE" align="left">Password</th>
    <td bgcolor="FFFFFF"><?php echo $customer_row->getField('Password'); ?></td>
    <td cellpadding="2px" colspan="4" align="center" bgcolor="#FFFFFF"><a href="edit_profile.php?__kp_CustomerID=<?php echo $customer_row->getField('__kp_CustomerID'); ?>"> Edit Profile Info</a></td>
  </tr>
</table>
Logged
gwbamber
Newbie
*
Offline Offline

Posts: 14


« Reply #4 on: May 31, 2012, 09:01:43 AM »

To be clear, all of the profile pages show up fine, newly created and old ones alike. It's only when I click the "create new case" button on the profile page that I have problems with the new profiles. That's when I get the error telling me that no records match my request if I click it from within a client added post upgrade. That same button works fine with any pre-upgrade clients.
Logged
gwbamber
Newbie
*
Offline Offline

Posts: 14


« Reply #5 on: June 10, 2012, 09:47:28 PM »

It's been a while since my last reply to this thread and no response. Has anyone else run into this problem at all? Any ideas on how to fix it?
Logged
applelakshan
Jr. Member
**
Offline Offline

Posts: 88



Applications:
« Reply #6 on: June 11, 2012, 07:04:44 AM »

Hello, I think you need to copy the new fmphp files .


FIRST PLEASE MAKE A COPY OF YOUR ORIGINAL PHP FILE

Then
explore the filemaker server files and you will find the copy of FM PHP api for version 12, then

move the copy of "FMPHP API " folder in to your web root folder,

hth

Logged
gwbamber
Newbie
*
Offline Offline

Posts: 14


« Reply #7 on: August 20, 2012, 10:38:20 AM »

It's been a long while since I've been able to check on this thread as I've been on an extended leave, but am now back. I've tried moving the new API into the root folder and still the same problem. Has anyone else come across this problem? I'm not finding any other threads with this problem on this forum or any other.
Logged
necrodragon78
Newbie
*
Offline Offline

Posts: 16




Applications:
« Reply #8 on: August 20, 2012, 11:02:07 AM »

I had the same problem and have half fixed it. I still cannot get Dreamweaver to make a database connection allowing me to edit my sites or create new ones, but I did get my old sites working. I moved the Filemaker API for PHP into my root folder and this alone did not work. Next I copied the FMStudio Pro files and pasted them into my root folder so they were in the FMStudio folder and the site root, this made it work correctly. Also, make sure you convert each of your sites files to FMStudio Pro format through Dreamweaver.
Logged
gwbamber
Newbie
*
Offline Offline

Posts: 14


« Reply #9 on: August 20, 2012, 12:34:59 PM »

I have now tried putting the new API files and the FMStudio Pro files into every folder I think might be applicable to the problem, and still no chance. I really don't understand, since the old profiles work just fine. It's only the new ones. I'm about to bash my head through the computer! Gah! Any other suggestions would be more than welcome.
Logged
webko
Global Moderator
Hero Member
*****
Offline Offline

Posts: 2050
Kudos: 9743



WWW
Applications:
« Reply #10 on: August 22, 2012, 03:41:05 PM »

Also, what OS have you installed this on? There are known issues with Mountain Lion and FMS12
Logged

tim.webko_at_gmail.com
necrodragon78
Newbie
*
Offline Offline

Posts: 16




Applications:
« Reply #11 on: August 24, 2012, 04:41:48 AM »

I'm using Mountain Lion and also having problems. What known issues are there? I cannot get this to work on Windows 7 also. Are there known issues with CS6 also? I see that FMWebSchool says it is compatible, but have not seen anyone here using it that can verify it actually works with DreamWeaver CS6.
Logged
necrodragon78
Newbie
*
Offline Offline

Posts: 16




Applications:
« Reply #12 on: August 30, 2012, 09:31:07 AM »

i believe the solutions found in this forum topic will be the solutions for this one also.

http://fmwebschool.com/frm/index.php?topic=6284.0
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!