The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
UserSpice 3.0.3 Released!
#1
Thanks to the help of many of you and your patience and feedback, UserSpice 3.0.3 is released to hopefully fix most of your bugs. Keep those bug reports and that feedback coming!
  Reply
#2
Hey mudmin
Just installed 3.0.3 and had the following issues:
the footer still seems to be missing the '==' for the reCAPTCHA on line 28

Also, when logging in with a user, i get the following:

'Warning: Cannot modify header information - headers already sent by (output started at /models/recaptcha.config.php:2) in /login.php on line 116'
If the page is then refreshed, the user appears to be logged in, and then the error changes to :
'Warning: Cannot modify header information - headers already sent by (output started at /models/recaptcha.config.php:2) in /login.php on line 30'

Thats it for now Smile
  Reply
#3
Dang it. The recaptcha is definitely a slip up. I had that fixed in one of my builds.

I cannot replicate the header issue at all. What version of php are you using?
  Reply
#4
I've sent Dowen12 a possible fix for these issues... I'll keep you posted. If anyone wants to test it themselves, try replacing your recaptcha.config.php with the contents of this and feel free to report back.

http://hastebin.com/renopasohi.php

Again, I can't get this error on my system so it makes it harder to test my fixes.
  Reply
#5
If anyone would like to beta test a possible fix to the header issue, you can try these 3 files and report back.

Replace models/recaptcha.config.php with this
http://hastebin.com/tebulokosi.php

Replace login.php with this
http://hastebin.com/osarohepej.xml

And you can fix the models/footer.php bug if you haven't already with this
http://hastebin.com/hotefutefu.xml
  Reply
#6
I will give it a try on both my windows server and my linux server and see what I can come up with.
  Reply
#7
Server Stats
Windows 10 Pro

WAMP Server v2.5
Apache 2.4.9
MySQL 5.6.17
PHP v5.5.12

I installed UserSpice on my WAMP server and here are some of the suggestions I have.

The install file does not just show my current PHP version, it shows the php info.
Try changing line 59 from
Code:
phpinfo()
to
Code:
echo phpversion();
That way it only displays the current PHP version number.

On my install file is used this:
<pre>
Code:
                if (version_compare(phpversion(), '5.5.0', '<')) {
                    // php version isn't high enough
                    echo " - <font color=red><strong>Out of Date, Update to 5.5.0 or greater to continue.</strong></font>";
                    echo " - <a href='http://php.net/' target='_blank'>PHP Website</a>";
                    $server_check_status = "FALSE"; // Can change this to die; or something.
                } else {
                    echo " - <font color=green><strong>Good To Go!</strong></font>";
                }
</pre>

It allowed me to block the install if version was not current enough.

The recaptcha file you posted above did fix the footer bug.
In Register.php, the recaptcha box does not display.
However when I register I get the following error:
Code:
Notice: Undefined index: g-recaptcha-response in C:\wamp\www\register.php on line 53

I was able to get the recaptcha box to show in register.php by adding the following line near the bottom.
Code:
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
After adding the above line, I was able to sign up with no errors.

Able to login also.

Everything seems to be working well on my window's server.

Server Stats
Ubuntu 14.04

Apache 2.4.7
PHP 5.5.9
MySQL 5.5.46

With the changes above
Install was good
Register first user was good
Login good

Created a basic user
I noticed that the forgot password, and resend activation email links shows up when I am logged in. lol

I am not getting the header issue on either server.

I would try moving
Code:
ob_start();
From: models/top-nav.php
To: models/config.php

Hope this helps. Keep up the good work!
  Reply
#8
Awesome! Thank you so much! I should have pointed out that by using the new recaptcha.config it would break the registration page, but it was just to see if it made a difference for people getting the header error. Thanks for all the feedback. I'll be making those changes.

I'd really like to hear back from someone who was actually getting the header bug. I need a beta tester!
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)