MyBB Community Forums

Full Version: Page Manager has a lot errors
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

Warning
 [2] Illegal string offset 'class' - Line: 59 - File: admin/inc/class_table.php PHP 7.1.14 (Linux)
File
Line
Function/admin/inc/class_table.php
59
errorHandler->error
/inc/plugins/pagemanager.php
325
DefaultTable->construct_row
/inc/class_plugins.php
142
pagemanager_admin
/admin/index.php
819
pluginSystem->run_hooks

Warning [2] Cannot assign an empty string to a string offset - Line: 59 - File: admin/inc/class_table.php PHP 7.1.14 (Linux)
File
Line
Function/admin/inc/class_table.php
59
errorHandler->error
/inc/plugins/pagemanager.php
325
DefaultTable->construct_row
/inc/class_plugins.php
142
pagemanager_admin
/admin/index.php
819
pluginSystem->run_hooks

Warning [2] Illegal string offset 'class' - Line: 64 - File: admin/inc/class_table.php PHP 7.1.14 (Linux)
File
Line
Function/admin/inc/class_table.php
64
errorHandler->error
/inc/plugins/pagemanager.php
325
DefaultTable->construct_row
/inc/class_plugins.php
142
pagemanager_admin
/admin/index.php
819
pluginSystem->run_hooks


How to delete these errors?
Are you using the 1.8 compatible version?
Its tested and works fine ...
(04-10-2018, 04:44 AM)effone Wrote: [ -> ]Are you using the 1.8 compatible version?
Its tested and works fine ...

Yes! 1.8 version.

(04-10-2018, 11:06 AM)newyork Wrote: [ -> ]
(04-10-2018, 04:44 AM)effone Wrote: [ -> ]Are you using the 1.8 compatible version?
Its tested and works fine ...

Yes! 1.8 version.

Tried in different forums. all same errors!
(04-10-2018, 04:32 PM)SvePu Wrote: [ -> ]Please try this version => https://community.mybb.com/mods.php?action=view&pid=936

I tried, it is working, 

but why my header looks different, cut off from the custom page.

This is my code:

<body>
<link href="/uploads/home/default.css" rel="stylesheet" type="text/css" media="all" />
<link href="/uploads/home/fonts/fonts.css" rel="stylesheet" type="text/css" media="all" />

<div id="page">
<div class="container">
<div class="title">
<h2>My CSP</h2>

</div>
<div class="boxA">
<div class="box margin-btm">
<img src="/uploads/home/images/pic01.jpg" width="320" height="180" alt="" />
<div class="details">
<p>Log in with your CUNY Login credentials. (CUNYfirst [email protected] and CUNYfirst Password).</p>
</div>
<a href="https://ssologin.cuny.edu/cuny.html?resource_url=https%3A%2F%2Fhome.cunyfirst.cuny.edu%252Fpsp%252Fcnyepprd%252FEMPLOYEE%252FEMPL%252Fh%252F%3Ftab%253DDEFAULT" class="button">Login CUNYFirst</a>
</div>
<div class="box">
<img src="/uploads/home/images/pic07.jpg" width="320" height="220" alt="" />
<div class="details">
<p>Blackboard allows students and faculty to participate in classes delivered online and activities to complement face-to-face teaching. </p>
</div>
<a href="https://ssologin.cuny.edu/cuny.html?resource_url=https%3A%2F%2Fbbhosted.cuny.edu%252F" class="button">Login Blackboard</a>
</div>
</div>
<div class="boxB">
<div class="box">
<img src="/uploads/home/images/pic03.jpg" width="320" height="280" alt="" />
<div class="details">
<p>Consectetuer adipiscing elit. Nam pede erat, porta eu, lobortis eget, tempus et, tellus. Etiam neque. Vivamus consequat lorem at nisl.</p>
</div>
<a href="#" class="button">More Details</a>
</div>
<div class="box">
<img src="/uploads/home/images/pic05.jpg" width="320" height="140" alt="" />
<div class="details">
<p>What it takes to get into New York City's Best Public Colleges</p>
</div>
<a href="https://www.theatlantic.com/education/archive/2015/01/what-it-takes-to-get-into-new-york-citys-best-public-colleges/384451/" class="button">More Details</a>
</div>

