Codoforum related discussions
Several errors after installer

Help me please, Why I have those errors after to have installed the forum ?

I use PHP 7

Warning: strpos(): Empty needle in /home/mecraft/www/reussirsaprepa/forum/sys/Ext/Smarty/sysplugins/smarty_internal_templatelexer.php on line 316
Warning: session_write_close(): Session callback expects true/false return value in Unknown on line 0
Warning: session_regenerate_id(): Session callback expects true/false return value in /home/mecraft/www/reussirsaprepa/forum/sys/CODOF/User/User.php on line 736

Warning: Uncaught Error: Call to a member function query() on null in /home/mecraft/www/reussirsaprepa/forum/sys/CODOF/Session/Session.php:36 Stack trace: #0 [internal function]: CODOF\Session\Session->open('/tmp', 'PHPSESSID') #1 /home/mecraft/www/reussirsaprepa/forum/sys/CODOF/User/User.php(736): session_regenerate_id(true) #2 /home/mecraft/www/reussirsaprepa/forum/sys/CODOF/User/User.php(705): CODOF\User\User::_login('1', 'id') #3 /home/mecraft/www/reussirsaprepa/forum/sys/CODOF/User/Login.php(69): CODOF\User\User::login('1') #4 /home/mecraft/www/reussirsaprepa/forum/admin/modules/login.php(24): CODOF\User\Login->process_login() #5 /home/mecraft/www/reussirsaprepa/forum/admin/Lib.php(29): require('/home/mecraft/w...') #6 /home/mecraft/www/reussirsaprepa/forum/admin/Lib.php(60): codoForumAdmin::show_layout('login') #7 /home/mecraft/www/reussirsaprepa/forum/admin/index.php(56): codoForumAdmin::run() #8 {main} thrown in /home/mecraft/www/reussirsaprepa/forum/sys/CODOF/Session/Session.php on line 36

Catchable fatal error: session_regenerate_id(): Failed to create(open) session ID: user (path: /tmp) in /home/mecraft/www/reussirsaprepa/forum/sys/CODOF/User/User.php on line 736

Warning: Unknown: Session callback expects true/false return value in Unknown on line 0
Help me please, Why I have those errors after to have installed the forum ? I use PHP 7 ```` Warning: strpos(): Empty needle in /home/mecraft/www/reussirsaprepa/forum/sys/Ext/Smarty/sysplugins/smarty_internal_templatelexer.php on line 316 ```` ```` Warning: session_write_close(): Session callback expects true/false return value in Unknown on line 0 ```` ```` Warning: session_regenerate_id(): Session callback expects true/false return value in /home/mecraft/www/reussirsaprepa/forum/sys/CODOF/User/User.php on line 736 Warning: Uncaught Error: Call to a member function query() on null in /home/mecraft/www/reussirsaprepa/forum/sys/CODOF/Session/Session.php:36 Stack trace: #0 [internal function]: CODOF\Session\Session->open('/tmp', 'PHPSESSID') #1 /home/mecraft/www/reussirsaprepa/forum/sys/CODOF/User/User.php(736): session_regenerate_id(true) #2 /home/mecraft/www/reussirsaprepa/forum/sys/CODOF/User/User.php(705): CODOF\User\User::_login('1', 'id') #3 /home/mecraft/www/reussirsaprepa/forum/sys/CODOF/User/Login.php(69): CODOF\User\User::login('1') #4 /home/mecraft/www/reussirsaprepa/forum/admin/modules/login.php(24): CODOF\User\Login->process_login() #5 /home/mecraft/www/reussirsaprepa/forum/admin/Lib.php(29): require('/home/mecraft/w...') #6 /home/mecraft/www/reussirsaprepa/forum/admin/Lib.php(60): codoForumAdmin::show_layout('login') #7 /home/mecraft/www/reussirsaprepa/forum/admin/index.php(56): codoForumAdmin::run() #8 {main} thrown in /home/mecraft/www/reussirsaprepa/forum/sys/CODOF/Session/Session.php on line 36 Catchable fatal error: session_regenerate_id(): Failed to create(open) session ID: user (path: /tmp) in /home/mecraft/www/reussirsaprepa/forum/sys/CODOF/User/User.php on line 736 Warning: Unknown: Session callback expects true/false return value in Unknown on line 0 ````
edited Feb 23 '16 at 5:59 pm

