NamelessMC

Internet Explorer

Internet Explorer is not supported. Please upgrade to a more modern browser.

uwuCatboy_

Member

Feed

There are no wall posts here yet.

About

Registered:
about 1 year ago
Last Seen:
4 months ago
Profile Views:
292
Minecraft
uwuCatboy_

Latest Posts

8 months ago
Tebex Store Error

Uncaught TypeError

count(): Argument #1 ($value) must be of type Countable|array, string given

(File: /home/boxsmpxy/domains/ravenhide.xyz/public_html/modules/Tebex/pages/store/category.php)

<span class="token php language-php" style="box-sizing: border-box;"><span class="token delimiter important" style="box-sizing: border-box; font-weight: normal;"><?php </span>
<span class="token comment" style="box-sizing: border-box; color: #7d8b99;">/*
 *	Made by Samerton
 *  https://github.com/NamelessMC/Nameless/
 *  NamelessMC version 2.0.0-pr6
 *
 *  License: MIT
 *
 *  Store page - category view
 */</span>

<span class="token comment" style="box-sizing: border-box; color: #7d8b99;">// Always define page name</span>
<span class="token function" style="box-sizing: border-box; color: #2f9c0a;">define</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">(</span><span class="token string single-quoted-string" style="box-sizing: border-box; color: #2f9c0a;">'PAGE'</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">,</span> <span class="token string single-quoted-string" style="box-sizing: border-box; color: #2f9c0a;">'buycraft'</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">)</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">;</span>

<span class="token comment" style="box-sizing: border-box; color: #7d8b99;">// Get category ID</span>
<span class="token variable" style="box-sizing: border-box; color: #a67f59; background: rgba(255, 255, 255, 0.5);">$category_id</span> <span class="token operator" style="box-sizing: border-box;">=</span> <span class="token function" style="box-sizing: border-box; color: #2f9c0a;">explode</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">(</span><span class="token string single-quoted-string" style="box-sizing: border-box; color: #2f9c0a;">'/'</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">,</span> <span class="token variable" style="box-sizing: border-box; color: #a67f59; background: rgba(255, 255, 255, 0.5);">$route</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">)</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">;</span>
<span class="token variable" style="box-sizing: border-box; color: #a67f59; background: rgba(255, 255, 255, 0.5);">$category_id</span> <span class="token operator" style="box-sizing: border-box;">=</span> <span class="token variable" style="box-sizing: border-box; color: #a67f59; background: rgba(255, 255, 255, 0.5);">$category_id</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">[</span><span class="token function" style="box-sizing: border-box; color: #2f9c0a;">count</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">(</span><span class="token variable" style="box-sizing: border-box; color: #a67f59; background: rgba(255, 255, 255, 0.5);">$category_id</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">)</span> <span class="token operator" style="box-sizing: border-box;">-</span> <span class="token number" style="box-sizing: border-box; color: #c92c2c;">1</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">]</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">;</span>

<span class="token keyword" style="box-sizing: border-box; color: #1990b8;">if</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">(</span><span class="token operator" style="box-sizing: border-box;">!</span><span class="token keyword" style="box-sizing: border-box; color: #1990b8;">isset</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">(</span><span class="token variable" style="box-sizing: border-box; color: #a67f59; background: rgba(255, 255, 255, 0.5);">$category_id</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">[</span><span class="token function" style="box-sizing: border-box; color: #2f9c0a;">count</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">(</span><span class="token variable" style="box-sizing: border-box; color: #a67f59; background: rgba(255, 255, 255, 0.5);">$category_id</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">)</span> <span class="token operator" style="box-sizing: border-box;">-</span> <span class="token number" style="box-sizing: border-box; color: #c92c2c;">1</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">]</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">)</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">)</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">{</span>
	<span class="token keyword" style="box-sizing: border-box; color: #1990b8;">require_once</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">(</span><span class="token constant" style="box-sizing: border-box; color: #c92c2c;">ROOT_PATH</span> <span class="token operator" style="box-sizing: border-box;">.</span> <span class="token string single-quoted-string" style="box-sizing: border-box; color: #2f9c0a;">'/404.php'</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">)</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">;</span>
	<span class="token keyword" style="box-sizing: border-box; color: #1990b8;">die</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">(</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">)</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">;</span>
<span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">}</span>

<span class="token variable" style="box-sizing: border-box; color: #a67f59; background: rgba(255, 255, 255, 0.5);">$category_id</span> <span class="token operator" style="box-sizing: border-box;">=</span> <span class="token function" style="box-sizing: border-box; color: #2f9c0a;">explode</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">(</span><span class="token string single-quoted-string" style="box-sizing: border-box; color: #2f9c0a;">'-'</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">,</span> <span class="token variable" style="box-sizing: border-box; color: #a67f59; background: rgba(255, 255, 255, 0.5);">$category_id</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">)</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">;</span>
<span class="token keyword" style="box-sizing: border-box; color: #1990b8;">if</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">(</span><span class="token operator" style="box-sizing: border-box;">!</span><span class="token function" style="box-sizing: border-box; color: #2f9c0a;">is_numeric</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">(</span><span class="token variable" style="box-sizing: border-box; color: #a67f59; background: rgba(255, 255, 255, 0.5);">$category_id</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">[</span><span class="token number" style="box-sizing: border-box; color: #c92c2c;">0</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">]</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">)</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">)</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">{</span>
	<span class="token keyword" style="box-sizing: border-box; color: #1990b8;">require_once</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">(</span><span class="token constant" style="box-sizing: border-box; color: #c92c2c;">ROOT_PATH</span> <span class="token operator" style="box-sizing: border-box;">.</span> <span class="token string single-quoted-string" style="box-sizing: border-box; color: #2f9c0a;">'/404.php'</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">)</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">;</span>
	<span class="token keyword" style="box-sizing: border-box; color: #1990b8;">die</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">(</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">)</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">;</span>
<span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">}</span>
<span class="token variable" style="box-sizing: border-box; color: #a67f59; background: rgba(255, 255, 255, 0.5);">$category_id</span> <span class="token operator" style="box-sizing: border-box;">=</span> <span class="token variable" style="box-sizing: border-box; color: #a67f59; background: rgba(255, 255, 255, 0.5);">$category_id</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">[</span><span class="token number" style="box-sizing: border-box; color: #c92c2c;">0</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">]</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">;</span>

<span class="token comment" style="box-sizing: border-box; color: #7d8b99;">// Query category</span>
<span class="token variable" style="box-sizing: border-box; color: #a67f59; background: rgba(255, 255, 255, 0.5);">$category</span> <span class="token operator" style="box-sizing: border-box;">=</span> <span class="token class-name static-context" style="box-sizing: border-box; color: #1990b8;">DB</span><span class="token operator" style="box-sizing: border-box;">::</span><span class="token function" style="box-sizing: border-box; color: #2f9c0a;">getInstance</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">(</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">)</span><span class="token operator" style="box-sizing: border-box;">-></span><span class="token function" style="box-sizing: border-box; color: #2f9c0a;">query</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">(</span><span class="token string single-quoted-string" style="box-sizing: border-box; color: #2f9c0a;">'SELECT categories.id AS id, categories.name AS name, categories.parent_category AS parent_category, descriptions.description AS description, descriptions.image AS image FROM nl2_buycraft_categories AS categories LEFT JOIN nl2_buycraft_categories_descriptions AS descriptions ON descriptions.category_id = categories.id WHERE categories.id = ?'</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">,</span> <span class="token keyword" style="box-sizing: border-box; color: #1990b8;">array</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">(</span><span class="token variable" style="box-sizing: border-box; color: #a67f59; background: rgba(255, 255, 255, 0.5);">$category_id</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">)</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">)</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">;</span>

<span class="token keyword" style="box-sizing: border-box; color: #1990b8;">if</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">(</span><span class="token operator" style="box-sizing: border-box;">!</span><span class="token variable" style="box-sizing: border-box; color: #a67f59; background: rgba(255, 255, 255, 0.5);">$category</span><span class="token operator" style="box-sizing: border-box;">-></span><span class="token function" style="box-sizing: border-box; color: #2f9c0a;">count</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">(</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">)</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">)</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">{</span>
	<span class="token keyword" style="box-sizing: border-box; color: #1990b8;">require_once</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">(</span><span class="token constant" style="box-sizing: border-box; color: #c92c2c;">ROOT_PATH</span> <span class="token operator" style="box-sizing: border-box;">.</span> <span class="token string single-quoted-string" style="box-sizing: border-box; color: #2f9c0a;">'/404.php'</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">)</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">;</span>
	<span class="token keyword" style="box-sizing: border-box; color: #1990b8;">die</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">(</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">)</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">;</span>
<span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">}</span>

<span class="token variable" style="box-sizing: border-box; color: #a67f59; background: rgba(255, 255, 255, 0.5);">$category</span> <span class="token operator" style="box-sizing: border-box;">=</span> <span class="token variable" style="box-sizing: border-box; color: #a67f59; background: rgba(255, 255, 255, 0.5);">$category</span><span class="token operator" style="box-sizing: border-box;">-></span><span class="token function" style="box-sizing: border-box; color: #2f9c0a;">first</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">(</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">)</span><span class="token punctuation" style="box-sizing: border-box; color: #5f6364;">;</span></span></span>

11 months ago
NamelessMC not working for me?

I'm setting up a namelessMC website for someone, and after installation it does not show the regular DefaultRevamp. I'm using pr11, I already tried pr12. I checked and reinstalled multiple times, it is not anything in the installation or MySQL database. I've also reset the MySQL database as well. I'm using GoDaddy hosting and a subdomain, with no modules or extra templates. 

 

Here is the staff panel: https://imgur.com/a/Dr1AEw0

Here is the home page: https://imgur.com/a/wKlof39

12 months ago
"Invalid token" when trying to enable a Widget.

I'm also having this issue, using a custom template that supports pr-12. Looks like I just can't enable/disable widgets, but I can edit them.