Jump to content

Log Errors


supernix

Recommended Posts

Keep seeing this error in the logs over and over

Error: TypeError: Argument 1 passed to WHMCS\Knowledgebase\View\Index::getArticleTemplateData() must be an instance of WHMCS\Knowledgebase\Article, null given, called in /home/username/public_html/vendor/whmcs/whmcs-foundation/lib/Knowledgebase/Controller/Article.php on line 0 and defined in /home/username/public_html/vendor/whmcs/whmcs-foundation/lib/Knowledgebase/View/Index.php:0 Stack trace: #0

Link to comment
Share on other sites

i'd be tempted to play with the Friendly URL settings to see if that (routepath) is causing this... visually, I can't see anything wrong with the kb pages looking at your site.

byw - you might want to take a look at your currency prefixes for EUR and GBP as they're showing invalid characters.

Link to comment
Share on other sites

  • 1 month later...
5 hours ago, supernix said:

Sad to say that didn't help and still no resolution

as an aside, I will agree that v8+ does generate a lot more error logging - though whether its generating more errors rather than just logging more, i'm not sure.

you use a Zomex custom template don't you ? you could check with Jack and see if it's the template causing the error (I doubt it - but checking if the same error gets logged when using Six/21 might be indicative).

 ultimately, if this is a concern, then you should probably open a ticket and see what support say.

though I suspect that would tell you to try it in Six/21 too.

Link to comment
Share on other sites

  • 2 months later...

In case your issue is still not resolved or if anyone else needs a quick resolution:

 

we had this issue and whittled it down to all articles in a specific knowledgebase category. we couldn't work out how to fix the category and instead created a new category and moved the articles to the new category. This resolved this issue for us. It appeared to happen after a whmcs core upgrade.

Link to comment
Share on other sites

  • 8 months later...

Hi, just run query:

DELETE links FROM tblknowledgebaselinks as links
LEFT JOIN tblknowledgebase as article ON links.articleid = article.id
WHERE article.id IS NULL

It will remove the links of the category with the articles that you have already deleted and there will be no more problems.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated