Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

FOP2 Community Forum

  1. Home
  2. Support
  3. Visual Phonebook - An error has occured

Visual Phonebook - An error has occured

Scheduled Pinned Locked Moved Support
2 Posts 2 Posters 42 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F
    F
    FreshConnexions
    wrote on last edited by
    #1

    Hi,

    I have installed fop2 and configured as below:

    cd /var/www/html/fop2
    mysqladmin -u root -peLaStIx.2oo7 create fop2
    mysql -u root -peLaStIx.2oo7 < mysql.db
    mysql -u root -peLaStIx.2oo7 -e
    "grant all privileges on fop2.* to fop2@'localhost'
    identified by 'myPassw0rd'"

    edit: /var/www/html/fop2/config.php
    <?
    // Database connection details
    $DBHOST = 'localhost';
    $DBNAME = 'fop2';
    $DBUSER = 'fop2';
    $DBPASS = 'myPassw0rd';

    Whenever i open visual phonebook or try and add an entry i get a message saying an error has occured

    Runing PHP 5.2 and sql 5.0

    if i do **mysql -u root -pXXXXX fop2 -e "desc visual_phonebook" ** i get;

    [root@elastix ~]# mysql -u root -peLaStIx.2oo7 fop2 -e "desc visual_phonebook"
    +-----------+------------------+------+-----+---------+----------------+
    | Field | Type | Null | Key | Default | Extra |
    +-----------+------------------+------+-----+---------+----------------+
    | id | int(11) | NO | PRI | NULL | auto_increment |
    | firstname | varchar(50) | YES | MUL | NULL | |
    | lastname | varchar(50) | YES | | NULL | |
    | company | varchar(100) | YES | | NULL | |
    | phone1 | varchar(50) | YES | | NULL | |
    | phone2 | varchar(50) | YES | | NULL | |
    | owner | varchar(50) | YES | | | |
    | private | enum('yes','no') | YES | | no | |
    | picture | varchar(100) | YES | | NULL | |
    | context | varchar(150) | YES | | | |
    +-----------+------------------+------+-----+---------+----------------+

    Any ideas where i have gone wrong.

    Thanks Dan

    1 Reply Last reply
    0
    • N
      N
      nicolas
      wrote on last edited by
      #2

      So you CAN open the phonebook, it appears with no records, and when you try to add it gives you an error. Can you write that error exactly? There is one command that lackats the "fop2" database but you have the table created as you have shown..

      1 Reply Last reply
      0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      Powered by NodeBB Contributors
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups