[Solved] Fatal MySQ...
 
Notifications
Clear all

[Solved] Fatal MySQL error when re-initializing blocks

9 Posts
2 Users
0 Reactions
2,532 Views
 Tink
(@tink)
Posts: 11
Active Member
Topic starter
 

URL to your eFiction: www.select.wwelibrary.org
Version of eFiction: 3.2
Have you bridged eFiction, if so with what?: Nope
Version of PHP: Not sure
Version of MySQL: Still not sure  πŸ˜•  
Have you searched for your problem: Yes
If so, what terms did you try: 3.2 Upgrade, blocks, MySQL error
State the nature of your problem: When I try to re-initialize my blocks I get the following error:

A fatal MySQL error was encountered.
Query: INSERT INTO fanfictionfanfiction_blocks(`block_name`, `block_title`, `block_status`, `block_file`, `block_variables`) VALUES('info', 'Site Information', '0', 'info/info.php', '');
Error: (1054) Unknown column 'block_name' in 'field list'

I had a ton of MySQL problems when I upgraded (something with block_name and authorinfo tables as well as most of the other ones) and when I check around the forums I deleted the lines suggested in other threads for solving those problems but somehow now I have this one.  Any help getting this to go away would be greatly appreciated.

Do you have a test account for us? Yeah, Username: Test Password: Test  not sure if you can even get to the point to login seeing as it won't let me log out right now either.


 
Posted : 09/03/2007 3:52 am
(@tammy)
Posts: 2577
Member Moderator
 

Why do you have to reinitialize any blocks?


 
Posted : 09/03/2007 2:01 pm
 Tink
(@tink)
Posts: 11
Active Member
Topic starter
 

When I went to the main page of my site the blocks were there but blank.  I don't know why.  So I went into my admin panel to see what was wrong and it says "Initialize" next to each thing in the blocks menu...when I hit initialize or submit I get that error.


 
Posted : 09/03/2007 11:59 pm
(@tammy)
Posts: 2577
Member Moderator
 

Seems like you've probably deleted you blocks table somehow.  Do you know have access to and know how to use phpMyAdmin?


 
Posted : 11/03/2007 4:41 pm
 Tink
(@tink)
Posts: 11
Active Member
Topic starter
 

I do have access to phpMyAdmin and from there I am pretty much in the dark as to what to do.


 
Posted : 19/03/2007 4:49 pm
(@tammy)
Posts: 2577
Member Moderator
 

Click where it says "SQL" and enter the following in the box where it says "Run SQL Query" or something similiar. 


CREATE TABLE `TABLEPREFIXfanfiction_blocks` (
  `block_id` int(11) NOT NULL auto_increment,
  `block_name` varchar(30) NOT NULL default '',
  `block_title` varchar(150) NOT NULL default '',
  `block_file` varchar(200) NOT NULL default '',
  `block_status` tinyint(1) NOT NULL default '0',
  `block_variables` text NOT NULL,
  PRIMARY KEY  (`block_id`),
  KEY `block_name` (`block_name`)
) TYPE=MyISAM

Replace TABLEPREFIX with your table prefix.


 
Posted : 19/03/2007 5:10 pm
 Tink
(@tink)
Posts: 11
Active Member
Topic starter
 

I did that, and now *most* of the blocks work except the site info, random story, categories,login, and recent story...When I went into the options of those blocks I got the following error:

Warning: include(blocks/) [function.include]: failed to open stream: Success in sitepath on line 12

Warning: include(blocks/) [function.include]: failed to open stream: Success in sitepath on line 12

Warning: include() [function.include]: Failed opening 'blocks/' for inclusion (include_path='.:/usr/share/pear') in  sitepath on line 12


 
Posted : 27/03/2007 6:54 pm
(@tammy)
Posts: 2577
Member Moderator
 

You'll probably need to edit the blocks table in phpMyAdmin and add the file for those missing blocks. It'll follow the same pattern as the others.


blocks/categories/categories.php

etc.


 
Posted : 27/03/2007 11:33 pm
 Tink
(@tink)
Posts: 11
Active Member
Topic starter
 

Thank you so much for your help πŸ˜€


 
Posted : 10/04/2007 4:55 pm
Share: