Smarty Error on DataGrid

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

Smarty Error on DataGrid

Postby zoemax » Fri Dec 02, 2011 6:08 am

Hi all,

I'm an old user of Xataface having been using it since the early days of Dataface. I've been out of coding for almost 2 years, and I'm sure ( once upon a time) I solved the following error, but now, I'm stumped and not exactly sure where to look. I've searched the forum for "DataGrid" and "Smarty" ( even goooooogled the Smarty Error) and came up with possible pathing errors.

Scenario:
Installed DataGrid Module and finally got the tab to show up ( re-read/read/and re-read all relavant posts). Now when I click on the "grid" tab I get:

"
Warning: Smarty error: unable to read resource: "DataGrid/view.html" in {homedirpathhere}/public_html/xataface-1.3rc6/lib/Smarty/Smarty.class.php on line 1095

Line 1095 is just the error code section being returned.

My question is: Is the " read resource: "DataGrid/view.html" relative to the modules/templates that Smarty is complaining about? I can put the full path of 'view.html' in the browser and I can see the template - [ /{website} /modules/DataGrid/templates/view.html


I would think that if it was a permissions issue, I would see another error - the only error i am seeing is:

[02-Dec-2011 06:44:38] PHP Warning: Smarty error: unable to read resource: "DataGrid/view.html" in /home/zoemaxc1/public_html/xataface-1.3rc6/lib/Smarty/Smarty.class.php on line 1095


In Advance, I thank anyone for all advice on where to possibly look,
dan


Actaully,I just tried to install the mail module and Smarty is giving me the same error. I'm thinking Smarty isn't looking in the right place. Will try & Debug since both Grid & Email are bouncing the same error message.

11:00 AM Update: Solved the Email issue by putting the /module/Email/templates/email_form.html into the normal ~/templates directory.
Making Progress on the Grid issue also. Link to Grid works - however, no Grid is showing. I know I've seen that one in the forums before.
zoemax
 
Posts: 6
Joined: Thu Dec 01, 2011 4:54 pm

Re: Smarty Error on DataGrid

Postby Jean » Sat Dec 03, 2011 6:43 am

Well Zoemax, I had the problem with no grid, I searched some time and found the solution
http://xataface.com/forum/viewtopic.php?f=4&t=6099&p=28262
your DataGrid module folder must be called simply DataGrid

Eventually, I found the error :
I change the folder name from DataGrid-0.2.1 to DataGrid in the modules folder


Cheers

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

Re: Smarty Error on DataGrid

Postby zoemax » Sun Dec 04, 2011 8:40 am

Thanks, I had previously found that to be the cause of the No Grid Tab and corrected it - but I still don't see a grid when I click on the tab.

I'm debugging that along with an issue with authentication & the email module. I had EMAIL working, and then turned on authentication, and then the Email envelope disappeared. I'm now going / searching through the Forums for a solution.

Cheers!
dan
zoemax
 
Posts: 6
Joined: Thu Dec 01, 2011 4:54 pm

Re: Smarty Error on DataGrid [ FIXED ]

Postby zoemax » Mon Dec 05, 2011 12:04 pm

Once again, a PATHing issue.

way back in my basic index.php - I hadn't set my df_init path correctly.

( pound head on desk )
zoemax
 
Posts: 6
Joined: Thu Dec 01, 2011 4:54 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 19 guests

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