News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

SMF Articles

Started by SMFHacks.com Team, September 04, 2008, 04:03:00 PM

Previous topic - Next topic

BugginIn

Quote from: Kindred on December 18, 2023, 01:48:36 PMyou are adding to the Sources file, not the template file....

Tried it both ways, and/or separate and together...

Did you have the same issue on 2.1.4 and default theme as well?

BugginIn

Quote from: BugginIn on December 18, 2023, 01:50:43 PM
Quote from: Kindred on December 18, 2023, 01:48:36 PMyou are adding to the Sources file, not the template file....

Tried it both ways, and/or separate and together...

Did you have the same issue on 2.1.4 and default theme as well?

Just an FYI - cleared and deleted everything... Tried again, no go on 2.1.4 on default theme.

Still getting that same error right after save setting's of fresh install.


Thank you...

Kindred

#1042
@BugginIn

I just installed on SMF 2.1.4 with no problems.
I created a category and created an article inside that category with no errors.


correction: In the smf error log, after creating the category from the admin section

QuoteKindred
...../index.php?action=articles;sa=addcat2
...../Sources/Articles2.php (Line 409)
2: Trying to access array offset on value of type null

Type of error
General
Error message
2: Trying to access array offset on value of type null
File
...../Sources/Articles2.php
Line
409
URL of page causing the error
...../index.php?action=articles;sa=addcat2
Backtrace information

    #0: smf_error_handler()
    Called from .....Articles2.php on line 409
    #1: AddCat2()
    Called from ...../Sources/Articles2.php on line 99
    #2: ArticlesMain()
    Called from ...../index.php on line 184


Code (from Articles2.php) Select
// Do the order
402: $dbresult = $smcFunc['db_query']('', "
403:
404: roworder
405: FROM {db_prefix}articles_cat
406: ORDER BY roworder DESC");
407: $row = $smcFunc['db_fetch_assoc']($dbresult);
408: $smcFunc['db_free_result']($dbresult);
==>409: $order = $row['roworder'];
410: $order++;



Edit 3-- oh, ugly....
a boatload of (nine) errors when reading an article in the front end...

2: Undefined array key "show_profile_buttons"
2: Trying to access array offset on value of type null
2: Undefined array key "yim"
2: Trying to access array offset on value of type null
2: Undefined array key "aim"
2: Trying to access array offset on value of type null
2: Undefined array key "msn"
2: Trying to access array offset on value of type null
2: Undefined array key "icq"
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

vbgamer45

Update

3.2
!Fixed a few errors log in SMF 2.1 and new PHP versions
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Kindred

confirmed this addresses the issue (and I have 8.0 php right now)
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

BugginIn

Downloaded new, but in setting's shows this:
Your Version: 3.2 Latest Version: 3.1.1 Your article system version is not up to date!

Still throwing same error when I go to make a category or view Articles page: Unable to load the 'articles_categories' template.

/Sources/Load.php on line 2843 - fatal_lang_error()

/Sources/Subs.php on line 4231 - loadSubTemplate()

/index.php on line 187 - obExit()


Cleared cache's, running PHP 7.4, SMF 2.1.4 and default theme...


Thank you...




vbgamer45

That's bizarre can only think another mod or custom action is taking over the articles action.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Advertisement: