[SOLVED] Please help with toolbox

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
rooon
Forum Members
Forum Members
Posts: 113
Joined: Mon Dec 05, 2011 4:40 pm

[SOLVED] Please help with toolbox

Post by rooon »

Hello,

I have a question about module ToolBox.
After installing, most of the tabs in the admin panel give some errors. These are some errors shown at the top of the tabs:

404 Errors
Notice: Array to string conversion in D:\xampp\htdocs\rvs\lib\classes\module_support\modform.inc.php on line 70

Redirect URLs
Notice: Undefined variable: redirect in D:\xampp\htdocs\rvs\modules\ToolBox\function.admin_redirects.php on line 141

New URL redirect
Notice: Array to string conversion in D:\xampp\htdocs\rvs\lib\classes\module_support\modform.inc.php on line 70
Notice: Undefined index: redirectid in D:\xampp\htdocs\rvs\lib\smarty\libs\sysplugins\smarty_internal_templatebase.php(151) : eval()'d code on line 65
Notice: Trying to get property of non-object in D:\xampp\htdocs\rvs\lib\smarty\libs\sysplugins\smarty_internal_templatebase.php(151) : eval()'d code on line 65

tbimage
Notice: Array to string conversion in D:\xampp\htdocs\rvs\lib\classes\module_support\modform.inc.php on line 70
Notice: Array to string conversion in D:\xampp\htdocs\rvs\lib\classes\module_support\modform.inc.php on line 70

Preferences
Notice: Array to string conversion in D:\xampp\htdocs\rvs\lib\classes\module_support\modform.inc.php on line 70

My test website runs in XAMPP with PHP 5.4.31 on domain www.lan.home (127.0.0.1)

I use friendly urls with
url_rewriting: 'mod_rewrite'
page_extension: ''

The installed modules are:

Code: Select all

CMSMS 1.12
CMSMailer  5.2.2
CMSPrinting  1.0.5
FileManager  1.4.5
MenuManager  1.8.6
MicroTiny  1.2.9
ModuleManager  1.5.8
News  2.15.1
Search  1.7.12
ThemeManager  1.1.8
CGExtensions  1.49.9
Gallery  2.0.2
TinyMCE  2.9.12
FormBuilder  0.8.1.1
ECB  1.6
ToolBox  1.3.11
Please how to solve this?

Ronald
Last edited by rooon on Sun Feb 14, 2016 8:36 pm, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Please help with toolbox

Post by Dr.CSS »

Last update looks to be almost a year ago, maybe it isn't up to the latest version of CMSMS API...
chandra

Re: Please help with toolbox

Post by chandra »

rooon wrote: I have a question about module ToolBox.
After installing, most of the tabs in the admin panel give some errors. These are some errors shown at the top of the tabs:

404 Errors
Notice: Array to string conversion in D:\xampp\htdocs\rvs\lib\classes\module_support\modform.inc.php on line 70
I'm using Toolbox for a long time, and it works great for me.

By the way - all "errors" you've posted are only notices which shouldn't break the module functionality.

You can supress such messages with right setting in htaccess. See the example in doc/htaccess.txt
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Please help with toolbox

Post by Rolf »

Add to config.php:

error_reporting(E_ERROR & ~E_DEPRECATED & ~E_NOTICE);
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
rooon
Forum Members
Forum Members
Posts: 113
Joined: Mon Dec 05, 2011 4:40 pm

Re: Please help with toolbox

Post by rooon »

Thank you all for your replies!
error_reporting did the trick, htaccess also. All notices disappeared.

Unfortunately I cannot test ToolBox in a subdir because ToolBox is hard coded for root installation only :( and you're right, it is outdated.... btw functionality of this module is nice.

Maybe you can help me with an alternative:
I have rebuild a static site with cmsms. In the old cms there are about 300 (!) redirects. So I am searching for a smart and user-friendly solution in cmsms to work with many redirects. Somebody any idea how to solve this?

Thanks, Ronald
rooon
Forum Members
Forum Members
Posts: 113
Joined: Mon Dec 05, 2011 4:40 pm

Re: Please help with toolbox

Post by rooon »

Hi all,

I have a question about the 404 page. How can I get the value of $alias_you_are_looking_for on the 404 page?

404 page:

Code: Select all

{if $alias_you_are_looking_for == 'unknown-alias-1'}
  {redirect_page page='some-page-alias-1'}
{elseif $alias_you_are_looking_for == 'unknown-alias-2'}
  {redirect_page page='some-page-alias-2'}
{else}
  <p>Sorry, page not found</p>
{/if}
Is {redirect_page ....} a real 301 redirect?

Please, anybody can help me here?

Thanx, Ronald
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Please help with toolbox

Post by Rolf »

In my opinion it is not the job of a CMS to handle that much redirects.
There is what the .htaccess file is for.
Read some basics here http://docs.cmsmadesimple.org/customizi ... oved-pages related to CMSMS, but a Google search will bring you much more help
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
rooon
Forum Members
Forum Members
Posts: 113
Joined: Mon Dec 05, 2011 4:40 pm

Re: Please help with toolbox

Post by rooon »

Rolf, thanx for your reply, and you're right about this. For me it is no problem to manage the 301's in the htaccess, but for the end-user it is. He asks me for a simple way to manage these 301's. I searched for a 301 managing tool (php) outside the cms but these tools can only manage the user/password...

Any other idea?

Greatz, Ronald
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm

Re: Please help with toolbox

Post by Jeff »

rooon wrote:I have a question about the 404 page. How can I get the value of $alias_you_are_looking_for on the 404 page?
You have to look at the code above it.
rooon wrote:Is {redirect_page ....} a real 301 redirect?
Yes I believe it is. You can check looking at the Network tab in your Browser's Inspect panel.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Please help with toolbox

Post by Rolf »

Try {$smarty.get.page}
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
rooon
Forum Members
Forum Members
Posts: 113
Joined: Mon Dec 05, 2011 4:40 pm

Re: Please help with toolbox

Post by rooon »

Hi Rolf,

{$smarty.get.page} does the job.
For comparison of all those lines I'll create an udt which has to be as user-friendly as I can code.

Thanx and have fun, Ronald
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: [SOLVED] Please help with toolbox

Post by Rolf »

- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Locked

Return to “Modules/Add-Ons”