Previous Thread
Next Thread
Print Thread
Hop To
Page 1 of 2 1 2
Joined: Jun 2006
Posts: 626
Addict
Addict
Joined: Jun 2006
Posts: 626
What can I do to correct this?

I am using 7.5.8

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Smarty has a deprecated constructor in /home4/maritim5/public_html/forums/libs/smarty/Smarty.class.php on line 64

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; bbcode has a deprecated constructor in /home4/maritim5/public_html/forums/libs/bbcode.inc.php on line 5

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; mailer has a deprecated constructor in /home4/maritim5/public_html/forums/libs/mailer.inc.php on line 7

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home4/maritim5/public_html/forums/libs/mysql.inc.php:22 Stack trace: #0 /home4/maritim5/public_html/forums/libs/ubbthreads.inc.php(88): sql->connect() #1 /home4/maritim5/public_html/forums/ubbthreads.php(41): require_once('/home4/maritim5...') #2 {main} thrown in /home4/maritim5/public_html/forums/libs/mysql.inc.php on line 22

Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
If I had to guess.
It would be your host upgraded your php version to 7.XX
Your version of ubb is not compatible.
I recall that php 5.6 is pretty much the highest you can go. with ubb7.5.8

Last edited by Ruben; 06/20/2019 1:31 PM.

Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
Originally Posted by Daryl Fawcett
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home4/maritim5/public_html/forums/libs/mysql.inc.php:22 Stack trace: #0 /home4/maritim5/public_html/forums/libs/ubbthreads.inc.php(88): sql->connect() #1 /home4/maritim5/public_html/forums/ubbthreads.php(41): require_once('/home4/maritim5...') #2 {main} thrown in /home4/maritim5/public_html/forums/libs/mysql.inc.php on line 22
Its quite simple really; someone upgraded PHP on the server. PHP7 does not have the mysql_connect function (as the mysql_ functions have been depreciated and replaced by their mysqli_ counterparts), and any scripts that rely on it will present this error (anything coded prior to PHP7 without MySQLi support); you'll need to either roll PHP back to PHP5 or upgrade to UBB.threads 7.7.x.

You'll probably also want to check any PHP scripts installed on your server as there are likely other scripts showing the same behavior.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
Sorry that you had to wake up and find your site is now throwing errors. Its never fun when that happens.

Good news though, you can easily upgrade to the current version of UBB.threads, which fully supports PHP 7 and MySQLi.

Below are some versioning explanations you may find helpful:

The versions of PHP which UBB.threads 7.5.8 is compatible with, are PHP 5.2 - PHP 5.6.
The current version of UBB.threads is 7.7.1, and is compatible with PHP 5.4 - PHP 7.3.
https://www.php.net/manual/en/migration70.incompatible.php

PHP 4 can connect to a MySQL database using the MySQL extension.
PHP 5 can connect to a MySQL database using either MySQL or MySQLi extension.
PHP 7 can connect to a MySQL database using the MySQLi extension (the "i" stands for improved)
https://phppot.com/php/mysql-vs-mysqli-in-php/

UBB.threads 7.0.0 to UBB.threads 7.6.2 uses the MySQL extension.
UBB.threads 7.7.0 and newer uses the MySQLi extension.

--

When your host emails you that they are upgrading critical services, telling you to upgrade your hosted scripts to compatible versions; at the risk of any down time, its highly advised that you find out what that means, and resolve any potential issues before their date.

An example of what that email may have looked like:
Quote
[WEBHOST] is dedicated to providing you with the best resources for you and your website. So, we’re excited to announce that we will be upgrading all of our servers to newer versions of Apache and providing newer versions PHP (including PHP 7.2 & 7.3). The upgraded versions provide better data processing, which can improve the performance and speed of your website.

When will maintenance begin? We will start the maintenance process on [DATE] and will continually monitor your website. We anticipate less than 5 minutes of slowness/downtime during the upgrade itself.

