[SOLVED] Print layout not working in 1.2.3 DEV

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Ben
Posts: 558
Joined: Wed 14. Jan 2004, 08:05
Location: Atlanta
Contact:

[SOLVED] Print layout not working in 1.2.3 DEV

Post 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.
Last edited by Ben on Sun 26. Jun 2005, 19:38, edited 1 time in total.
Pappnase

Post by Pappnase »

hello ben

at the docu page there also runs the 1.2.3 version. but the print function works still fine.
Ben
Posts: 558
Joined: Wed 14. Jan 2004, 08:05
Location: Atlanta
Contact:

Post 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.
Ben
Posts: 558
Joined: Wed 14. Jan 2004, 08:05
Location: Atlanta
Contact:

Post 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?
Pappnase

Post 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
Ben
Posts: 558
Joined: Wed 14. Jan 2004, 08:05
Location: Atlanta
Contact:

Post 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? :?:
Last edited by Ben on Sat 11. Jun 2005, 00:20, edited 1 time in total.
Pappnase

Post 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! :lol:
Ben
Posts: 558
Joined: Wed 14. Jan 2004, 08:05
Location: Atlanta
Contact:

Post by Ben »

Cool - thanks for your help, Pappnase. I'm glad we were able to narrow down what is causing the problem.
User avatar
Oliver Georgi
Site Admin
Posts: 9907
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post 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
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Ben
Posts: 558
Joined: Wed 14. Jan 2004, 08:05
Location: Atlanta
Contact:

Post 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.
rescamilla
Posts: 69
Joined: Sun 25. Jul 2004, 01:53

Post 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
Ben
Posts: 558
Joined: Wed 14. Jan 2004, 08:05
Location: Atlanta
Contact:

Post 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?
User avatar
Oliver Georgi
Site Admin
Posts: 9907
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

I have tested PRINT in combination with rewrite on my local development system - it works.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
Cyrus
Posts: 63
Joined: Mon 22. Mar 2004, 05:40
Location: New Zealand
Contact:

Post 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
Cyrus
Ben
Posts: 558
Joined: Wed 14. Jan 2004, 08:05
Location: Atlanta
Contact:

Post 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?
Post Reply