close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Cannot redeclare class WA_MySQLi_Query

Thread began 10/06/2014 4:03 pm by phil287111 | Last modified 11/03/2014 7:23 pm by Jason Byrnes | 785 views | 9 replies |

phil287111

Cannot redeclare class WA_MySQLi_Query

I'm getting an error message after moving my code to a different GoDaddy server. The error message is :Fatal error: Cannot redeclare class WA_MySQLi_Query /home/..../webassist/mysqli/queryobj php line 214. I'm using MySQLi, eCart 6 and Dreamweaver CS6. The includes are:
<?php require_once('../Connections/mysqliConn.php'); ?>
<?php require_once('../webassist/mysqli/rsobj.php'); ?>
<?php require_once('../webassist/mysqli/queryobj.php'); ?>

Is this a server issue with MySQLi?

Sign in to reply to this post

Jason ByrnesWebAssist

I'll need to troubleshoot directly, see the private message section.

Sign in to reply to this post

phil287111

See private message

Sign in to reply to this post

Jason ByrnesWebAssist

the webassist/mysqli/queryobj.php file had become corrupted, i updated it with a new one to fix the problem.

Sign in to reply to this post

phil287111

I'm still getting the same error on the same file:
http://www.iamswimwear.com/db-admin/category_cntl.php

Do I have to do something? I don't think I overwrote the file.

Sign in to reply to this post

Jason ByrnesWebAssist

Looking at the file on your server, the same corruption is back

i replaced it with a new uncorrupted version, and I am also attaching the file here.

Attached Files
queryobj.php
Sign in to reply to this post

dbaltes2152865

Writing file twice

I had the same error, and noticed the code in queryobj.php was written twice. I deleted the second part and it works. I am not sure why it creates the corrupted version. Should I reinstall - MySQLi extension? or others?

Sign in to reply to this post

Jason ByrnesWebAssist

You can try reinstalling the MySQLi extension, I have not been able to reproduce this happening, so I don't know what the cause of it is.

Sign in to reply to this post

dbaltes2152865

You are correct - thank you. I checked my versions, updated all (DWCS6) and all is well. Thank you.

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...