#1796 Web Pages 0.5.4 Cat Add Page

phpws1.x
closed-fixed
5
2007-09-11
2007-09-02
LionsCub
No

Linux host.data-web.us 2.6.9-42.0.3.ELsmp #1
Apache/1.3.33 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.3.11 FrontPage/5.0.2.2635 mod_ssl/2.8.22 OpenSSL/0.9.7a
mySQL 4.0.27

Core 1.6.0
Boost 2.1.2
Categories 2.1.8
Clipboard 1.0.0
Comments 0.6.4
Control Panel 2.1.1
Demographics 1.0.0
File Cabinet 1.2.0
Layout 2.4.1
MiniAdmin 1.1.0
Notes 0.2.0
Search 0.2.2
Users 2.4.1
Version 0.1.5
Access 0.2.3
Block 1.1.3
Blog 1.5.2
Branch 1.1.1
Breadcrumb 2.0.0
Calendar 1.5.1
Menu 1.3.1
PageSmith 1.0.0
Form Generator 3.1.0
Photo Album 1.4.2
Profiler 0.3.2
Related 0.1.4
RSSFeeds 0.2.0
Signup 1.0.0
Skeleton 0.0.1
Web Pages 0.5.4
Whodis? 0.1.1

This is a fresh 1.3.0 install. This is not the site I have been previously worrking on that one is upgraded from 1.2.0 to 1.3.0 and the webpages works fine there. When I click on the webpage icon in the control panel I get the following error.

Fatal error: Call to undefined function: decode_entities() in /home/rampantl/public_html/website/core/class/Text.php on line 54

Discussion

  • LionsCub
    LionsCub
    2007-09-02

    Logged In: YES
    user_id=1872751
    Originator: YES

    I am getting the same error when I try to go in and edit the content of a page in pagesmith. I can change the title and header but if I click on the edit image for the content I get the same error.

    Fatal error: Call to undefined function: decode_entities() in /home/rampantl/public_html/website/core/class/Text.php on line 54

     
  • LionsCub
    LionsCub
    2007-09-03

    Logged In: YES
    user_id=1872751
    Originator: YES

    I get the same error message when I attempt to create a block. I compare my two installations. Both claim to be the same version. One was an upgrade from 1.2.0 and the other a clean install of 1.3.0. Now the upgrade site works and this is what is at live 54 of text.php

    function decodeText($text) {
    if (version_compare(phpversion(), '5.0.0', '>=')) {
    return html_entity_decode($text, ENT_QUOTES, 'UTF-8');
    } else {
    return PHPWS_Text::decode_entities($text);
    }
    }

    The one that does't work has this at the same line

    function decodeText($text) {
    if (version_compare(phpversion(), '5.0.0', '>=')) {
    return html_entity_decode($text, ENT_QUOTES, 'UTF-8');
    } else {
    return $this->decode_entities($text);
    }
    }

    I coppied the whole function even though it is the return line that appears to be the problem

     
  • LionsCub
    LionsCub
    2007-09-04

    Logged In: YES
    user_id=1872751
    Originator: YES

    At a suggestion from the forums I re-downloaded 1.3.0 and installed it over the top of my current one. All works fine now. My first copy came from here at sourceforge while my second copy came from the phpWebSite site itself. May wantto check the version availableat sourceforge as it appears to have a bug in the text.php file (which I am told was in an early release of 1.3.0)

     
  • Logged In: YES
    user_id=400519
    Originator: NO

    The SF packages have been updated.
    Thanks

     
    • assigned_to: nobody --> stardog
    • status: open --> closed-fixed