[SOLVED] Trouble with "view as table " and login

A place for users and developers of the Xataface to discuss and receive support.

[SOLVED] Trouble with "view as table " and login

Postby silma » Fri Oct 05, 2012 5:12 am

Hi Steve, hi everyone,

I've got a strange behaviour with a new installation (xataface 1.3.2):

I've got a mysql view that i'm using as a table with a primary key described on the field.ini.

Everything works but the login button : if I click it when i'm on this View page, i' got a blank page. This happen only on my hosted server : in Wamp, it does not crash.

You can see it happen here :http://compagnonsdarmes.guild-heberg.fr/artisanat/CraftBase (The view is "Recettes")

I've tried a workaround in my delegate class but it did not help

Code: Select all
  function beforeHandleRequest(){
         $auth =& Dataface_AuthenticationTool::getInstance();
         $user =& $auth->getLoggedInUser();
         $app =& Dataface_Application::getInstance();
         $query =& $app->getQuery();
      

            
      if ( $query['-table'] == 'cb_recette' and ($query['-action'] == 'login_prompt' or $query['-action'] == 'login') ){
           $query['-table'] = 'cb_objetartisanal' ;
       }
      
      
      }



Do you know why this happen ?
Or, as a workaround, is there a way to disable the "login" button on this page only ?

Thanks a lot for your help, and please excuse my english.
Last edited by silma on Fri Oct 05, 2012 8:19 am, edited 1 time in total.
silma
 
Posts: 87
Joined: Tue Apr 28, 2009 11:47 pm

Re: Trouble with "view as table " and login

Postby Jean » Fri Oct 05, 2012 6:41 am

Did you tried to add
Code: Select all
error_reporting(E_ALL);
ini_set('display_errors','On');

in you index page ?

Jean
Jean
 
Posts: 259
Joined: Wed Nov 07, 2007 1:30 am
Location: Pau, France

Re: Trouble with "view as table " and login

Postby silma » Fri Oct 05, 2012 8:19 am

Thanks a lot, i just discoverer thanks to you that it was a simple "header already sent by" error.
I changed my file to UTF8 without BOM and it works now.
silma
 
Posts: 87
Joined: Tue Apr 28, 2009 11:47 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 16 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved