|
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,633 Likes: 85
|
Joined: Dec 2003
Posts: 6,633 Likes: 85 |
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,378 Likes: 129
|
Joined: Jun 2006
Posts: 16,378 Likes: 129 |
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.
|
|
|
|
Joined: Apr 2004
Posts: 1,997 Likes: 165
|
Joined: Apr 2004
Posts: 1,997 Likes: 165 |
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.phpPHP 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: [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
|
|
|
|
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,633 Likes: 85
|
Joined: Dec 2003
Posts: 6,633 Likes: 85 |
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,633 Likes: 85
|
Joined: Dec 2003
Posts: 6,633 Likes: 85 |
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,378 Likes: 129
|
Joined: Jun 2006
Posts: 16,378 Likes: 129 |
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.
|
|
|
|
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,997 Likes: 165
|
Joined: Apr 2004
Posts: 1,997 Likes: 165 |
HTTP 500 - Internal Server Error https://blog.hubspot.com/marketing/http-500-internal-server-errorCan 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
|
|
|
|
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=cfrmWill 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,633 Likes: 85
|
Joined: Dec 2003
Posts: 6,633 Likes: 85 |
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.phpThen 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,633 Likes: 85
|
Joined: Dec 2003
Posts: 6,633 Likes: 85 |
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,378 Likes: 129
|
Joined: Jun 2006
Posts: 16,378 Likes: 129 |
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).
|
|
|
|
Joined: Dec 2003
Posts: 6,633 Likes: 85
|
Joined: Dec 2003
Posts: 6,633 Likes: 85 |
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 |
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 |
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. 
|
|
|
|
Joined: Dec 2003
Posts: 6,633 Likes: 85
|
Joined: Dec 2003
Posts: 6,633 Likes: 85 |
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,378 Likes: 129
|
Joined: Jun 2006
Posts: 16,378 Likes: 129 |
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.
|
|
|
|
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 |
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,378 Likes: 129
|
Joined: Jun 2006
Posts: 16,378 Likes: 129 |
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.
|
|
|
|
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?
|
|
|
1 members (Gizmo),
103
guests, and
103
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|