I am taking one mistake (Eat wrong since I wrote , i apologize) I am taking one mistake (Eat wrong since I wrote , i apologize)
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

I am taking one mistake (Eat wrong since I wrote , i apologize)

Started by Turkey, March 14, 2009, 06:13:26 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Turkey

Hello the friends,

There is one problem in the picture gallery


Fatal error :

While executing query "SELECT * FROM cpg14x_config" on 0

mySQL error: Table 'berberku_galeri.cpg14x_config' doesn't exist

I don't know good english.I because apologize from this.I am doing the translation with one programme.If you write we can agree.


I am waiting for your helps...


Joachim Müller

#2
The error message should be quite self-explanatory: at least one mySQL table is missing. If your gallery used to work before and has stopped working, then restore the missing table from a backup if you have one. If you don't have a backup, create the table from scratch using a third party tool like phpMyAdmin. The sql command to create the missing table would beCREATE TABLE cpg14x_config (
  name varchar(40) NOT NULL default '',
  value varchar(255) NOT NULL default '',
  PRIMARY KEY  (name)
) TYPE=MyISAM COMMENT='Used to store the configuration options';
To populate that table with default values, perform the queryINSERT INTO cpg14x_config VALUES ('admin_activation', '0');
INSERT INTO cpg14x_config VALUES ('alb_list_thumb_size', '50');
INSERT INTO cpg14x_config VALUES ('album_list_cols', '2');
INSERT INTO cpg14x_config VALUES ('albums_per_page', '12');
INSERT INTO cpg14x_config VALUES ('allow_duplicate_emails_addr', '0');
INSERT INTO cpg14x_config VALUES ('allow_email_change', '0');
INSERT INTO cpg14x_config VALUES ('allow_memberlist', '0');
INSERT INTO cpg14x_config VALUES ('allow_private_albums', '1');
INSERT INTO cpg14x_config VALUES ('allow_unlogged_access', '1');
INSERT INTO cpg14x_config VALUES ('allow_user_registration', '0');
INSERT INTO cpg14x_config VALUES ('allowed_doc_types', 'doc/txt/rtf/pdf/xls/pps/ppt/zip/gz/mdb');
INSERT INTO cpg14x_config VALUES ('allowed_img_types', 'ALL');
INSERT INTO cpg14x_config VALUES ('allowed_mov_types', 'ALL');
INSERT INTO cpg14x_config VALUES ('allowed_snd_types', 'mp3/midi/mid/wma/wav/ogg');
INSERT INTO cpg14x_config VALUES ('auto_resize', '0');
INSERT INTO cpg14x_config VALUES ('ban_private_ip', '0');
INSERT INTO cpg14x_config VALUES ('bridge_enable', '0');
INSERT INTO cpg14x_config VALUES ('browse_batch_add', '1');
INSERT INTO cpg14x_config VALUES ('caption_in_thumbview', '1');
INSERT INTO cpg14x_config VALUES ('categories_alpha_sort', '0');
INSERT INTO cpg14x_config VALUES ('charset', 'utf-8');
INSERT INTO cpg14x_config VALUES ('clickable_keyword_search', '1');
INSERT INTO cpg14x_config VALUES ('comments_anon_pfx', 'Guest_');
INSERT INTO cpg14x_config VALUES ('comments_sort_descending', '0');
INSERT INTO cpg14x_config VALUES ('cookie_name', 'coppermine');
INSERT INTO cpg14x_config VALUES ('cookie_path', '/');
INSERT INTO cpg14x_config VALUES ('custom_footer_path', '');
INSERT INTO cpg14x_config VALUES ('custom_header_path', '');
INSERT INTO cpg14x_config VALUES ('custom_lnk_name', '');
INSERT INTO cpg14x_config VALUES ('custom_lnk_url', '');
INSERT INTO cpg14x_config VALUES ('debug_mode', '0');
INSERT INTO cpg14x_config VALUES ('debug_notice', '0');
INSERT INTO cpg14x_config VALUES ('default_dir_mode', '0755');
INSERT INTO cpg14x_config VALUES ('default_file_mode', '0644');
INSERT INTO cpg14x_config VALUES ('default_sort_order', 'na');
INSERT INTO cpg14x_config VALUES ('disable_comment_flood_protect', '0');
INSERT INTO cpg14x_config VALUES ('display_comment_count', '0');
INSERT INTO cpg14x_config VALUES ('display_faq', '0');
INSERT INTO cpg14x_config VALUES ('display_filename','0');
INSERT INTO cpg14x_config VALUES ('display_film_strip_filename', '0');
INSERT INTO cpg14x_config VALUES ('display_film_strip', '1');
INSERT INTO cpg14x_config VALUES ('display_pic_info', '0');
INSERT INTO cpg14x_config VALUES ('display_uploader', '0');
INSERT INTO cpg14x_config VALUES ('ecards_more_pic_target', 'http://coppermine.sourceforge.net/');
INSERT INTO cpg14x_config VALUES ('email_comment_notification', '0');
INSERT INTO cpg14x_config VALUES ('enable_encrypted_passwords','1');
INSERT INTO cpg14x_config VALUES ('enable_help', '2');
INSERT INTO cpg14x_config VALUES ('enable_plugins', '1');
INSERT INTO cpg14x_config VALUES ('enable_smilies', '1');
INSERT INTO cpg14x_config VALUES ('enable_zipdownload', '1');
INSERT INTO cpg14x_config VALUES ('filter_bad_words', '0');
INSERT INTO cpg14x_config VALUES ('first_level', '1');
INSERT INTO cpg14x_config VALUES ('forbiden_fname_char', '$/\\\\:*?"\'<>|` &');
INSERT INTO cpg14x_config VALUES ('fullpath', 'albums/');
INSERT INTO cpg14x_config VALUES ('gallery_admin_email', 'you@somewhere.com');
INSERT INTO cpg14x_config VALUES ('gallery_description', 'Your online photo album');
INSERT INTO cpg14x_config VALUES ('gallery_name', 'Coppermine Photo Gallery');
INSERT INTO cpg14x_config VALUES ('hit_details', '0');
INSERT INTO cpg14x_config VALUES ('home_target', 'index.php');
INSERT INTO cpg14x_config VALUES ('im_options', '-antialias');
INSERT INTO cpg14x_config VALUES ('impath', '');
INSERT INTO cpg14x_config VALUES ('jpeg_qual', '80');
INSERT INTO cpg14x_config VALUES ('keep_votes_time', '30');
INSERT INTO cpg14x_config VALUES ('lang', 'english');
INSERT INTO cpg14x_config VALUES ('language_fallback', '1');
INSERT INTO cpg14x_config VALUES ('language_flags', '0');
INSERT INTO cpg14x_config VALUES ('language_list', '0');
INSERT INTO cpg14x_config VALUES ('language_reset', '1');
INSERT INTO cpg14x_config VALUES ('link_pic_count', '0');
INSERT INTO cpg14x_config VALUES ('log_ecards', '0');
INSERT INTO cpg14x_config VALUES ('log_mode', '0');
INSERT INTO cpg14x_config VALUES ('login_expiry', '10');
INSERT INTO cpg14x_config VALUES ('login_threshold', '5');
INSERT INTO cpg14x_config VALUES ('main_page_layout', 'breadcrumb/catlist/alblist/random,2/lastup,2');
INSERT INTO cpg14x_config VALUES ('main_table_width', '100%');
INSERT INTO cpg14x_config VALUES ('make_intermediate', '1');
INSERT INTO cpg14x_config VALUES ('max_com_lines', '10');
INSERT INTO cpg14x_config VALUES ('max_com_size', '512');
INSERT INTO cpg14x_config VALUES ('max_com_wlength', '38');
INSERT INTO cpg14x_config VALUES ('max_film_strip_items', '5');
INSERT INTO cpg14x_config VALUES ('max_img_desc_length', '512');
INSERT INTO cpg14x_config VALUES ('max_tabs', '12');
INSERT INTO cpg14x_config VALUES ('max_upl_size', '1024');
INSERT INTO cpg14x_config VALUES ('max_upl_width_height', '2048');
INSERT INTO cpg14x_config VALUES ('media_autostart', '1');
INSERT INTO cpg14x_config VALUES ('min_votes_for_rating', '1');
INSERT INTO cpg14x_config VALUES ('normal_pfx', 'normal_');
INSERT INTO cpg14x_config VALUES ('offline', '0');
INSERT INTO cpg14x_config VALUES ('picture_table_width', '600');
INSERT INTO cpg14x_config VALUES ('picture_width', '400');
INSERT INTO cpg14x_config VALUES ('read_exif_data', '0');
INSERT INTO cpg14x_config VALUES ('read_iptc_data', '0');
INSERT INTO cpg14x_config VALUES ('reg_notify_admin_email', '0');
INSERT INTO cpg14x_config VALUES ('reg_requires_valid_email', '1');
INSERT INTO cpg14x_config VALUES ('report_post', '0');
INSERT INTO cpg14x_config VALUES ('show_bbcode_help', '1');
INSERT INTO cpg14x_config VALUES ('show_private', '0');
INSERT INTO cpg14x_config VALUES ('show_which_exif', |0|0|0|0|0|0|0|0|1|0|1|1|0|0|0|0|0|0|0|0|0|0|0|1|0|0|0|1|0|0|0|1|1|0|0|0|0|1|0|0|0|1|0|0|1|1|0|0|0|0|0|1|0|1|1');
INSERT INTO cpg14x_config VALUES ('slideshow_interval', '5000');
INSERT INTO cpg14x_config VALUES ('smtp_host', '');
INSERT INTO cpg14x_config VALUES ('smtp_password', '');
INSERT INTO cpg14x_config VALUES ('smtp_username', '');
INSERT INTO cpg14x_config VALUES ('subcat_level', '2');
INSERT INTO cpg14x_config VALUES ('theme_list', '0');
INSERT INTO cpg14x_config VALUES ('theme_reset', '1');
INSERT INTO cpg14x_config VALUES ('theme', 'core');
INSERT INTO cpg14x_config VALUES ('thumb_method', 'im');
INSERT INTO cpg14x_config VALUES ('thumb_pfx', 'thumb_');
INSERT INTO cpg14x_config VALUES ('thumb_use', 'any');
INSERT INTO cpg14x_config VALUES ('thumb_width', '100');
INSERT INTO cpg14x_config VALUES ('thumbcols', '4');
INSERT INTO cpg14x_config VALUES ('thumbrows', '3');
INSERT INTO cpg14x_config VALUES ('time_offset', '0');
INSERT INTO cpg14x_config VALUES ('upl_notify_admin_email', '0');
INSERT INTO cpg14x_config VALUES ('user_field1_name', '');
INSERT INTO cpg14x_config VALUES ('user_field2_name', '');
INSERT INTO cpg14x_config VALUES ('user_field3_name', '');
INSERT INTO cpg14x_config VALUES ('user_field4_name', '');
INSERT INTO cpg14x_config VALUES ('user_profile1_name', 'Location');
INSERT INTO cpg14x_config VALUES ('user_profile2_name', 'Interests');
INSERT INTO cpg14x_config VALUES ('user_profile3_name', 'Website');
INSERT INTO cpg14x_config VALUES ('user_profile4_name', 'Occupation');
INSERT INTO cpg14x_config VALUES ('user_profile5_name', '');
INSERT INTO cpg14x_config VALUES ('user_profile6_name', 'Biography');
INSERT INTO cpg14x_config VALUES ('userpics', 'userpics/');
INSERT INTO cpg14x_config VALUES ('users_can_edit_pics', '0');
INSERT INTO cpg14x_config VALUES ('vanity_block','1');
INSERT INTO cpg14x_config VALUES ('views_in_thumbview', '1');
INSERT INTO cpg14x_config VALUES ('vote_details', '0');
If you have no idea how to accomplish this, ask your webhost for support.

As Fabricio suggested: respect board rules in the future.