Codoforum does not work yet with the php version 7.

Codoforum does not work yet with the php version 7.

Can you wait for the next release which will support PHP 7, we will be releasing it in 1-2 days.

Can you wait for the next release which will support PHP 7, we will be releasing it in 1-2 days.

I will use PHP 5.6 instead.
And it work ! smile
However I have issues with "é" in usernames !! ... it gives me &eacute ; smile
Where can I add this please ?

<meta charset="utf-8">

Or is it a probleme in database ? The Name "Collation" is "utf8_unicode_ci"

I will use PHP 5.6 instead. And it work ! :D However I have issues with &quot;&amp;eacute;&quot; in usernames !! ... it gives me &amp;amp;eacute ; :( Where can I add this please ? ```` &amp;lt;meta charset=&quot;utf-8&quot;&amp;gt; ```` Or is it a probleme in database ? The Name &quot;Collation&quot; is &quot;utf8_unicode_ci&quot;
edited Feb 23 '16 at 10:56 pm

Can you see it ? You have the issue too !!!
How can I fix this ? My name is Théo

How can I change the favicon ? I changed every images but the favicon is still the circled "f" !

How can I change the link at the top on the left ? (Site title)

Can you see it ? You have the issue too !!! How can I fix this ? My name is **Th&amp;eacute;o** How can I change the favicon ? I changed every images but the favicon is still the circled &quot;f&quot; ! How can I change the link at the top on the left ? (Site title)

Can you see it ? You have the issue too !!!
How can I fix this ? My name is Théo

How can I change the favicon ? I changed every images but the favicon is still the circled "f" !

How can I change the link at the top on the left ? (Site title)

sites/default/themes/default/templates/layout.php is waht you looking for.

On line 101 you find the favicons and

297 <a href="{$smarty.const.RURI}{$site_url}" class="navbar-brand codo_forum_title" >

you can change the url.

&amp;gt;Can you see it ? You have the issue too !!! &amp;gt;How can I fix this ? My name is **Th&amp;eacute;o** &amp;gt;How can I change the favicon ? I changed every images but the favicon is still the circled &quot;f&quot; ! &amp;gt;How can I change the link at the top on the left ? (Site title) sites/default/themes/default/templates/layout.php is waht you looking for. On line 101 you find the favicons and ```` 297 &amp;lt;a href=&quot;{$smarty.const.RURI}{$site_url}&quot; class=&quot;navbar-brand codo_forum_title&quot; &amp;gt; ```` you can change the url.
edited Feb 24 '16 at 5:04 pm

Can you see it ? You have the issue too !!!
How can I fix this ? My name is Théo

How can I change the favicon ? I changed every images but the favicon is still the circled "f" !

How can I change the link at the top on the left ? (Site title)

sites/default/themes/default/templates/layout.php is waht you looking for.

On line 101 you find the favicons and

297 <a href="{$smarty.const.RURI}{$site_url}" class="navbar-brand codo_forum_title" >

you can change the url.

Thanks a lot.
I have more troubles :
When I logout I'm redirected here : http://localhost/page/user/logout
And when I click login : http://localhost/page/user?codoforum=sso

Moreover, how can I add an "under category" ?

&amp;gt;&amp;gt;Can you see it ? You have the issue too !!! &amp;gt;&amp;gt;How can I fix this ? My name is **Th&amp;eacute;o** &amp;gt;&amp;gt;How can I change the favicon ? I changed every images but the favicon is still the circled &quot;f&quot; ! &amp;gt;&amp;gt;How can I change the link at the top on the left ? (Site title) &amp;gt;sites/default/themes/default/templates/layout.php is waht you looking for. &amp;gt;On line 101 you find the favicons and &amp;gt;```` &amp;gt;297 &amp;lt;a href=&quot;{$smarty.const.RURI}{$site_url}&quot; class=&quot;navbar-brand codo_forum_title&quot; &amp;gt; &amp;gt;```` &amp;gt;you can change the url. Thanks a lot. I have more troubles : When I logout I&#039;m redirected here : http://localhost/page/user/logout And when I click login : http://localhost/page/user?codoforum=sso Moreover, how can I add an &quot;under category&quot; ?

Thanks but now, on this page http://theofleury.fr/reussirsaprepa/forum/index.php?u=/user/login
I have those errors :

request failed! HTTP/1.1 403 Forbidden in /home/mecraft/www/reussirsaprepa/forum/sys/CODOF/Asset/Stream.php on line 207

Warning: file_get_contents(http://theofleury.fr/reussirsaprepa/forum/sites/default/plugins/uni_login/assets/js/uni_login.js): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden in /home/mecraft/www/reussirsaprepa/forum/sys/CODOF/Asset/Stream.php on line 222
Thanks but now, on this page http://theofleury.fr/reussirsaprepa/forum/index.php?u=/user/login I have those errors : ```` request failed! HTTP/1.1 403 Forbidden in /home/mecraft/www/reussirsaprepa/forum/sys/CODOF/Asset/Stream.php on line 207 Warning: file_get_contents(http://theofleury.fr/reussirsaprepa/forum/sites/default/plugins/uni_login/assets/js/uni_login.js): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden in /home/mecraft/www/reussirsaprepa/forum/sys/CODOF/Asset/Stream.php on line 222 ````

Try this:

Open sys/CODOF/Assets/Stream.php

Around line 200, replace

                    if (!ini_get('allow_url_fopen') || $file['type'] == 'remote') {

                        //oops we can't get contents of this remote file
                        //add them to a new array of remote files
                        $remoteUrls[] = array("data" => $file['data'], "type" => $file['type']);
                        continue;
                    } else {
                        $contents .= file_get_contents($file['data']);
                    }

with

$remoteUrls[] = array("data" => $file['data'], "type" => $file['type']);
continue;
Try this: Open sys/CODOF/Assets/Stream.php Around line 200, replace ``` if (!ini_get(&#039;allow_url_fopen&#039;) || $file[&#039;type&#039;] == &#039;remote&#039;) { //oops we can&#039;t get contents of this remote file //add them to a new array of remote files $remoteUrls[] = array(&quot;data&quot; =&amp;gt; $file[&#039;data&#039;], &quot;type&quot; =&amp;gt; $file[&#039;type&#039;]); continue; } else { $contents .= file_get_contents($file[&#039;data&#039;]); } ``` with ``` $remoteUrls[] = array(&quot;data&quot; =&amp;gt; $file[&#039;data&#039;], &quot;type&quot; =&amp;gt; $file[&#039;type&#039;]); continue; ```

nice thanks. And why you have the same probleme with e acute ? I can't find why I can't change my name to "Théo"...

Moreover, how can I add an "under category" ?
+How does Cron know when to load ?

nice thanks. And why you have the same probleme with e acute ? I can&#039;t find why I can&#039;t change my name to &quot;Th&amp;eacute;o&quot;... Moreover, how can I add an &quot;under category&quot; ? +How does Cron know when to load ?
edited Feb 24 '16 at 6:56 pm

That name bug will be fixed in the next version.

Moreover, how can I add an "under category" ?

What do you mean by under category ?

+How does Cron know when to load ?

what ?

That name bug will be fixed in the next version. &amp;gt;Moreover, how can I add an &quot;under category&quot; ? What do you mean by under category ? &amp;gt;+How does Cron know when to load ? what ?
edited Feb 24 '16 at 7:05 pm

This forum is awesome ! support too.
Sorry for disturbing you smile

  • A="plugins" is an under category of B="codoforum relate discusssion", I can see A UNDER/IN B.
    SOLVED

  • colors are not available ?

  • Cron means that tasks are periodically done ? Because my host provide me that. But I don't understand how can you do that with a script :o I don't have to configure something with my host ?

  • And how can I translate (in French) some words ? Where can I change sentences ?

  • I tried a lot of thing with line 101 and its neighbours but favicon remain the same

  • How can I lock a topic as admin ?

  • When a newby login with facebook : "Missing provider application credentials."

  • When I create a link in a topic it works... however when I search for topics, in the list of answers the link is displayed (there is http etc...) Moreover, when I click on the category and look at the topic in the list, the link doesn't work (not blue).

  • On mobile, user is blocked to his profile page, when he clicks on menu (top left) there is nothing to go to main page.

  • Can't confirm email :

56ce193e6ca92.jpg

  • Style bug of the footer :

56ce18fc52286.jpg

This forum is awesome ! support too. Sorry for disturbing you :P - A=&quot;plugins&quot; is an under category of B=&quot;codoforum relate discusssion&quot;, I can see A UNDER/IN B. **SOLVED** - colors are not available ? - Cron means that tasks are periodically done ? Because my host provide me that. But I don&#039;t understand how can you do that with a script :o I don&#039;t have to configure something with my host ? - And how can I translate (in French) some words ? Where can I change sentences ? - I tried a lot of thing with line 101 and its neighbours but favicon remain the same - How can I lock a topic as admin ? - When a newby login with facebook : &quot;Missing provider application credentials.&quot; - When I create a link in a topic it works... however when I search for topics, in the list of answers the link is displayed (there is http etc...) Moreover, when I click on the category and look at the topic in the list, the link doesn&#039;t work (not blue). - On mobile, user is blocked to his profile page, when he clicks on menu (top left) there is nothing to go to main page. - Can&#039;t confirm email : ![56ce193e6ca92.jpg](serve/attachment&amp;amp;path=56ce193e6ca92.jpg) - Style bug of the footer : ![56ce18fc52286.jpg](serve/attachment&amp;amp;path=56ce18fc52286.jpg)
edited Feb 24 '16 at 10:33 pm

colors are not available ?

Where ?

Cron means that tasks are periodically done ? Because my host provide me that. But I don't understand how can you do that with a script :o I don't have to configure something with my host ?

Cron is simulated using php

And how can I translate (in French) some words ? Where can I change sentences ?

Yes, you can make our own language in sites/default/locale
Change the locale from sites/default/constants.php

I tried a lot of thing with line 101 and its neighbours but favicon remain the same

Can you post your changed code here?

How can I lock a topic as admin ?

Set the topic status as closed.

When a newby login with facebook : "Missing provider application credentials."

You need to follow the documentation for integrating fb login:
https://codoforum.com/documentation/setup-facebook-twitter-google-login

When I create a link in a topic it works... however when I search for topics, in the list of answers the link is displayed (there is http etc...) Moreover, when I click on the category and look at the topic in the list, the link doesn't work (not blue).

We will have a look at this.

On mobile, user is blocked to his profile page, when he clicks on menu (top left) there is nothing to go to main page.

Clicking on the site name will take you to the home page, but I guess it would be better to add a link saying 'home'

Can't confirm email :

Is this happening for all new users ?

Style bug of the footer :

Will be fixed

&amp;gt;colors are not available ? Where ? &amp;gt;Cron means that tasks are periodically done ? Because my host provide me that. But I don&#039;t understand how can you do that with a script :o I don&#039;t have to configure something with my host ? Cron is simulated using php &amp;gt;And how can I translate (in French) some words ? Where can I change sentences ? Yes, you can make our own language in sites/default/locale Change the locale from sites/default/constants.php &amp;gt;I tried a lot of thing with line 101 and its neighbours but favicon remain the same Can you post your changed code here? &amp;gt;How can I lock a topic as admin ? Set the topic status as closed. &amp;gt;When a newby login with facebook : &quot;Missing provider application credentials.&quot; You need to follow the documentation for integrating fb login: https://codoforum.com/documentation/setup-facebook-twitter-google-login &amp;gt;When I create a link in a topic it works... however when I search for topics, in the list of answers the link is displayed (there is http etc...) Moreover, when I click on the category and look at the topic in the list, the link doesn&#039;t work (not blue). We will have a look at this. &amp;gt;On mobile, user is blocked to his profile page, when he clicks on menu (top left) there is nothing to go to main page. Clicking on the site name will take you to the home page, but I guess it would be better to add a link saying &#039;home&#039; &amp;gt;Can&#039;t confirm email : Is this happening for all new users ? &amp;gt;Style bug of the footer : Will be fixed
1.23k
17
2
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft