"Call to undefined function mysql_fetch_assoc()" Error

Started by addaam, October 19, 2018, 02:22:40 AM

Previous topic - Next topic

addaam

Hello there.
I am entering the Forum Profile.
For example, I enter and record the date of birth.
This gives the error and does not record.
I wonder why?

If I do the save without any action, it gives this error again.

Please give me a solution.

Site: www.genelyorum.com
Image:

Arantor

So you have a modification that is out of date and doesn't follow SMF 2.0 coding... somewhere in the profile. We need more details to help you...

addaam

Quote from: Arantor on October 19, 2018, 02:31:01 AM
So you have a modification that is out of date and doesn't follow SMF 2.0 coding... somewhere in the profile. We need more details to help you...
This is a default theme.
I started editing from 2.0.11.
I've always done manual setup.
What kind of information can I give?

Arantor


addaam

This is a trial site.
I set it up yesterday.
I saw this error.

With private message:
I can give you Cpanel entries.
I can give manager information in the forum.

Kindred

if this is a new installation, why are you using SMF 2.0.11?

What mods do you have installed?


update to 2.0.15 first, though
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Arantor

If this is a trial site on 2.0.11, it has an error that shouldn't be possible on an unmodified 2.0.11...

addaam


Kindred

if this is a new installation, then delete it.

Install 2.0.15 directly
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

addaam

Quote from: Kindred on October 19, 2018, 03:42:18 AM
if this is a new installation, then delete it.

Install 2.0.15 directly

There's a lot of effort.
I can't erase everything,
I can't start from scratch.

https://genelyorum.com
testmember
111111

Shambles

What version of PHP are you running?

mysql_fetch_assoc (among other mysql_ functions) was deprecated in PHP 5.5 and removed in PHP 7

Kindred

Well, you did say that it was a new installation...      I still have no idea why you started by installing 2.0.11 and then patched.  If you were making a new installation, why would you not use 2.0.15 right from the start.

However... OK...  in that case, please answer Arantor's question.

WHat mods have you installed?

I'll also note that I think your language files are out of date, since they have a 2013 copyright and should be 2017.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Arantor

Also please do not randomly PM me, ever, expecting me to fix your problems for you. I help in public where others can learn from it, not in private where it is an imposition on my time.

Also, do not just PM people the admin credentials to your site, because they might be less trustworthy than me... I just deleted the PM and the email notification. Others might have used it to just take over your site.

addaam

Quote from: Sh@mbles on October 19, 2018, 05:40:29 AM
What version of PHP are you running?

mysql_fetch_assoc (among other mysql_ functions) was deprecated in PHP 5.5 and removed in PHP 7

Version Information:
Forum version: SMF 2.0.15 (more detailed)
Current SMF version: SMF 2.0.15
GD version: bundled (2.1.0 compatible)
Database Server: MySQL
MySQL version: 5.6.41-cll-lve
PHP: 7.0.32
Server version: LiteSpeed

Shambles

Quote from: addaam
PHP: 7.0.32

Quote
mysql_fetch_assoc (among other mysql_ functions) was deprecated in PHP 5.5 and removed in PHP 7


Quote from: Kindred on October 19, 2018, 05:47:20 AM
WHat mods have you installed?

addaam

I solved the problems.
There is no case related to the database.
It is completely related to the files in the SOURCES folder.

addaam


vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

addaam

Quote from: vbgamer45 on October 20, 2018, 10:36:21 AM
How did you solve?
Thank you for asking.

When I register the Forum profile from the profile page,

"Call to undefined function mysql_fetch_assoc()" error.

When I delete the following code from the Subs-Post.php file, the error is gone.

while ($row = mysql_fetch_assoc($request))

He gave me that error again.

"Call to undefined function mysql_free_result()"

When I delete the following code from the Subs-Post.php file, the errors are completely gone.

mysql_free_result($request);

--------------------------------------------------

Later ...

I have installed Profile Moderator Management mode.
When entering the profile of this mode, it gave the following error.

"Call to undefined function mysql_free_result()"

When I delete the following code from the Profile-Modify.php file, the error is gone.

mysql_free_result($request);

--------------------------------------------------

Later ...

Clicking on the "New Message" link from the menu of the messages gave the following error.

"Call to undefined function mysql_fetch_assoc()"

When I delete the following code from the PersonalMessage.php file, the error is gone.

while ($row = mysql_fetch_assoc($request))

He gave me that error again.

"Call to undefined function mysql_free_result()"

When I delete the following code from the PersonalMessage.php file, the errors are completely gone.

mysql_free_result($request);

--------------------------------------------------

Later ...

I wanted to open a "New topic" to any partition and gave the following error.

"Call to undefined function mysql_fetch_assoc()"

When I delete the following code from the Post.php file, the error is gone.

while ($row = mysql_fetch_assoc($request))

He gave me that error again.

"Call to undefined function mysql_free_result()"

When I delete the following code from the Post.php file, the errors are completely gone.

mysql_free_result($request);

--------------------------------------------------

Later ...

I have the mode of hiding the subject content.
When he clicked on the sheet, he gave the following error.

"Call to undefined function mysql_free_result()"

When I delete the following code from the HtsAdmin.php file, the error is gone.

mysql_free_result($request);

Thank you for your attention.

Arantor

Ah so you didn't actually solve it, you just took away the lines that did any work... good job.

Advertisement: