Page 1 of 1
selected records actions

Posted:
Thu May 17, 2012 5:05 am
by camt
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.phpMy php version is 5.1.6
Mysql version is 5.0.95
Many thanks for your help in advance,
Cam
Re: selected records actions

Posted:
Thu May 17, 2012 9:37 am
by shannah
Check that your templates_c directory is writable by the webserver.
Re: selected records actions

Posted:
Fri May 18, 2012 2:39 am
by camt
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
Re: selected records actions

Posted:
Fri May 18, 2012 3:45 am
by camt
Just upgraded to PHP version 5.3.3, still getting the same error!
Re: selected records actions

Posted:
Fri May 18, 2012 9:29 am
by shannah
2 things to try:
1. Clear out your templates_c directory (i.e. delete all files in it).
2. Download Xataface fresh
_Steve
Re: selected records actions

Posted:
Wed May 23, 2012 2:36 am
by camt
Hi steve, deleting all the files worked for me!
Thanks,
Cam
Re: selected records actions

Posted:
Wed May 23, 2012 3:42 am
by camt
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
Re: selected records actions

Posted:
Wed May 23, 2012 8:42 am
by shannah
What action are you trying to change the label of? Can you post your change?
Re: selected records actions

Posted:
Thu May 24, 2012 2:14 am
by camt
- 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
Re: selected records actions

Posted:
Thu May 24, 2012 2:15 am
by camt
(This is the same for all actions on all tables btw)
Re: selected records actions

Posted:
Thu May 24, 2012 10:24 am
by shannah
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
Re: selected records actions

Posted:
Thu May 24, 2012 10:25 am
by shannah
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
Re: selected records actions

Posted:
Fri May 25, 2012 3:11 am
by camt
Thanks Steve, this worked for me!
Cam