2.6.0 Modul Articles only blank sites
  • hi,
    i upgraded from 2.5.6 to 2.6.0 and all my articles were gone. i saw them in the overview and in the admin-panel. but i i click any article i only get an empty, white page. no sourcecode.

    so i made a fresh, new installation on another server. same result. i can add an article - but if i click on it, i get a blank site.

    system is debian lenny (with its standard apache, php5, mysql)

    would be great to hear / read a solution. if there is no solution, i have to delete tango cms. would be very bad because i started to love it!

    thanks a lot

    jens
  • i forgot: i turned on debug - log. if i add a new article, i get the following error - message:

    Notice: Undefined property: PDOStatement::$closeCursor in /home/xxxxxxx/html/application/modules/article/models/article.php on line 71

    Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxxxx/html/application/modules/article/models/article.php:71) in /home/xxxxxxx/html/application/zula/common.php on line 229
  • Hi walhalla,

    Hum that is very strange. It's working fine for us here, which is very strage because I can see the bug in the code which is causing your issue.

    I shall get this fixed up in 2.6.1 which we shall release very shortly. If you want to fix this your self manually for now until we make this new release, simply edit the file "applicaton/modules/article/models/article.php" and change line 71 to "$pdoSt->closeCursor();" and it will fix it.

    I'll report the bug for you on dev.tangocms.org

    Many thanks for reporting the issue!
  • Ok, just to let you know I've reported this bug at http://dev.tangocms.org/issues/336 of which I have now fixed. 2.6.1 will more than likely be released in 1 week.
  • hi alex,
    thanks for your response. this bug in the file you write (article.php) ... the missing "()" ... i found myself tonight and fixed this. adding articles is working without this error - message.

    but i still get empty pages if i click on any link to one of the articles. these articles exist. i can see them in the overview, i can see them in admin - panel and i can see them in the database. but i only get this white page if i click on "Read more" or the title of the article ... which drives me crazy.

    tonight i was happy when i found this error for several seconds ;) but it seems, it is not the only error?! can you send me a 100%-working "article.php" from your server by email that i can check the differences?

    do you need any further data which helps to find this error?

    thanks

    jens
  • See http://manual.tangocms.org/troubleshooting/debug on how to display more info when a blank page exists. As for the file, this is the official file: https://github.com/tcm-project/tangocms ... rticle.php
  • hi,
    i tried this yesterday and didn't find anything usefull in tghis log helping finding this error. this part occures everytime ->

    [2010-11-20T01:33:59+01:00] [*.*.*.* | uid 2] [debug] -- (unknown:0) hooks: attempting to register hooks for "Aliases_hooks"
    [2010-11-20T01:33:59+01:00] [*.*.*.* | uid 2] [debug] -- (unknown:0) hooks: attempting to register hooks for "Article_hooks"
    [2010-11-20T01:33:59+01:00] [*.*.*.* | uid 2] [debug] -- (unknown:0) hooks: attempting to register hooks for "Contact_hooks"
    [2010-11-20T01:33:59+01:00] [*.*.*.* | uid 2] [debug] -- (unknown:0) hooks: attempting to register hooks for "Editor_hooks"
    [2010-11-20T01:33:59+01:00] [*.*.*.* | uid 2] [debug] -- (unknown:0) hooks: attempting to register hooks for "Media_hooks"
    [2010-11-20T01:33:59+01:00] [*.*.*.*8 | uid 2] [debug] -- (unknown:0) hooks: attempting to register hooks for "Menu_hooks"
    [2010-11-20T01:33:59+01:00] *.*.*.* | uid 2] [debug] -- (unknown:0) hooks: attempting to register hooks for "Page_hooks"
    [2010-11-20T01:33:59+01:00] [*.*.*.* | uid 2] [debug] -- (unknown:0) hooks: attempting to register hooks for "Poll_hooks"
    [2010-11-20T01:33:59+01:00] [*.*.*.* | uid 2] [debug] -- (unknown:0) hooks: attempting to register hooks for "Rss_hooks"
    [2010-11-20T01:33:59+01:00] [*.*.*.* | uid 2] [debug] -- (unknown:0) hooks: attempting to register hooks for "Session_Hooks"
    [2010-11-20T01:33:59+01:00] [*.*.*.* | uid 2] [debug] -- (unknown:0) hooks: attempting to register hooks for "Settings_hooks"
    [2010-11-20T01:33:59+01:00] [*.*.*.* | uid 2] [debug] -- (unknown:0) hooks: attempting to register hooks for "Shareable_Hooks"
    [2010-11-20T01:33:59+01:00] [*.*.*.* | uid 2] [debug] -- (unknown:0) hooks: attempting to register hooks for "Sysinfo_hooks"
    [2010-11-20T01:33:59+01:00] [*.*.*.* | uid 2] [debug] -- (unknown:0) hooks: attempting to register hooks for "Theme_Hooks"
    [2010-11-20T01:33:59+01:00] [*.*.*.* | uid 2] [debug] -- (unknown:0) hooks: attempting to register hooks for "Comments_Hooks"
    [2010-11-20T01:33:59+01:00] *.*.*.* | uid 2] [debug] -- (unknown:0) attempting to load controller "menu::index::index"
    [2010-11-20T01:33:59+01:00] *.*.*.* | uid 2] [debug] -- (unknown:0) Cntrlr constructed as "menu/S1"
    [2010-11-20T01:33:59+01:00] [*.*.*.* | uid 2] [debug] -- (unknown:0) attempting to load controller "session::index::index"
    [2010-11-20T01:33:59+01:00] [*.*.*.* | uid 2] [debug] -- (unknown:0) Cntrlr constructed as "session/S2"
    [2010-11-20T01:33:59+01:00] [*.*.*.* | uid 2] [debug] -- (unknown:0) attempting to load controller "article::headlines::index"
    [2010-11-20T01:33:59+01:00] [*.*.*.* | uid 2] [debug] -- (unknown:0) Cntrlr constructed as "article/S2"
    [2010-11-20T01:33:59+01:00] [*.*.*.* | uid 2] [debug] -- (unknown:0) Zula request finished successfully in 0.112872 seconds

    in apaches access-log this ->
    *.*.*.* - - [20/Nov/2010:01:33:56 +0100] "GET /favicon.ico HTTP/1.1" 404 3729 "-" "Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 (.NET CLR 3.5.30729)"
    *.*.*.* - - [20/Nov/2010:01:33:56 +0100] "GET /favicon.ico HTTP/1.1" 404 3729 "-" "Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 (.NET CLR 3.5.30729)"
    *.*.*.* - - [20/Nov/2010:01:33:59 +0100] "GET /favicon.ico HTTP/1.1" 404 3729 "-" "Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 (.NET CLR 3.5.30729)"

    hmmm ... i dont know where to search for the error now?!

    thx & cu

    jens
  • Hum, are you sure you set 'php_display_errors' to '1' in the config.ini.php file? And you're just getting a blank page? Is there anything in your Apache error logs (not access logs)?
  • hi,
    settings in config ->
    [debug]
    php_error_level = highest
    php_display_errors = 1
    zula_detailed_error = 1
    zula_log_level = 127
    zula_log_daily = 1
    zula_log_errors = 1
    zula_show_errors = 1
    zula_log_ttl = 1209600

    the vhosts apache error-log is empty. ok, the old "Cannot modify header ...". but this disappeared after i changed the bug in the file.

    but now i had a look in the main errorlog of the apache. and i found this:

    [Sat Nov 20 11:05:23 2010] [notice] child pid 17420 exit signal Segmentation fault (11)
    [Sat Nov 20 11:05:23 2010] [notice] child pid 17421 exit signal Segmentation fault (11)
    [Sat Nov 20 11:05:23 2010] [notice] child pid 17422 exit signal Segmentation fault (11)
    [Sat Nov 20 11:05:23 2010] [notice] child pid 17423 exit signal Segmentation fault (11)
    [Sat Nov 20 11:05:23 2010] [notice] child pid 17424 exit signal Segmentation fault (11)

    i verified that it comes from tango (tail the log and refresh the site)! any idea? i dont see this error on other parts of your website. only in articles. the rest is working well!?

    jens
  • i forgot in my last post: 2.5.6 ran without any problems. i just tried an old backup - working. so it seems something changed in article.php from 2.5.6 to 2.6.0 what causes this error?!
  • That's not good, your webserver/php process is crashing. Are you using Apache2 and mod-php5 from Lenny? If so I do have a server setup similar to this so once I am back home (probably Tuesday) I can take a look at it.

    Just to confirm, what is the URL that is producing this white page?
  • hi,
    if you use lenny and original apache / php of the stable debian - repository, we should use the same server - cfg. i will send you the details and the url by private message of this forum (have no email address of you) because i dont want to post this all in public.

    jens
  • Ok thanks, I've got the info and I'll take a look at it on Tuesday/Wednesday, I'll try to find the cause and fix it for 2.6.1
  • Right .... this is a strange one. I have a workaround but I really have no idea why it is causing PHP/webserver to crash. Open "application/modules/articles/controllers/view.php" and change line 28 to "#$this->setOutputType( self::_OT_CONTENT_DYNAMIC );" (comment the line out by placing a # in front of it). This should "fix" it.
  • hi alex,
    OK, i "fixed" this and it is working so far. what i really dont understand: if you have nearly the same server-configuration -> why is it working on your server and not for me? am i the first and only one with this error?

    but in the meantime thanks for your fast help!

    jens
  • Just an update to this, if you want comments back simply revert the change you did to the article view.php file, and instead disable Captcha. Login to your Admin CP, go to 'Settings -> Server & Security' and set 'Antispam/Captcha method to use' to 'Disabled'. This will give you comments, but with no captcha (however, reCaptcha might work if you want to set that up).
  • This is now fixed in 2.6.1 :) So upgrade and you'll have all features back and working.
  • hi,
    thanks for this information! is there a list which files changed? i ask because i translated all the sites / areas users can see ... and would be very sad if all translations would beoverwritten by identic files :(

    thx & cu

    jens
  • "walhalla" said:
    hi,
    thanks for this information! is there a list which files changed? i ask because i translated all the sites / areas users can see ... and would be very sad if all translations would beoverwritten by identic files :(

    thx & cu

    jens


    https://github.com/tcm-project/tangocms ... .0...2.6.1 Scroll down to where it shows the files that have been modified :) Remember to do the setup files and to run the upgrader as well though!
  • GREAT - thanks a lot! i'll only copy this files and hope to save most of the translations.

    thanks for fast response & bugfix! nevertheless i dont understand why you did not have the same problems on a server with the same packets ;)

    jens
  • hi again,
    one stupid question: those files "utils/zula.sh" and "utils/build.sh" you list on github ... they are not included in the tarball? the directory "utils" does not exist!?

    jens
  • bad news: i replaced all the files you list on github and made the upgrade to 2.6.1. it is running so far. but if i turn on captcha, i have a blank site again and the same "segmentation fault" in the webservers error - log. if i turn off captcha - it works fine again.

    at the moment it is not really a problem for me, because only registered users can post comments. but maybe it is important for other users?

    jens
  • "walhalla" said:
    bad news: i replaced all the files you list on github and made the upgrade to 2.6.1. it is running so far. but if i turn on captcha, i have a blank site again and the same "segmentation fault" in the webservers error - log. if i turn off captcha - it works fine again.

    at the moment it is not really a problem for me, because only registered users can post comments. but maybe it is important for other users?

    jens


    Really? Can you pastebin the ./application/libraries/Antispam/Captcha.php file on http://paste2.org/ so I can view it? This is strange because it's fixed for me in the only environment that I could replicate it on, so this is going to be near impossible for me to fix.
  • hi,
    i posted the file there -> http://pastebin.ca/2006634 (keyword/title is "TangoCaptcha").

    funny site - didn't know yet!

    jens
  • Hum, I'm out of ideas. I'll have to try to setup an environment to replicate it again.
  • Hey. I was trying to get this CMS to work, and so far I liked it, but then I ran into this bug. Has there been any progress on this? I also experienced it after switching captchas off, but then only after posting something. This was with a fresh TangoCMS 2.6.1 installation and a fresh database.
  • "Sven" said:
    Hey. I was trying to get this CMS to work, and so far I liked it, but then I ran into this bug. Has there been any progress on this? I also experienced it after switching captchas off, but then only after posting something. This was with a fresh TangoCMS 2.6.1 installation and a fresh database.


    You can replicate this bug with captcha disabled? There has been no progress since I can't replicate it on any environment I have to hand ... if you'd be willing to provide me access so I can edit the files on your current host, I can attempt to debug this further.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion