phpWebLog - web news management with adolescent sexist humor
find
story index | search | archive | submit story | downloads | stats | contact
Topics
  • General (909)
  • Announcements (20)
  • Development (518)
  • Mods & Hacks (32)


  • phpWebLog
  • Latest Release - 0.5.3 (BETA)
  • Latest Stable - 0.5.2
  • ChangeLog
  • TODO / Roadmap
  • BUGS

    CVS WEB

  • New XL fork 0.5.2
  • Unstable branch 0.5.3

  • For development discussions and for general support, join the phpWebLog mailing list

    phpWebLog needs active developers to help fix bugs. If you are interested, send me your SourceForge login information for CVS access.


    Last 5 Comments
  • Where can I modify the style of bottom navigation? (Ken Farmer)
  • Great News for PHP Programmers.... (Nekrataal)
  • Unable to update URL block content. (Nekrataal)
  • Comment management (Nekrataal)
  • phpweblog woes (Nekrataal)


  • Error when previewing with 0.4.2? - General
    Posted by A. Eriksson (Friday October 20 2000 @ 04:37AM EDT) views: 114
    I´m getting following error when trying to preview a post:

    Warning: Illegal string index in include/common.inc.php on line 103

    This "error" seems to be located in F_genSummary:


    function F_genSummary($doo) {
    global $CONF;
    line 103 if ($doo[$CONF["SummaryLength"]] != " ") {
    $dowords = 1;
    }
    if ($dowords) {
    $words = explode(" ", $doo);
    $stop = 0;
    $tmpcnt = 0;
    $wordcount = count($words);
    while ($stop == 0) {
    $summ = $summ . " " . $words[$tmpcnt];
    if (strlen($summ) > $CONF["SummaryLength"]) {
    $stop = 1;
    } elseif (count($words)

    What could be wrong? The last (0.4.1) F_genSummary worked fine...

    < Polls | Print eval($) >

    By A. Eriksson (Friday October 20 2000 @ 04:03PM EDT)
    I meant the last 0.4.0 of course....
    [ reply | parent ]
    By jason (Friday October 20 2000 @ 05:37PM EDT)
    F_genSummary was added in 0.4.1. Apparently not all versions of php like what I did here, so try this for a fix:

    replace:
    if ($doo[$CONF["SummaryLength"]] != " ") {

    with:
    $foo = $CONF["SummaryLength"];
    if ($doo[$foo] != " ") {

    This should work, and is probablya better way of doing this.
    [ reply | parent ]
    By Mark (Tuesday January 02 2001 @ 07:10PM EST)
    I made the changes above to my install of 0.4.2 and it still gives me an error. I noted that when I put a character in the Summary field I did not get an error.

    Any ideas??
    [ reply | parent ]
    By Mark (Tuesday January 02 2001 @ 07:20PM EST)
    $foo = $CONF["SummaryLength"];
    if ($doo[$foo] != " ") {

    should be

    $foo = $CONF["SummaryLength"];
    if ($doo[$doo] != " ") {
    [ reply | parent ]
    Post a Comment
    Name:
    Email:
    URL:
      Remember my information (uses cookies)
      I would rather be anonymous
    Comment:
    * Your email will not be made public.
    Save As:
    SourceForge
    SourceForge is providing us a mailing list , documentation and a CVS tree.

    SourceForge Logo


    PHP.net
  • PHP Manual CHM Edition - 12th build
  • International PHP Conference 2003 program online
  • Server Central Donates Server
  • European Open Source Development Threatened!
  • php{con west is announced
  • PHP 4.3.3 released!
  • Active Awards 2003 Winners
  • PHP.net news history
  • Select mirror for redirection
  • PHP Magazine web site now with daily news

  • PHPBuilder



    phpWebLog: A PHP News and Content Management System
    Copyright (C) 2000-2002, Jason Hines / Eye Integrated Communications