Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

page?mn=structure bug #99

Open
SeditioCMS opened this issue Apr 18, 2024 · 3 comments
Open

page?mn=structure bug #99

SeditioCMS opened this issue Apr 18, 2024 · 3 comments

Comments

@SeditioCMS
Copy link

SeditioCMS commented Apr 18, 2024

I added 110+ categories and it won't let me add more.

It gives the following error and breaks the site.
**Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs**\system\core\admin*admin.page.inc.php on line 169
foreach ($sed_cat as $i => $x) { if ($i != 'all') { $selected = ($i == $row['structure_tpl']) ? "selected=\"selected\"" : ''; $st_tpl .= "<option value=\"" . $i . "\" $selected> " . $x['tpath'] . "</option>"; } }

It does not accept adding default.tpl.
**Warning: array_key_exists() expects parameter 2 to be array, bool given in C:\xampp\htdocs**\system\core\list*list.inc.php on line 69
if (!array_key_exists($c, $sed_cat) && !($c == 'all')) { sed_die(); }

Where is the source of $sed_cat and where does it get the data from?
What do $sed_acc and $sed_catacc do?

It returns bool(false) is this true?

@SeditioCMS
Copy link
Author

Screenshot_1

@SeditioCMS
Copy link
Author

$g = array ('ncode','npath', 'ntitle', 'ndesc', 'nicon', 'nthumb', 'ngroup');
    		foreach($g as $k => $x) $$x = $_POST[$x];
    		$group = (isset($group)) ? 1 : 0;
    		sed_structure_newcat($ncode, $npath, $ntitle, $ndesc, $nicon, $ngroup);

'nthumb' sounds empty

@SeditioCMS
Copy link
Author

the problem seems to be here

if (!isset($sed_cat) && !$cfg['disable_page'])
	{
	$sed_cat = sed_load_structure();
	sed_cache_store('sed_cat', $sed_cat, 3600);
	}

When I did this the problem was solved

if (!$sed_cat && !$cfg['disable_page'])
	{
	$sed_cat = sed_load_structure();
	sed_cache_store('sed_cat', $sed_cat, 3600);
	}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant