Search found 411 matches

by rotezecke
Sat Dec 16, 2023 11:47 pm
Forum: CMSMS Core
Topic: deprecation warnings
Replies: 1
Views: 1398

deprecation warnings

Hi, i just updated to 2.2.19 and Php8.1 I now log these 4 messages with every request PHP Deprecated: Return type of Captcha\config::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to tempora...
by rotezecke
Sat Jul 09, 2022 12:41 am
Forum: Modules/Add-Ons
Topic: Front End User
Replies: 6
Views: 1064

Re: Front End User

have you created a user group? you need at least one group before you can create users as far as I remember.
by rotezecke
Thu May 05, 2022 6:20 pm
Forum: CMSMS Core
Topic: Help with News module and Search - displaying results in correct template
Replies: 4
Views: 897

Re: Help with News module and Search - displaying results in correct template

I'm not sure I understand the problem but this is a snippet i kept from an old sample search result template (i never used it this way though):

Code: Select all

{if $entry->module == 'News'}{News action='detail' article_id=$entry->modulerecord detailpage='News'} {/if}
by rotezecke
Tue Mar 01, 2022 6:20 am
Forum: Modules/Add-Ons
Topic: MAMS dynamic return URL with query variables
Replies: 1
Views: 677

Re: MAMS dynamic return URL with query variables

After reading in the source code I discovered a public method named SetPostLoginURL() (writing a Session variable) which is used if returnto is not set. So, before the redirect, I need to call this (via separated UDT or inside my forked plugin) $url = "//{$_SERVER['HTTP_HOST']}{$_SERVER['REQUES...
by rotezecke
Fri Feb 25, 2022 11:15 am
Forum: Modules/Add-Ons
Topic: MAMS dynamic return URL with query variables
Replies: 1
Views: 677

MAMS dynamic return URL with query variables

I have some private pages that test if a user is logged in, and if not, redirects to the login page. I just forked the {redirect_page} plugin and added a goback=true parameter which grabs the current page alias and adds it as query variable to the redirect URL. $query_vars = ''; if( !empty($params['...
by rotezecke
Tue Feb 22, 2022 12:48 pm
Forum: Modules/Add-Ons
Topic: Write Data To Database Table
Replies: 10
Views: 6899

Re: Write Data To Database Table

to connect to another database, I use: $cs = new \CMSMS\Database\ConnectionSpec; $cs->type = 'mysqli'; $cs->host = 'localhost'; $cs->dbname = 'other_database'; $cs->username = 'my_username'; $cs->password = 'my_password'; $db_other = \CMSMS\Database\Connection::initialize( $cs ); $query = "SELE...
by rotezecke
Mon Feb 14, 2022 5:49 pm
Forum: Modules/Add-Ons
Topic: pass a field from formbuilder to a udt
Replies: 3
Views: 1016

Re: pass a field from formbuilder to a udt

$filename = isset($params['filename']);

if i echo $filename i get a value of 1
isset() returns a boolean. so the "1" just means that the value is set. usually used in if statements. probably better is empty()

Code: Select all

if(!empty($params['filename']))
{
  $filename = $params['filename'];
}
by rotezecke
Thu Jan 27, 2022 9:10 pm
Forum: Modules/Add-Ons
Topic: SmartImage with Smarty Caching
Replies: 5
Views: 3715

Re: SmartImage with Smarty Caching

I recognise the error message. in my case, not smarty caching related.
SmartImage is very particular about paths.

viewtopic.php?f=7&t=82989
by rotezecke
Thu Oct 28, 2021 3:40 am
Forum: CMSMS Core
Topic: undocumented config variable?
Replies: 1
Views: 735

undocumented config variable?

Long story short: $config['ssl_uploads_url'] is not documented as far as I can tell. But maybe that's because you should not set it? -- I have a website that is installed on multiple servers, only difference is the config.php file. This is how I test updates, etc. The introduction of SmartImage caus...
by rotezecke
Fri Oct 22, 2021 9:04 am
Forum: CMSMS Core
Topic: Deprecated get_magic_quotes_runtime() in phpmailer
Replies: 4
Views: 1625

Deprecated get_magic_quotes_runtime() in phpmailer

from my error logs: PHP Deprecated: Function get_magic_quotes_runtime() is deprecated in .../lib/phpmailer/class.phpmailer.php on line 2692 I dont think that this phpmailer class is used by any core modules/plugins, but one of my own plugin uses it. Maybe the phpmailer class was since removed from t...
by rotezecke
Sat Oct 02, 2021 4:48 pm
Forum: Modules/Add-Ons
Topic: Warning messages in module manager
Replies: 4
Views: 1389

Re: Warning messages in module manager

Deleting the uninstalled folders fixed it! Thanks.
by rotezecke
Sat Oct 02, 2021 7:22 am
Forum: Modules/Add-Ons
Topic: Warning messages in module manager
Replies: 4
Views: 1389

Re: Warning messages in module manager

That's exactly what i did. As soon as I disabled CGExtensions, module manager shows warnings about CGSmartImage and CGExtensions. I have since uninstalled all CG stuff and the website works fine. Just those warnings. I suspect Javascript loads those warnings as I cannot see anything in module manage...
by rotezecke
Fri Oct 01, 2021 7:18 am
Forum: Modules/Add-Ons
Topic: Warning messages in module manager
Replies: 4
Views: 1389

Warning messages in module manager

I just disabled my last CG module (CGExtentions) now that SmartImage is released. Minor hickup with CMSMSExt (bug report sent) but the module manager shows two warnings: Debug display of 'CGSmartImage':(1.683581) - (net usage: 3876696) - (peak: 4935824) and CGExtensions module not loadable.. does it...
by rotezecke
Thu Sep 16, 2021 12:38 am
Forum: Modules/Add-Ons
Topic: SmartImage - not working for me
Replies: 16
Views: 2905

Re: SmartImage - not working for me

Could you elaborate on "Explicitly set the memory limit in the config file" please?
I am having the same experience, no output, no error. thats a straight conversion from CGSmartImage to SmartImage. The former works fine, the latter does not (regardless of path). Thanks
by rotezecke
Wed Sep 15, 2021 5:40 am
Forum: Modules/Add-Ons
Topic: SmartImage - not working for me
Replies: 16
Views: 2905

Re: SmartImage - not working for me

Same issue here. Nothing in PHP error log (PHP 7.4.xx). Admin log shows: Could not find a file at: uploads/images/DSC_0011.JPG Edit: actually, there's also a notice in PHP error log: Could not find a file at: uploads/images/DSC_0011.JPG in /var/www/public_html/modules/SmartImage/action.default.php o...

Go to advanced search