We recommend updating all of your web installations to the latest version--including WordPress, Joomla, Drupal or any other Content Management Tool that you may use--as soon as possible. For custom or unique PHP code, please see the PHP Migration Guide.

Last edited by isaac; 06/20/2019 3:08 PM. Reason: fixed typos

Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Jun 2006
Posts: 626
Addict
Addict
Joined: Jun 2006
Posts: 626
I did receive that notice, but didn't realize that it would affect version 7.5.8.

Now that I know, I guess I had better set about doing the upgrade, which when done, I assume will resolve these issues???

Joined: Jun 2006
Posts: 626
Addict
Addict
Joined: Jun 2006
Posts: 626
In other words, I should have been paying closer attention to that notice.

Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
yes,
You can request your host to revert your php version back to php5.6 if they will o and or upgrade ubb to the current version.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jun 2006
Posts: 626
Addict
Addict
Joined: Jun 2006
Posts: 626
Can I upload directly from 7.5.8 to 7.7.1 or should I upload to a prior version first???

I guess I should also ask if I need to upload those files manually, or is there an upgrade.php that will do this for me???

Last edited by Daryl Fawcett; 06/20/2019 4:45 PM.
Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
You should be able to upload directly without issue if you have member access.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
Yes, you'd simply follow the standard upgrade instructions; the mysqli_ functions are used by default in 7.7.0+, no mysql_ functions exist in the 7.7 series.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jun 2006
Posts: 626
Addict
Addict
Joined: Jun 2006
Posts: 626
Thank you.

I now have the 7.7.1 zip files in my computer and will take a look at them tomorrow, as it is past my bedtime where I am.

Joined: Jun 2006
Posts: 626
Addict
Addict
Joined: Jun 2006
Posts: 626
I uploaded the 7.7.1 files and changed the permissions for all of the directories and files as stated, but when I try to use the upgrade.php file I receive the following error:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@maritime-sda-online.com to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

Joined: Jun 2006
Posts: 626
Addict
Addict
Joined: Jun 2006
Posts: 626
Is it a permissions problem???

I have the Install Directory set as 777 and the php and tmpl files also set at 777, but were previously at 666 but still didn't work, which is why I changed them all to 777.

Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
HTTP 500 - Internal Server Error
https://blog.hubspot.com/marketing/http-500-internal-server-error

Can you run YOURSITE.com/forums/install/phpinfo.php ?

If not, a general guess is that your server may not be able to properly run PHP files.

Contact your webhost. Your server may be incorrectly configured.


Last edited by isaac; 06/23/2019 10:53 AM. Reason: reordered lines

Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Jun 2006
Posts: 626
Addict
Addict
Joined: Jun 2006
Posts: 626
Do you mean http://mysite,com/forums/install/phpinfo.php ?

If so, it shows the following:

Not Found

The requested URL /forums/install/phpinfo,php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Last edited by Ruben; 06/23/2019 1:10 PM. Reason: edited url to keep private
Joined: Jun 2006
Posts: 626
Addict
Addict
Joined: Jun 2006
Posts: 626
I am going to change the 777 permissions one at a time to 755 to see if that makes any difference.

Joined: Jun 2006
Posts: 626
Addict
Addict
Joined: Jun 2006
Posts: 626
I changed the permissions of the forums directory that contains all the 7.7.1 files and it made a difference.

Check it out at http://mysite.com/forums/ubbthreads.php?ubb=cfrm

Will now try the upgrade.php file again.

Last edited by Ruben; 06/23/2019 1:11 PM. Reason: edited url to keep private
Joined: Jun 2006
Posts: 626
Addict
Addict
Joined: Jun 2006
Posts: 626
I am still getting the following error when using http:/mysite.com/forums/install/upgrade.php

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@maritime-sda-online.com to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

Last edited by Ruben; 06/23/2019 1:12 PM. Reason: edited url to keep private
Joined: Jun 2006
Posts: 626
Addict
Addict
Joined: Jun 2006
Posts: 626
Sounds like I may need to do the same permissions change in the install directory.

Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
If you are upgrading then there should not have been a need to change file/folder permissions.
You would have just overwrote the files when you uploaded them.
Normally the file permissions would not be changed.
But some host do not allow 777 and you would need to change it to 755.
And even though you will navigate to the install folder it would be upgrade.php you run not install.php.

So if you got lost on file permissions follow the install guide
https://www.ubbcentral.com/doc_install.php
Then if needed use 755 where it indicates 777.

Last edited by Ruben; 06/23/2019 1:28 PM. Reason: Added comment

Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jun 2006
Posts: 626
Addict
Addict
Joined: Jun 2006
Posts: 626
I am in the process of changing all the directory permissions to 755 and the files within to 644.

I am actually able to access the datebase including the forums and threads, but can't do anything else besides that.

Joined: Jun 2006
Posts: 626
Addict
Addict
Joined: Jun 2006
Posts: 626
I was trying to use the upgrade.php file that is in the install directory.

I am aware that I shouldn't be using the install.php file.

Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
Read the notes on the install guide first before you get crazy with permission changes.

and of course you would follow the upgrade guide for upgrading and copying the files.

Last edited by Ruben; 06/23/2019 12:48 PM. Reason: added comment

Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
Cpanel will not allow scripts to execute under a directory with 777 permissions for "security".

Under cpanel your install and admin directories should be 755, the rest should follow standard install instructions. I'm not sure the setting offhand (still in the middle of the forest) but this is a setting that generally only happens in cpanel instances (I'm sure you could find it in the search).


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
Giz,
The install guide covers the file/folder permissions and exceptions. perfectly.
But it has no mention of the install folder.

Last edited by Ruben; 06/23/2019 12:56 PM.

Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jun 2006
Posts: 626
Addict
Addict
Joined: Jun 2006
Posts: 626
The Install Guide said to use 777 for directories and 666 for files, but said later below that it may need to be 755 and 644 respectively instead of 777 and 666.

I have now changed the permissions to 755 and 644, but upgrade.php still isn't working yet.

Joined: Jun 2006
Posts: 626
Addict
Addict
Joined: Jun 2006
Posts: 626
Originally Posted by Ruben
Giz,
The install guide covers the file/folder permissions and exceptions. perfectly.
But it has no mention of the install folder.
I noticed that, but will now change the files to 644 to see if that makes a difference, as I forgot to do that.

Joined: Jun 2006
Posts: 626
Addict
Addict
Joined: Jun 2006
Posts: 626
Originally Posted by Daryl Fawcett
Originally Posted by Ruben
Giz,
The install guide covers the file/folder permissions and exceptions. perfectly.
But it has no mention of the install folder.
I noticed that, but will now change the files to 644 to see if that makes a difference, as I forgot to do that.
That did make a difference and am now able to use the upgrade.php file. smile

Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
Okay I think you have it now.
phpinfo is running
after you are done delete the install contents.

And do you want me to edit the urls you posted so nobody can find the install folder and hose you up.

You know what I am going to edit them any way.
somebody could jump in while you are doing the upgrade.

Last edited by Ruben; 06/23/2019 1:17 PM. Reason: added comment

Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
Originally Posted by Daryl Fawcett
Originally Posted by Ruben
Giz,
The install guide covers the file/folder permissions and exceptions. perfectly.
But it has no mention of the install folder.
I noticed that, but will now change the files to 644 to see if that makes a difference, as I forgot to do that.
Like I said, it literally only affects cpanel, and is a setting within whm to allow this behavior like every other system. BUT the install directory itself needs no special permissions in any case.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jun 2006
Posts: 626
Addict
Addict
Joined: Jun 2006
Posts: 626
Shouldn't these have been included in the 7.7.1 files???

The following files do not exist in your install (Make sure these are uploaded):
images/general/ventura/all.gif
images/general/ventura/announce.gif
images/general/ventura/ascend.gif
images/general/ventura/birthday.gif
images/general/ventura/blank.gif
images/general/ventura/calevent.gif
images/general/ventura/descend.gif
images/general/ventura/editpost.gif
images/general/ventura/email.gif
images/general/ventura/favicon.ico
images/general/ventura/file.gif
images/general/ventura/gotonew.gif
images/general/ventura/homepage.gif
images/general/ventura/hottopic.gif
images/general/ventura/info.gif
images/general/ventura/jumpnew.gif
images/general/ventura/lock.gif
images/general/ventura/moved.gif
images/general/ventura/new.gif
images/general/ventura/newfolder.gif
images/general/ventura/newimageposts.gif
images/general/ventura/newimages.gif
images/general/ventura/newpm.gif
images/general/ventura/newposts.gif
images/general/ventura/next.gif
images/general/ventura/nonewfolder.gif
images/general/ventura/nonewimageposts.gif
images/general/ventura/nonewimages.gif
images/general/ventura/nonewposts.gif
images/general/ventura/nopicture.gif
images/general/ventura/notify.gif
images/general/ventura/page.gif
images/general/ventura/poll.gif
images/general/ventura/posticon.gif
images/general/ventura/previous.gif
images/general/ventura/quickquote.gif
images/general/ventura/quickreply.gif
images/general/ventura/quote.gif
images/general/ventura/reply.gif
images/general/ventura/rss_icon.gif
images/general/ventura/star.gif
images/general/ventura/sticky.gif
images/general/ventura/toggle_closed.gif
images/general/ventura/toggle_open.gif
images/general/ventura/wait.gif
images/general/ventura/watch.gif


Joined: Jun 2006
Posts: 626
Addict
Addict
Joined: Jun 2006
Posts: 626
Originally Posted by Ruben
Okay I think you have it now.
phpinfo is running
after you are done delete the install contents.

And do you want me to edit the urls you posted so nobody can find the install folder and hose you up.

You know what I am going to edit them any way.
somebody could jump in while you are doing the upgrade.
Yes, please edit out those URLs.

Joined: Jun 2006
Posts: 626
Addict
Addict
Joined: Jun 2006
Posts: 626
Looks like I forgot to upload those images.

Doing that now.

Joined: Jun 2006
Posts: 626
Addict
Addict
Joined: Jun 2006
Posts: 626
It says upgrade to 7.7.1 is complete, however, when I click on the Admin Dashboard link I receive the following error message:

Not Acceptable!

An appropriate representation of the requested resource could not be found on this server. This error was generated by Mod_Security.

Joined: Jun 2006
Posts: 626
Addict
Addict
Joined: Jun 2006
Posts: 626
As this could be another permissions problem, I am looking into that now.

Joined: Jun 2006
Posts: 626
Addict
Addict
Joined: Jun 2006
Posts: 626
This one is confusing me.

Any help regarding this would be appreciated.

Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
Mod security is a php module, contact your host with the exact error from your logs (and not the error printed to your browser, as the logs will include the mod security rule).

There isn't anything we can do regarding server security modules.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jun 2006
Posts: 626
Addict
Addict
Joined: Jun 2006
Posts: 626
I also receive this same error when just trying to log in:

Not Acceptable!

An appropriate representation of the requested resource could not be found on this server. This error was generated by Mod_Security.

Joined: Jun 2006
Posts: 626
Addict
Addict
Joined: Jun 2006
Posts: 626
Will look for it in the error log and then give them a call.

Thank you for all your help.

Much appreciated.

Joined: Jun 2006
Posts: 626
Addict
Addict
Joined: Jun 2006
Posts: 626
Where is this particular error log supposed to be located?

Page 1 of 2 1 2

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
1 members (Ruben), 476 guests, and 111 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)