</div>
<div class="boxC">
<div class="box">
<img src="/uploads/home/images/pic04.jpg" width="320" height="200" alt="" />
<div class="details">
<p>Consectetuer adipiscing elit. Nam pede erat, porta eu, lobortis eget, tempus et, tellus. Etiam neque. Vivamus consequat lorem at nisl.</p>
</div>
<a href="#" class="button">More Details</a>
</div>
<div class="box">
<img src="/uploads/home/images/pic06.jpg" width="320" height="200" alt="" />
<div class="details">
<p>Consectetuer adipiscing elit. Nam pede erat, porta eu, lobortis eget, tempus et, tellus. Etiam neque. Vivamus consequat lorem at nisl.</p>
</div>
<a href="#" class="button">More Details</a>
</div>

</div>

<div class="boxD">

<img src="/uploads/home/images/pic02.jpg" width="320" height="200" alt="" />
<div class="details">
<p>Consectetuer adipiscing elit. Nam pede erat, porta eu, lobortis eget, tempus et, tellus. Etiam neque. Vivamus consequat lorem at nisl.</p>
</div>
<a href="#" class="button">More Details</a>
</div>
<div class="box">
<img src="/uploads/home/images/pic08.jpg" width="320" height="200" alt="" />
<div class="details">
<p>Consectetuer adipiscing elit. Nam pede erat, porta eu, lobortis eget, tempus et, tellus. Etiam neque. Vivamus consequat lorem at nisl.</p>
</div>
<a href="#" class="button">More Details</a>
</div>





</div>
</div>
</div>

</body>
</html>
Hi, import the attached pagemanager xml file and edit the page as you like Wink
(04-12-2018, 09:09 PM)SvePu Wrote: [ -> ]Hi, import the attached pagemanager xml file and edit the page as you like Wink


Thanks, let me try!
Wow you are awesome.

Well, the HTML works, but CSS and JavaScripts not.

Also I tried to add the PHP header on the Page manager as your code, it didn't work, the page even not showing anything.

so my question is, if I want the header and also the styling and JavaScripts, is it possible?
Thanks sir.
(04-10-2018, 03:01 AM)newyork Wrote: [ -> ]
Warning
 [2] Illegal string offset 'class' - Line: 59 - File: admin/inc/class_table.php PHP 7.1.14 (Linux)
File
Line
Function/admin/inc/class_table.php
59
errorHandler->error
/inc/plugins/pagemanager.php
325
DefaultTable->construct_row
/inc/class_plugins.php
142
pagemanager_admin
/admin/index.php
819
pluginSystem->run_hooks

Warning [2] Cannot assign an empty string to a string offset - Line: 59 - File: admin/inc/class_table.php PHP 7.1.14 (Linux)
File
Line
Function/admin/inc/class_table.php
59
errorHandler->error
/inc/plugins/pagemanager.php
325
DefaultTable->construct_row
/inc/class_plugins.php
142
pagemanager_admin
/admin/index.php
819
pluginSystem->run_hooks

Warning [2] Illegal string offset 'class' - Line: 64 - File: admin/inc/class_table.php PHP 7.1.14 (Linux)
File
Line
Function/admin/inc/class_table.php
64
errorHandler->error
/inc/plugins/pagemanager.php
325
DefaultTable->construct_row
/inc/class_plugins.php
142
pagemanager_admin
/admin/index.php
819
pluginSystem->run_hooks


How to delete these errors?

if you are like me, also originally from "new york" (so I feel ya on your handle), you want precise and simple answers to the actual question that you asked, so here it is, lol! Wink

Find:

else
 {
 $highlight = '';
 }



Change:
$highlight= '';

to:

$highlight = array();

Examples:

Before:

[Image: 351zk92.png]

After:

[Image: 2r215s4.png]