Simple Machines Community Forum

SMF Support => SMF 2.1.x Support => Topic started by: gevv on October 26, 2020, 04:22:37 PM

Title: SMF 2.1 RC3 Printpage.php errors
Post by: gevv on October 26, 2020, 04:22:37 PM
Hi,

lots of errors appear on the error log page

QuoteType of error: General
8: Trying to access array offset on value of type null

Sources/Printpage.php line 234, 233, 185, 183, 168, 165



Quote
Backtrace information

    #0: smf_error_handler()
    Called from /Sources/Printpage.php on line 233
    #1: PrintTopic()
    Called from /index.php on line 173


Thanks.

Title: Re: SMF 2.1 RC3 Printpage.php errors
Post by: shawnb61 on October 26, 2020, 05:09:17 PM
Can you describe the page you are trying to print?

Is it a poll?   

Is there anything unusual about the poll?  E.g., was it put there by a user or by a mod? 

Is it a new 2.1 poll or a 2.0 poll that was migrated?

Is the person who posted the poll a valid user?

Anything about this particular poll/topic would be helpful.  (I cannot reproduce.  Clues will help.)
Title: Re: SMF 2.1 RC3 Printpage.php errors
Post by: gevv on October 27, 2020, 04:15:38 AM
Hi,

Yes poll pages. It was created by administrators and global moderators. 2.0  polls
Title: Re: SMF 2.1 RC3 Printpage.php errors
Post by: gevv on December 29, 2020, 01:57:44 PM
Hello there,

Any progress?

I noticed it's problematic in regular member polls
Title: Re: SMF 2.1 RC3 Printpage.php errors
Post by: shawnb61 on January 02, 2021, 07:50:13 PM
Closing the loop.  I believe this PR has addressed this issue:
https://github.com/SimpleMachines/SMF2.1/pull/6235