Page 1 of 1

[SOLVED] Please help with toolbox

Posted: Thu Feb 11, 2016 5:41 pm
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

Re: Please help with toolbox

Posted: Thu Feb 11, 2016 6:52 pm
by Dr.CSS
Last update looks to be almost a year ago, maybe it isn't up to the latest version of CMSMS API...

Re: Please help with toolbox

Posted: Thu Feb 11, 2016 8:36 pm
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

Re: Please help with toolbox

Posted: Thu Feb 11, 2016 9:34 pm
by Rolf
Add to config.php:

error_reporting(E_ERROR & ~E_DEPRECATED & ~E_NOTICE);

Re: Please help with toolbox

Posted: Fri Feb 12, 2016 11:49 pm
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

Re: Please help with toolbox

Posted: Sun Feb 14, 2016 5:05 pm
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

Re: Please help with toolbox

Posted: Sun Feb 14, 2016 5:49 pm
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

Re: Please help with toolbox

Posted: Sun Feb 14, 2016 6:20 pm
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

Re: Please help with toolbox

Posted: Sun Feb 14, 2016 6:32 pm
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.

Re: Please help with toolbox

Posted: Sun Feb 14, 2016 6:52 pm
by Rolf
Try {$smarty.get.page}

Re: Please help with toolbox

Posted: Sun Feb 14, 2016 8:35 pm
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

Re: [SOLVED] Please help with toolbox

Posted: Sun Feb 14, 2016 9:31 pm
by Rolf