Title: petejs's Replies | WordPress.org

---

# petejs

  [  ](https://wordpress.org/support/users/petejs/)

 *   [Profile](https://wordpress.org/support/users/petejs/)
 *   [Topics Started](https://wordpress.org/support/users/petejs/topics/)
 *   [Replies Created](https://wordpress.org/support/users/petejs/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/petejs/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/petejs/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/petejs/engagements/)
 *   [Favorites](https://wordpress.org/support/users/petejs/favorites/)

 Search replies:

## Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [WP Switching pages vs refresh](https://wordpress.org/support/topic/wp-switching-pages-vs-refresh/)
 *  Thread Starter [petejs](https://wordpress.org/support/users/petejs/)
 * (@petejs)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/wp-switching-pages-vs-refresh/#post-9921704)
 * I received an update to wpcloudy an that fixed the issue.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [/wp-admin: Sorry, you are not allowed to access this page.](https://wordpress.org/support/topic/wp-admin-sorry-you-are-not-allowed-to-access-this-page-1/)
 *  [petejs](https://wordpress.org/support/users/petejs/)
 * (@petejs)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/wp-admin-sorry-you-are-not-allowed-to-access-this-page-1/#post-8173054)
 * My goal was to upgrade WP and theme, as well as convert server to SSL.
    To prepare
   for all that I decided to rename database name as well as change prefix. So I
   tried too much at one go. :>)
 * Next time I would do following:
    0. decide on another database name and user.
   User with correct permissions and a crazy weird password (for protection). create
   DB and user. 1. Install Wordfence assistant plugin. 2. Disable and empty wordfence
   cache or other caching plugins (save .htaccess so you can replant it). THEN disable
   wordfence. Test test you still can access WP. 3. of course do backups, I would
   take a snapshot as well as mysql export file(and a copy of mysql file). 4. change
   WP settings DB NAME, DB USER and Password to new settings. 5. import mysql file
   into new database. 6. empty cache in your browser ( I had so many weird things,
   not all for them with wordfence. (By the way I think wordfence is a solid product,
   I am really happy with it). 7. I did not try to change prefix, somehow that made
   it more complex so I cannot give you any advice on that, in my case changing 
   database name is actually quite sufficient. 8. I hade couple of times some weird
   redirects and locking, must have been WP (?) because at that time wordfence was
   already disabled. 9. if new settings work, enable wordfence, test, enable caching.
 * I hope this helps.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [/wp-admin: Sorry, you are not allowed to access this page.](https://wordpress.org/support/topic/wp-admin-sorry-you-are-not-allowed-to-access-this-page-1/)
 *  [petejs](https://wordpress.org/support/users/petejs/)
 * (@petejs)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/wp-admin-sorry-you-are-not-allowed-to-access-this-page-1/#post-8149010)
 * Sorry, I made a change to table prefix that messed up my test. so disregard my‘
   issues’
    :<(
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [/wp-admin: Sorry, you are not allowed to access this page.](https://wordpress.org/support/topic/wp-admin-sorry-you-are-not-allowed-to-access-this-page-1/)
 *  [petejs](https://wordpress.org/support/users/petejs/)
 * (@petejs)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/wp-admin-sorry-you-are-not-allowed-to-access-this-page-1/#post-8148868)
 * Actually I think my problem has to do with following:
    I had 4.6 version of php’s
   and loaded database from earlier version.
 * First try to go to wp=admin I got a message that DB needs updating. SO I was 
   able to log in but I cannot access admin console at all.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [/wp-admin: Sorry, you are not allowed to access this page.](https://wordpress.org/support/topic/wp-admin-sorry-you-are-not-allowed-to-access-this-page-1/)
 *  [petejs](https://wordpress.org/support/users/petejs/)
 * (@petejs)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/wp-admin-sorry-you-are-not-allowed-to-access-this-page-1/#post-8148774)
 * I have the same issue:
    I can access site as user but not login as wp-admin, 
   same error message.(Sorry, you are not allowed to access this page)
 * I disabled wordfence by renaming plugin name, after that I can login but I can
   only get to about.php (welcome to 4.6)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[CSS & JavaScript Toolbox] Database error with cjtoolbox plugin](https://wordpress.org/support/topic/database-error-with-cjtoolbox-plugin/)
 *  Thread Starter [petejs](https://wordpress.org/support/users/petejs/)
 * (@petejs)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/database-error-with-cjtoolbox-plugin/#post-7426623)
 * Thanks Damian.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[CSS & JavaScript Toolbox] Database error with cjtoolbox plugin](https://wordpress.org/support/topic/database-error-with-cjtoolbox-plugin/)
 *  Thread Starter [petejs](https://wordpress.org/support/users/petejs/)
 * (@petejs)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/database-error-with-cjtoolbox-plugin/#post-7426615)
 * Thanks Damian.
 * One quick question, can I delete all records in wp_cjtoolbox* tables and reenter
   my scripts without messing things up?
    I think/hope that would solve the problem,
   maybe I broke something while developing.
 * brgds
    -peter
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[CSS & JavaScript Toolbox] Database error with cjtoolbox plugin](https://wordpress.org/support/topic/database-error-with-cjtoolbox-plugin/)
 *  Thread Starter [petejs](https://wordpress.org/support/users/petejs/)
 * (@petejs)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/database-error-with-cjtoolbox-plugin/#post-7426445)
 * I looked at my scripts without any changes made but got this message in APACHE
   error.log. This might point to the problem I have?
 * [Sun May 29 13:32:46.340604 2016] [:error] [pid 8013] [client ….] WordPress database
   error Duplicate entry ‘0’ for key ‘PRIMARY’
    for query INSERT INTO `wp_posts`(`
   post_author`, `post_date`, `post_date_gmt`, `post_content`, `post_content_filtered`,`
   post_title`, `post_exce rpt`,`post_status`,`post_type`,`comment_status`,`ping_status`,`
   post_password`,`post_name`,`to_ping`,`pinged`,`post_modified`,`post_modi fied_gmt`,`
   post_parent`,`menu_order`,`post_mime_type`,`guid`) VALUES (7, ‘2016-05-29 14:
   32:46’, ‘0000-00-00 00:00:00’, ”, ”, ‘Auto Draft’, ”, ‘auto-draft’, ‘post’, ‘
   closed’, ‘closed’, ”, ”, ”, ”, ‘2016-05-29 14:32:46’, ‘0000-00-00 00:00:00’, 
   0, 0, ”, ”) made by wp_dashboard, d o_meta_boxes, call_user_func, wp_dashboard_quick_press,
   get_default_post_to_edit, wp_insert_post, referer: [http://www.MYWEBSITE.com/wp-admin/admin.php?page=cjtoolbox](http://www.MYWEBSITE.com/wp-admin/admin.php?page=cjtoolbox)

Viewing 8 replies - 1 through 8 (of 8 total)