Error generating Custom Template

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
josejad
User
Posts: 115
Location: Spain

Error generating Custom Template

Post by josejad »

I'm trying to generate a Custom Template in a view page, but when I add anything (i.e. <tr{{{row_attrs}}}><td>{{{dni}}}</td></tr>) I get this error at 29% after "Starting generation...)

Preparing generation for file header.php...
Starting generation...
Generating prl_firmas_charlasinfo.php...
Generating prl_firmas_charlaslist.php...
Generating prl_firmas_charlasadd.php...
Generating prl_firmas_charlasview.php...
ReferenceError: sSpanId is not defined
at Object.GetCustomViewTemplate (C:\Program Files (x86)\PHPMaker 2017\node\node_modules\phpmaker\phpmaker.js:9:10274)
at Object.FieldViewCall (C:\Program Files (x86)\PHPMaker 2017\node\node_modules\phpmaker\phpmaker.js:12:5716)
at Object.FieldView (C:\Program Files (x86)\PHPMaker 2017\node\node_modules\phpmaker\phpmaker.js:12:4789)
at ewExview (C:\Users\josejad\Documents\PHPMaker\Templates\phpv20170\cache\view_table.js:8032:29)
at generateFile (C:\Users\josejad\Documents\PHPMaker\Templates\phpv20170\cache\semi.js:46:52)
at Object.<anonymous> (C:\Users\josejad\Documents\PHPMaker\Templates\phpv20170\cache\semi.js:105:1)
at Module.compile (module.js:556:32)
at Object.Module.
extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)


mobhar
User
Posts: 11703

Post by mobhar »

I've been trying Custom Template in View Page without any issue until now.

Make sure you have already downloaded and installed the latest version.


josejad
User
Posts: 115
Location: Spain

Post by josejad »

Solved. I had an old version of the file" phpmaker.js" located in the "<Installation folder>"\node\node_modules\phpmaker\
When I updated template it doesn't update. Solved uninstalling and reinstalling Phpmaker.


Post Reply