Codoforum related discussions

Post all your questions and problems related to codoforum here .

84
1
sinanbinol posted Feb 11 '20 at 3:21 pm

Hello,

i have a problem. I upload an image on editor. It's work perfect. I can see on host (it was uploaded). But when i want to view, i take this problem.

Fatal error: Uncaught Error: Call to undefined function Controller\mime_content_type() in

My php version7.3,
I have ssl,
file permissions are correct.

i try everything , i change php version to 5.6 but nothing change.

Please help

5e42c664ba30e

recent by admin  ·  Feb 11 '20 at 9:49 pm
81
1
confuseduser posted Feb 5 '20 at 7:06 pm

Hi,
I have this code in php 5 and whant to adapt for php 7.2
I have tried using foreach instead of While but it returns error sayng "Array to string convertion" in line "$er.= "<b>".$key."</b>: ".$value." after foreach.
Does anybody know how to solve this?
Thank you.

public function getResumen(){
$er="";
$ar = $this->getTrace();
$er.= "<b>Mensaje</b>: ".$this->message."<br/>";
$er.= "<b>Código</b>: ".$this->code."<br/><br/>";
foreach ($ar as $a=>$p){

        //foreach($p as $key => $value){
        while(list($key, $value) = each($p)){ 
            //echo();                
            $er.= "<b>".$key."</b>: ".$value."<br/>";

            ;
        }
    }
    $in="<div style=\"border:1px solid #000000;padding:10px;background:#f6ca6d;\">";
    $in.="<b>Escepsión Resumen</b>:<br/><br/>";
    $in.=$er;
    $in.="</div><br/>";
    return $in;
recent by WebCrew  ·  Feb 5 '20 at 10:11 pm
175
2
teabagdad posted Oct 20 '19 at 2:15 pm

Hey guys. I just logged into my site yolegend.com and like overnight that button on mobile "start a new topic" is wrong the text is crawling off of it (even on codoforums) also on mobile the responsive is bad. So bad.
5dac5db7b9711

Can someone log into my website and help fix it? I do not get notifications when I receive a reply to this article also

recent by fromsly  ·  Dec 18 '19 at 5:14 am
224
5

@admin @adesh

Hello Adesh.

I use an SSL certificate on my domain and together with Codoforum, I unfortunately get the message that the SSL together with CF only works limited - so there are probably files or scripts which are not offered or integrated via SSL or secure enough.

Can it be that the FreiChat server of you does not run on SSL?

If so, here is a tip:

There is a free really good SSL certificate that anyone who has SSH or shell access can easily activate and use for free. The provider is part of the Linux Open Source distribution and calls itself Let's Encrypt - maybe that would be something for you at Codologic?

Here is the link to Lets Encrypt Service:
https://letsencrypt.org

Kind regards, Andy

recent by quenquen  ·  Dec 14 '19 at 12:11 pm
61
1

Hi,
As a new PHP programer I am testing to insert datas into my database. Every things are showing me that the codes are well. For example I test the connection to my database it's fine:
I am using PHP 7.3.10 on Windows 10
testconnection.php
$conn = new mysqli("localhost", "root", "", "login"smile;

if ($conn->connect_error) {

die("ERROR: Unable to connect: " . $conn->connect_error);

}

echo 'Connected to the database.
';

$result = $conn->query("SELECT * FROM usuario"smile;

echo "Number of rows: $result->num_rows";

$result->close();

$conn->close();

?>

//I receive this message:

Connected to the database.
Number of rows: 2
Inserttodb.php

$link=mysqli_connect("localhost","root",""smile;
mysqli_select_db($link,"phpmysqli"smile;
?>

if(isset($_POST["submit"]))
{

mysqli_query($link,"insert into table1 values('$_POST[t1]','$_POST[t2]'smile"smile;

}

?>

When I insert data ist doesnt show any error. But when I check in phpMysql there is nothing. Ouuuf, I passed days to resolv this. But nothing!!!

recent by WebCrew  ·  Dec 14 '19 at 11:44 am
134
4
Attila posted Oct 30 '19 at 4:21 pm

@admin
At the first attempt I received a mail from google saying that this is a less secure app and I need to create a app password for this action. I created one and its still not working but now i didn't receive email regarding this "less secure app". Then I changed from SMTP to mail() but its not working. :c
mail() attempt:
5db9b8516a44f
SMTP attempt: (SMTP connection failed)
5db9b8517e075

recent by WebCrew  ·  Oct 31 '19 at 10:06 pm
908
4.41k
22
Sub Categories
Actions
Hide topic messages
Enable infinite scrolling
Previous
12345678 ... 46
Next
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft