close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

error message This page is not working when I add a database connection

Thread begun 2/07/2022 8:02 am by msmoose2400634 | Last modified 2/08/2022 10:36 am by Ray Borduin | 1259 views | 12 replies |

msmoose2400634

error message This page is not working when I add a database connection

I am using Dreamweaver 2021 I can see my static pages on the web but when I add a dynamic page (my connection to the database) I get the following error HTTP 500; This page isn’t working www.testkaren.site is currently unable to handle this request.
HTTP ERROR 500

Sign in to reply to this post

Ray BorduinWebAssist

Try adding this to the top of that page:

<?php
ini_set("display_errors",1);
?>

That may give you a better error message.

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

msmoose2400634

Okay i did put the code in at the top of the page and here is the message: Fatal error: Uncaught Error: Call to undefined function connect() in /home3/q300119/testkaren.site/index.php:4 Stack trace: #0 {main} thrown in /home3/q300119/testkaren.site/index.php on line 4

Below is line 4
<?php virtual('/Connections/MyConnection.php'); ?>

and attached is my MyConnection.php (when I upload this I get no error message)

ps: I am rewriting all of my websites (dreamweaver cs3) because my pc crashed and I can no longer get cs3)

Sign in to reply to this post

Ray BorduinWebAssist

Please attach a copy of the index.php file referenced in the error.

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

msmoose2400634

here is the index file

I have attached the index.php file

Sign in to reply to this post

Ray BorduinWebAssist

The error doesn't seem to match the file. Can I get FTP access and a URL to reproduce so I can debug the file live?

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

msmoose2400634

Oh yes, thank you!

Originally Said By: Ray Borduin
  The error doesn't seem to match the file. Can I get FTP access and a URL to reproduce so I can debug the file live?  
Sign in to reply to this post

Ray BorduinWebAssist

Can I get FTP information? I want to try debugging the live page to figure out what is going on.

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

msmoose2400634

ftp info

is this what you need for the ftp info? (see attached)

Sign in to reply to this post

Ray BorduinWebAssist

I also need the password, which isn't visible in the screenshot.

Sign in to reply to this post
Did this help? Tips are appreciated...
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...