Page 1 of 4
[SOLVED] Print layout not working in 1.2.3 DEV
Posted: Fri 10. Jun 2005, 19:52
by Ben
Has anyone else realized that the print layouts are not functioning properly in 1.2.3 DEV? As usual, I put [PRINT]print_link_text[/PRINT] in the footer of a template. Clicking on it opens a new window, which appears to be the same as the parent page. You can see what I'm talking about here:
http://www.usspec.com/index.phtml. (Click the print link in the bottom right.)
This feature works properly in 1.2.1-DEV. Any assistance will be appreciated.
Posted: Fri 10. Jun 2005, 19:56
by Pappnase
hello ben
at the docu page there also runs the 1.2.3 version. but the print function works still fine.
Posted: Fri 10. Jun 2005, 20:08
by Ben
I noticed that the docu site is not using the re-write functionality. Do you think this is the reason that print layouts work properly for the docu site and not for me? I tested another of my 1.2.3 DEV sites (
http://www.photoscripts.com) and found that the print layouts don't work here either. The print link is in the page footer on the right.
Posted: Fri 10. Jun 2005, 20:16
by Ben
I did some investigating and tried replacing the // print layout button replacement code in /include/inc_front/content.func.inc.php at line 482 with the code from 1.1 RC4 and the print layouts still don't work. What's weird is they work for all installations on the same server prior to 1.2.3 DEV. Any ideas where else I could look or things I could try to get this going?
Posted: Fri 10. Jun 2005, 23:41
by Pappnase
Ben wrote:I noticed that the docu site is not using the re-write functionality. Do you think this is the reason that print layouts work properly for the docu site and not for me? I tested another of my 1.2.3 DEV sites (
http://www.photoscripts.com) and found that the print layouts don't work here either. The print link is in the page footer on the right.
hello
no i don't think that this has something to do with the rewrite. cos teh rewrite still runnign in the background. (via htaccess) it's only disable in the conf.inc.php
Posted: Sat 11. Jun 2005, 00:07
by Ben
Surprisingly, the issue actually is tied to the re-write functionality!

Try the two following sites - both are using 1.2.3 DEV, one with re-write, one without. Here they are:
http://www.usspec.com - using rewrite - print link in bottom right
http://www.photoscripts.com - not using rewrite - print link in bottom right
So ... what could have changed between 1.2.1 and 1.2.3 that is causing print layouts to not work correctly when url rewrite is in use?

Posted: Sat 11. Jun 2005, 00:17
by Pappnase
hello ben
the only one who can answer this is Oliver! so as i sayed before i have forward to him this thread!

Posted: Sat 11. Jun 2005, 00:20
by Ben
Cool - thanks for your help, Pappnase. I'm glad we were able to narrow down what is causing the problem.
Posted: Sat 11. Jun 2005, 19:05
by Oliver Georgi
I had this question sometimes ago - print is still working fine - also in 1.2.3 - check your .
It must be fault by the cache setting. So try what happens when caching is disabled.
Oliver
Posted: Sat 11. Jun 2005, 20:09
by Ben
Caching is disabled (set to '0') on both websites mentioned above. Do you have any other ideas about what could be going on here? Thanks for you help, BTW.
Posted: Mon 13. Jun 2005, 19:11
by rescamilla
I had this problem a couple of versions ago because I had my entire html page in the "main" section of my template. If you do this it will void out the built in Print function.
Just a thought...check your template.
-Ray
Posted: Mon 13. Jun 2005, 19:19
by Ben
rescamilla, thanks for the pointer, but I have {CONTENT} in the majority of my templates, except for a few that have a line or two of HTML beneath the {CONTENT} tag.
I have yet to see anyone else who is using 1.2.3 DEV with the re-write function where print layouts are working properly. Does anyone have a site where I can see it working?
Posted: Mon 13. Jun 2005, 22:39
by Oliver Georgi
I have tested PRINT in combination with rewrite on my local development system - it works.
Oliver
Posted: Tue 14. Jun 2005, 16:21
by Cyrus
I have just seen this thread, and it is interesting for me as I had pointed this out earlier at the bug tracking site. As I hadn't seen any other mention of this before, and with Oliver pointing out that no changes had been made from his end, I take it that the error lies somewhere on my side.
I also have the rewrite function on and have exactly the same problem as Ben ... the feature worked during 1.2.1-DEV but is not during 1.2.3-DEV
Posted: Tue 14. Jun 2005, 17:30
by Ben
Cyrus - are you using 1.2.3 DEV at
http://www.thepromotiongroup.com? I couldn't tell b/c you disabled source view. It seems that you have the problem with print layouts on this site, just like I do.
Does any have an idea of something we could try to help fix this issue?