Hello!
I have recently installed displayword. I am using eFiction version 3.5.1. When I download a story as a word file, the contents of the file are some php errors. They look like:
Notice: Undefined variable: skin in /html/includes/class.TemplatePower.inc.php on line 146
Notice: Undefined index: chapterblock in /html/includes/class.TemplatePower.inc.php on line 701
Notice: Undefined index: chapterblock in /html/includes/class.TemplatePower.inc.php on line 701
Notice: Undefined index: in /html/includes/class.TemplatePower.inc.php on line 701
Notice: Undefined index: chapterblock in /html/includes/class.TemplatePower.inc.php on line 706
Notice: Undefined index: chapterblock in /html/includes/class.TemplatePower.inc.php on line 713
I have also tried it with a local webserver on my computer. I have installed the latest XAMPP and set up a test installation of eFiction. The same problem.
What could be the problem? Did I forgot to do something, or is this version of displayword simply not compatible with efiction 3.5.1?
Regards!
PS: Sorry for my english π Normally I speak german.
Please use the support request template at the top of the forum. We need to see the problem in action so a URL would be helpful.
ETA It's working fine on my site.
It took some time to find the template. π But I really am not sure, if this is more helpfull then that what I have said before. π
URL to your eFiction:
www.sf-ecke.de
Version of eFiction:
3.5.1
Have you bridged eFiction, if so with what?:
No
Version of PHP: can be found out from your host
4.4.9
Version of MySQL: can be found out from your host
MySQL Client version 5.0.77
Have you searched for your problem: (yes/no)
Yes
If so, what terms did you try:
displayword, problem, error, notices, class.templatepower.inc.php
State the nature of your problem: Copy and paste any errors you are receiving.
When downloading a storry by clicking on the microsoft word icon, the downloaded file contains only the following notices:
Notice: Undefined variable: skin in /var/www/web49/html/includes/class.TemplatePower.inc.php on line 146
Notice: Undefined index: chapterblock in /var/www/web49/html/includes/class.TemplatePower.inc.php on line 701
Notice: Undefined index: chapterblock in /var/www/web49/html/includes/class.TemplatePower.inc.php on line 701
Notice: Undefined index: in /var/www/web49/html/includes/class.TemplatePower.inc.php on line 701
Notice: Undefined index: chapterblock in /var/www/web49/html/includes/class.TemplatePower.inc.php on line 706
Notice: Undefined index: chapterblock in /var/www/web49/html/includes/class.TemplatePower.inc.php on line 713
Do you have a test account for us?
No, there is no difference if you are logged in or not. The result is the same.
Two things: The Efiction installation I am running is in german. And, PHP is running on safe mode.
Regards
I don't think you've got the module installed correctly. Did you add the .tpl files? Looks to me like those are missing.
I copied the contents of the zip-file into the modules folder, activated it via the admin interface, added the printword-variable into the nessesary tpl-files. What else did I forget? As far as the readme-file states, I have done everything to install ist.
[edit]
I have completely removed and reinstalled the module. This time I copied the files in the default_tpls-folder of the module in the skins and the main default_tpls-folder. Now it is working! My mistake, I thought I have to copy them only if I modify them.
Regards!
That's true for the standard .tpls, but this module has a template of it's own for outputting the word doc. If that didn't get uploaded, there is nothing for the script to fall back to.
Donkamillo, I was having the same issue and your fix fixed it for me. Thank you! I was so frustrated, lol. I wanted to reply in case anyone else had the same problem, they could see it resolved it for someone else.
I'm running 3.5.1 on a safari skin.