selected records actions

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

selected records actions

Postby camt » Thu May 17, 2012 5:05 am

Hello, I am having a problem with my selected records actions (update and copy) - each time I press these it takes me to a blank screen.

Here is the error log:

[Thu May 17 13:04:08 2012] [error] [client 127.0.0.1] PHP Warning: Smarty::include(/var/www/html/troika/templates_c/dataface/%%2E^2EA^2EA26F76%%copy_replace.html.php) [<a href='function.Smarty-include'>function.Smarty-include</a>]: failed to open stream: No such file or directory in /var/www/html/xataface/lib/Smarty/Smarty.class.php on line 1258, referer: http://localhost/troika/index.php
[Thu May 17 13:04:08 2012] [error] [client 127.0.0.1] PHP Warning: Smarty::include() [<a href='function.include'>function.include</a>]: Failed opening '/var/www/html/troika/templates_c/dataface/%%2E^2EA^2EA26F76%%copy_replace.html.php' for inclusion (include_path='.:/var/www/html/xataface:/var/www/html/xataface/lib:/usr/share/pear:/usr/share/php') in /var/www/html/xataface/lib/Smarty/Smarty.class.php on line 1258, referer: http://localhost/troika/index.php

My php version is 5.1.6
Mysql version is 5.0.95

Many thanks for your help in advance,

Cam
camt
 
Posts: 17
Joined: Wed Jan 04, 2012 9:28 am

Re: selected records actions

Postby shannah » Thu May 17, 2012 9:37 am

Check that your templates_c directory is writable by the webserver.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: selected records actions

Postby camt » Fri May 18, 2012 2:39 am

It is world writable, PHP Safe mode is off, I'm not sure what else it would be? Most likely my PHP version/settings?

...

Just as an aside my actions.ini labels don't seem to be working correctly, I can show or hide a button with visible = 0, but changing the Label in any way or on either the master actions.ini or any of the seperate table actions.ini files. (It was working before, must be something I've changed)

Thanks for your help,

Cam
camt
 
Posts: 17
Joined: Wed Jan 04, 2012 9:28 am

Re: selected records actions

Postby camt » Fri May 18, 2012 3:45 am

Just upgraded to PHP version 5.3.3, still getting the same error!
camt
 
Posts: 17
Joined: Wed Jan 04, 2012 9:28 am

Re: selected records actions

Postby shannah » Fri May 18, 2012 9:29 am

2 things to try:

1. Clear out your templates_c directory (i.e. delete all files in it).
2. Download Xataface fresh

_Steve
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: selected records actions

Postby camt » Wed May 23, 2012 2:36 am

Hi steve, deleting all the files worked for me!

Thanks,

Cam
camt
 
Posts: 17
Joined: Wed Jan 04, 2012 9:28 am

Re: selected records actions

Postby camt » Wed May 23, 2012 3:42 am

However, my other issue with the actions.ini still stands, it seems perplexing that all other parameters in such as visible=.. or url=.. etc. still affect the action, but I cannot change the label or description of any at all, even in the master actions.ini

Thanks,

Cam
camt
 
Posts: 17
Joined: Wed Jan 04, 2012 9:28 am

Re: selected records actions

Postby shannah » Wed May 23, 2012 8:42 am

What action are you trying to change the label of? Can you post your change?
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: selected records actions

Postby camt » Thu May 24, 2012 2:14 am

Code: Select all
[new]
   label = New Issue
   description = Submit a new issue
   url = "{$this->url('-action=new', false)}"
   icon = "{$dataface_url}/images/add_icon.gif"
   category = table_actions
   accessKey = n
   mode = browse
   permission = new
   order=1


This will still display 'new record' on the table, rather than 'new issue', everything else I change will apply - i.e I can change the url, icon, order etc. and this will all work fine.

I have tried:
Code: Select all
[new > new]
   label = New Issue
   description = Submit a new issue
   url = "{$this->url('-action=new', false)}"
   icon = "{$dataface_url}/images/add_icon.gif"
   category = table_actions
   accessKey = n
   mode = browse
   permission = new
   order=1


However, I can get around it at the moment by creating a new action and hiding the old one, so it is not too much of an issue:

Code: Select all
;; Create a new issue
[new issue]
   label = New Issue
   description = Submit a new issue
   url = "{$this->url('-action=new', false)}"
   icon = "{$dataface_url}/images/add_icon.gif"
   category = table_actions
   accessKey = n
   mode = browse
   permission = new
   order=1

;; Create a new record
[new]
   label = New Record
   description = Submit a new record
   url = "{$this->url('-action=new', false)}"
   icon = "{$dataface_url}/images/add_icon.gif"
   category = table_actions
   accessKey = n
   mode = browse
   permission = new
   order=1
        visible = 0


Thanks,

Cam
camt
 
Posts: 17
Joined: Wed Jan 04, 2012 9:28 am

Re: selected records actions

Postby camt » Thu May 24, 2012 2:15 am

(This is the same for all actions on all tables btw)
camt
 
Posts: 17
Joined: Wed Jan 04, 2012 9:28 am

Re: selected records actions

Postby shannah » Thu May 24, 2012 10:24 am

Oh.. yes. The labels and descriptions are internationalized. This means that they are overridden in the lang/en.ini file.
Look for the actions.new.label string.

-Steve
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: selected records actions

Postby shannah » Thu May 24, 2012 10:25 am

Note: Don't change the actual Xataface en.ini file. Create an en.ini file for your own application at $APPROOT/lang/en.ini. Then just define the strings you want to override.

-Steve
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: selected records actions

Postby camt » Fri May 25, 2012 3:11 am

Thanks Steve, this worked for me!

Cam
camt
 
Posts: 17
Joined: Wed Jan 04, 2012 9:28 am


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 21 guests

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