close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Fatal error: Cannot redeclare RemoveValue() (previously declared /home/rotaryribi/public_html/webassist/email/WA_Email php:616)

Thread began 5/15/2019 4:23 am by Sweens | Last modified 5/17/2019 1:19 pm by Ray Borduin | 2272 views | 21 replies |

Sweens

Fatal error: Cannot redeclare RemoveValue() (previously declared /home/rotaryribi/public_html/webassist/email/WA_Email php:616)

Hi

I've mucked something up somewhere, as suddenly I'm getting

Fatal error: Cannot redeclare RemoveValue() (previously declared in /home/rotaryribi/public_html/webassist/email/WA_Email.php:616) in /home/rotaryribi/public_html/webassist/email/mailformatting_php.php on line 382

This is affecting EVERY update page.

I have a backup of mailformatting_php.php and have restored that, but no difference.

UPDATE; it's not the update page that's affected, it's the page to which it redirects; this has email facilities on it, which is where the problems seem to be.

This page uses pre-mysql_i universal email.

Cheers

Chris

Sign in to reply to this post

Ray BorduinWebAssist

Delete the line that references: mailformatting_php.php

That is leftover from the old version of email and is no longer used.

Sign in to reply to this post
Did this help? Tips are appreciated...

Sweens

Thanks Ray.

I've removed the line and the page opens without error - but after sending the email, I get:

Fatal error: Call to undefined function writeUEProgress() in /home/rotaryribi/public_html/adminsection/clubadmin/a-pages_Email.php on line 147 I've attached the page, if that helps.

Note, I haven't got round to updating this to the latest version yet.

Cheers
Chris

Sign in to reply to this post

Ray BorduinWebAssist

I was under the impression that the email code was updated. You will need the line you just deleted for the old version of the email. Here is an updated version you can put in your site to prevent conflicts. (attached)

Attached Files
mailformatting_php.php
Sign in to reply to this post
Did this help? Tips are appreciated...

Sweens

Hi Ray

Thanks so much - all OK gain now.

Cheers
Chris

Sign in to reply to this post

Sweens

Hi Ray

Just discovered that if you are logged in, the error message returns; logged out and the page is fine.

If I remove the mailformatting_php.php include, the page displays fine but I the email won't work.(Fatal error: Call to undefined function writeUEProgress() in /home/rotaryribi/public_html/districts/page.php on line 79)

Thanks
Chris

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

Ray BorduinWebAssist

Here is an updated version of that file. If you still get errors, post the exact error here and I'll make another update.

Attached Files
mailformatting_php.php
Sign in to reply to this post
Did this help? Tips are appreciated...

Sweens

Hi Ray

Thanks - but:

Fatal error
: Cannot redeclare RemoveValue() (previously declared in /home/rotaryribi/public_html/webassist/email/mailformatting_php.php:364) in
/home/rotaryribi/public_html/webassist/email/WA_Email.php
on line
713

Cheers
Chris

Sign in to reply to this post

Ray BorduinWebAssist

Make sure the mailformatting_php include file is below the securityassist include and WA_email include if they are on the page as well.

Sign in to reply to this post
Did this help? Tips are appreciated...

Sweens

Hi Ray

The includes are:

<?php require_once("../webassist/email/mail_php.php"); ?>
<?php require_once("../webassist/email/mailformatting_php.php"); ?>
<?php require_once('../Connections/connRIBITro_i.php'); ?>
<?php require_once('../Connections/connSTATS_i.php'); ?>
<?php require_once('../webassist/mysqli/rsobj.php'); ?>
<?php require_once('../webassist/mysqli/queryobj.php'); ?>
<?php require_once("../webassist/form_validations/wavt_scripts_php.php"); ?>
<?php require_once("../webassist/form_validations/wavt_validatedform_php.php"); ?>

I've tried moving it to be the last one, but no difference.

Cheers
Chris

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...