phpWebLog

find
story index | search | archive | submit story | downloads | stats | contact
Topics
  • General (894)
  • Announcements (20)
  • Development (516)
  • Mods & Hacks (28)


  • 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
  • Chaging the Time Zone in phpWebLog (Beth)
  • IP blocking? (Anonymous)
  • Need help (Razor)
  • Need help (Razor)
  • Chaging the Time Zone in phpWebLog (FranKi)


  • MySQL Errors in Latest 0.5.0 Unstable
    Posted under Development by Kenji on Wednesday February 14 2001 @ 09:23PM EST

    Development Any ideas about what would cause the following errors. Everything is setup properly - running on PHP4 and BSDI.

    Warning: 0 is not a MySQL result index in include/common.inc.php on line 704

    Warning: fopen("/usr/local/etc/httpd/www/phpweblog/backend/layouts/.xlay","r") - No such file or directory in /usr/local/etc/httpd/www/phpweblog/include/layout.inc.php on line 344

    Warning: Cannot add header information - headers already sent in include/common.inc.php on line 384

    Warning: 0 is not a MySQL result index in include/common.inc.php on line 98
    1

    Warning: 0 is not a MySQL result index in /usr/local/etc/httpd/www/phpweblog/include/blocks.inc.php on line 46

    Warning: 0 is not a MySQL result index in include/common.inc.php on line 98

    Warning: 0 is not a MySQL result index in /usr/local/etc/httpd/www/phpweblog/stories.php on line 88

    Warning: 0 is not a MySQL result index in include/common.inc.php on line 159
    1
    Warning: 0 is not a MySQL result index in /usr/local/etc/httpd/www/phpweblog/include/blocks.inc.php on line 46

    Warning: 0 is not a MySQL result index in include/common.inc.php on line 98

    1




    < Stats.php | Implementing Users, Permissions, and Groups >

    mochaexpress writes on Thursday February 15 2001 @ 12:45PM EST: [ reply | parent ]
    get to the mysql prompt and do:

    select * from T_Config;

    what do you get? most of the time, it's the Layout. If for some reason when you export your layout and something weird happend and the file got corrupted or if you edit it manually and made an error in there.

    try:

    UPDATE T_Config SET Value='blurb' where Name='Layout';

    and load the page again.
    kenji writes on Thursday February 15 2001 @ 04:55PM EST: [ reply | parent ]
    Thanks for the info. I actually figured out what the problem was. I do development sometimes on my laptop which is running Windows 2000 Pro. Well, I dumped the database using mysqldump and proceeded to then restore the database on another server which happens to be running FreeBSD 4.2. It seems that the windows version of the MySQL mysqldump command has the nasty habit of writing all the table names in lowercase (i.e., t_links, t_config, etc.) which causes the above errors. After I hand edited all the table names to their proper cases, everything worked fine. So if anybody is doing development on a windows machine, you should watch out for this if you move databases to other servers using this backup method. The windows version of MySQL is not case sensitive. Go figure. I have to install Linux or FreeBSD on my laptop. If anybody is interested the version I use of MySQL is 3.23.28-gamma and the mysqldump version is 8.11.
    mochaexpress writes on Thursday February 15 2001 @ 05:33PM EST: [ reply | parent ]
    i encountered the same thing but while doing my Database Independent conversions. quotes matter, and also case sensitivity. i just put everything in lowercase.. and that was a bundle of headaches too. but all is good now.
    xdaniel writes on Sunday February 18 2001 @ 01:50AM EST: [ reply | parent ]
    Hi, I had the same problem transferring from Win ME to Linux.
    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
  • Automatic Mirror Select
  • PHP 4.3.2RC4 Released
  • PHP 4.3.2RC3 Released
  • ActiveState Active Awards
  • Country Detection
  • PHP 4.3.2RC2 Released
  • My PHP.net
  • PHP 4.3.2RC1 Released
  • Grant Program
  • Set your own language preference

  • PHPBuilder
  • The Benefits of Using Objects with Databases
  • Interfacing with COM objects under Windows
  • Dynamic XML Conversion Using the SAX Parser
  • Arrays 101
  • Introduction to PHP5
  • Installing PHP-GTK on Linux
  • Installing PHP under BadBlue Web Server
  • Installing PHP under Xitami
  • A Test To See If You Write Sloppy Software
  • Switchbox


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