SMFHacks.com
SMF Classifieds => Support => Topic started by: Saftek on June 30, 2022, 03:51:23 pm
-
I am getting numbers of entries into the error log "Trying to access array offset on value of type null". Apparently this happens when someone attempts to access a listing which as been deleted for whatever reason.
I would assume these links would eventually be purged from search engine listings, etc. But some seem to hold them forever. So I get many such entries.
Am I doing something wrong by deleting old listings? Is there a way to prevent the log entries for dead products?
(Note: this happens on the Store too -just not as often.)
Thanks.
-
Please all errors and line numbers along with the filename for us to look into.
-
#0: smf_error_handler()
Called from /home/xxxxxx/public_html/forum/Sources/classifieds2.php on line 664
#1: Classifieds_ViewMore()
Called from /home/xxxxxx/public_html/forum/Sources/classifieds2.php on line 192
#2: ClassifiedsMain()
Called from /home/xxxxxx/public_html/forum/index.php on line 191
==================================
Type of error
General
Error message
8: Trying to access array offset on value of type null
File
/home/xxxxxx/public_html/forum/Sources/classifieds2.php
Line
653
URL of page causing the error
https://www.xxxxxx.com/forum/index.php?action=classifieds;sa=viewmore;id=324
-
Is that only one? If you have other locations let me know to so I don't have to do a bunch of new releases.
-
Those are the two I've seen the past couple of days. It will happen for other deleted products, same error info.
Thanks.
-
Posted an update that should fix those two.
-
Thanks. That works.