Print icon doesn't work after upgrading to 1.6.5

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
User avatar
moonie
Forum Members
Forum Members
Posts: 81
Joined: Tue Feb 13, 2007 3:08 pm
Location: Switzerland

Re: Print icon doesn't work after upgrading to 1.6.5

Post by moonie »

Same here, {oldprint} works on the fopen=off servers. Older versions of the printmodule work too on that server.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: Print icon doesn't work after upgrading to 1.6.5

Post by Rolf »

Hi all,

Thanks for your replies.

Some conclusions:

1. Clicking results into opposite behavior: everything on screen, accept the content
Greg wrote: The upload of the complete 1.6.5 package fixes the problem on the servers with fopen set on. Must be a file missed in the diff package.
This behavior is probably the result of a missing file in the 1.6.4-1.6.5 diff package or simply by an upload fault...
I have noticed a missing file before. The file output.php is no longer used and is empty available in the 1.6.3-1.6.5 diff package, but isn't in the 1.6.4-1.6.5 diff.
This shouldn't be causing problems, but sometimes...  :-\

In the new 1.6.5-1.6.6 diff package is this file present again!
If this is the problem, it should be solve the problem then.
1.6.6 is probably released early next month.

If you don't want to wait for it, please try to upload the full package 1.6.5 like Greg did.


2. Clicking results into a blank screen.
I can conclude this is caused by allow_url_fopen is 'off'
If you or your webhost can change this, your problem is solved.  :)
If not...
Calguy and Ted are working hard on the new release of 1.7.
They will try to solve the fopen problem at the same time. Until then we can't fix this I'm afraid.
Using {old_print} should be a temporary solution for this, like Moonie did.

I hope there is a useful solution for everybody in here.

Grtz. Rolf

ps. Moonie, thanks for the karma  ;)
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
moonie
Forum Members
Forum Members
Posts: 81
Joined: Tue Feb 13, 2007 3:08 pm
Location: Switzerland

Re: Print icon doesn't work after upgrading to 1.6.5

Post by moonie »

... and thank you for the infos!
boo
New Member
New Member
Posts: 4
Joined: Thu May 19, 2011 10:07 pm

Re: Print icon doesn't work after upgrading to 1.6.5

Post by boo »

I too have a problem.
CMSMS version - 1.9.4.1 "Faanui"
phpinfo(); -> allow_url_fopen On On
, but standart module show blank page.

{oldprint showbutton="true" script="true"} - works for me.
Bredt2
New Member
New Member
Posts: 6
Joined: Sun Sep 18, 2011 5:13 pm
Location: Paris, France

Re: Print icon doesn't work after upgrading to 1.6.5

Post by Bredt2 »

Hi,

I have the same problem (error #2: blank print page).
Php option allow_url_fopen is on.
CMS MS is running on ubuntu on VirtualBox (a virtual machine) on Win7
----------------------------------------------
Cms Version: 1.9.4.2

Installed Modules:

CMSMailer: 2.0.1
FileManager: 1.1.0
MenuManager: 1.7.6
ModuleManager: 1.4.2
News: 2.11.3
nuSOAP: 1.0.2
Printing: 1.1.2
Search: 1.6.10
ThemeManager: 1.1.4
TinyMCE: 2.8.4
CGExtensions: 1.27.1
MleCMS: 1.9.2
Jobs: 1.0
Glossary: 0.6.8
FormBuilder: 0.7
GBFilePicker: 1.3
ListIt2: 1.0.4
Captcha: 0.4.3


Config Information:

php_memory_limit:
process_whole_template: false
output_compression: false
max_upload_size: 32000000
default_upload_permission: 664
url_rewriting: mod_rewrite
page_extension:
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale:
default_encoding: utf-8
admin_encoding: utf-8
set_names: true


Php Information:

phpversion: 5.3.2-1ubuntu4.9
md5_function: On (Vrai)
gd_version: 2
tempnam_function: On (Vrai)
magic_quotes_runtime: Off (Faux)
E_STRICT: 0
E_DEPRECATED: 0
memory_limit: 128M
max_execution_time: 120
output_buffering: 4096
safe_mode: Off (Faux)
file_uploads: On (Vrai)
post_max_size: 32M
upload_max_filesize: 32M
session_save_path: /var/lib/php5 (1733)
session_use_cookies: On (Vrai)
xml_function: On (Vrai)


Server Information:

Server Api: apache2handler
Server Db Type: MySQL (mysql)
Server Db Version: 5.1.41


----------------------------------------------

In fact only the content is missing as you can see in the html code:

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<__html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <title>Printing Actualités</title>
    <meta name="robots" content="noindex"></meta>
    <base href="http://192.168.1.10/" />
    <meta name="Generator" content="CMS Made Simple - Copyright (C) 2004-10 Ted Kulp. All rights reserved." />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    

        <style type="text/css">
    /*
You can put css stuff here, which will be inserted in the header after calling the cmsms-stylesheets.
Provided you don't remove the {$overridestylesheet} in PrintTemplate, of course.

Any suggestions for default content in this stylesheet?

Have fun!
*/
    </style>

        
  </head>
  </__body	style="background-color: white; color: black; background-image: none; text-align: left;">	
    
        
    
  <__body>
</__html>
It seems to be an URL rewrite problem.
Here are the Apache logs (192.168.1.10: Server IP, 192.168.1.3: Client IP):

access.log

Code: Select all

192.168.1.10 - - [06/Oct/2011:18:03:34 +0200] "GET /fr/actualites?showtemplate=false HTTP/1.0" 302 614 "-" "-"
192.168.1.10 - - [06/Oct/2011:18:03:34 +0200] "GET /fr/actualites HTTP/1.0" 302 614 "-" "-"
192.168.1.10 - - [06/Oct/2011:18:03:35 +0200] "GET /fr/actualites HTTP/1.0" 302 614 "-" "-"
192.168.1.10 - - [06/Oct/2011:18:03:35 +0200] "GET /fr/actualites HTTP/1.0" 302 614 "-" "-"
192.168.1.10 - - [06/Oct/2011:18:03:35 +0200] "GET /fr/actualites HTTP/1.0" 302 614 "-" "-"
192.168.1.10 - - [06/Oct/2011:18:03:36 +0200] "GET /fr/actualites HTTP/1.0" 302 614 "-" "-"
192.168.1.10 - - [06/Oct/2011:18:03:36 +0200] "GET /fr/actualites HTTP/1.0" 302 614 "-" "-"
192.168.1.10 - - [06/Oct/2011:18:03:36 +0200] "GET /fr/actualites HTTP/1.0" 302 614 "-" "-"
192.168.1.10 - - [06/Oct/2011:18:03:37 +0200] "GET /fr/actualites HTTP/1.0" 302 614 "-" "-"
192.168.1.10 - - [06/Oct/2011:18:03:37 +0200] "GET /fr/actualites HTTP/1.0" 302 614 "-" "-"
192.168.1.10 - - [06/Oct/2011:18:03:37 +0200] "GET /fr/actualites HTTP/1.0" 302 614 "-" "-"
192.168.1.10 - - [06/Oct/2011:18:03:37 +0200] "GET /fr/actualites HTTP/1.0" 302 614 "-" "-"
192.168.1.10 - - [06/Oct/2011:18:03:38 +0200] "GET /fr/actualites HTTP/1.0" 302 614 "-" "-"
192.168.1.10 - - [06/Oct/2011:18:03:38 +0200] "GET /fr/actualites HTTP/1.0" 302 614 "-" "-"
192.168.1.10 - - [06/Oct/2011:18:03:38 +0200] "GET /fr/actualites HTTP/1.0" 302 614 "-" "-"
192.168.1.10 - - [06/Oct/2011:18:03:39 +0200] "GET /fr/actualites HTTP/1.0" 302 614 "-" "-"
192.168.1.10 - - [06/Oct/2011:18:03:39 +0200] "GET /fr/actualites HTTP/1.0" 302 614 "-" "-"
192.168.1.10 - - [06/Oct/2011:18:03:39 +0200] "GET /fr/actualites HTTP/1.0" 302 614 "-" "-"
192.168.1.10 - - [06/Oct/2011:18:03:39 +0200] "GET /fr/actualites HTTP/1.0" 302 614 "-" "-"
192.168.1.10 - - [06/Oct/2011:18:03:39 +0200] "GET /fr/actualites HTTP/1.0" 302 614 "-" "-"
192.168.1.3 - - [06/Oct/2011:18:03:34 +0200] "GET /index.php?mact=Printing,cntnt01,output,0&cntnt01url=aHR0cDovLzE5Mi4xNjguMS4xMC9mci9hY3R1YWxpdGVzP3Nob3d0ZW1wbGF0ZT1mYWxzZQ%3D%3D&cntnt01pageid=67&cntnt01returnid=67 HTTP/1.1" 200 1047 "http://192.168.1.10/fr/actualites" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1"


error.log

Code: Select all

[Thu Oct 06 18:03:40 2011] [error] [client 192.168.1.3] PHP Warning:  file_get_contents(http://192.168.1.10/fr/actualites?showtemplate=false): failed to open stream: Redirection limit reached, aborting in /var/www/modules/Printing/Printing.module.php on line 96, referer: http://192.168.1.10/fr/actualites
I will test Printing Module without the URL rewrite option.
I hope this may help.

Regards,
Bredt 8)
Locked

Return to “CMSMS Core”