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

Error with 255 characters limit #22

Open
cesagonchu opened this issue Apr 20, 2021 · 5 comments
Open

Error with 255 characters limit #22

cesagonchu opened this issue Apr 20, 2021 · 5 comments

Comments

@cesagonchu
Copy link

cesagonchu commented Apr 20, 2021

When I go over 255 characters in the poll description field, I get this:

image

Notice: Constant THEME_FORUM_REPLY already defined in file /themes/xswatch4/language/english/main.php line 44
Notice: Array to string conversion in file /class/libraries/vendor/xoops/xmf/src/FilterInput.php line 251

@mambax7
Copy link
Contributor

mambax7 commented Apr 21, 2021

Currently I can't reproduce it:
image

When does it happen? When you create a new poll in XoopsPoll? When you edit?
Or when you create a new Poll in NewBB?

Please list the step necessary to reproduce the issue.

What PHP version are you using?

@mambax7
Copy link
Contributor

mambax7 commented Apr 21, 2021

For the xSwatch4, you might try to replace the line 44 in /themes/xswatch4/language/english/main.php with this:

if (!defined ('THEME_FORUM_REPLY')) {
    define('THEME_FORUM_REPLY', 'Reply');
}

and see if it helped.

@cesagonchu
Copy link
Author

cesagonchu commented Apr 21, 2021

I only created a new Poll in Newbb.
I will try with XoopsPoll and I will replace the line.

My config:

PHP 7.4.9
MYSQL 5.7.33-0ubuntu0.16.04.1
XOOPS 2.5.11-Beta2
XOOPS Polls 2.01 Beta 1 (mamba7 last changes)
Newbb 5.01 Beta 4 (mamba7 last changes)

@cesagonchu
Copy link
Author

When I create a poll from Newbb and after modifying line 44 of the xswatch4 theme, I get:
Notice: Array to string conversion in file /class/libraries/vendor/xoops/xmf/src/FilterInput.php line 251

@mambax7
Copy link
Contributor

mambax7 commented Apr 24, 2021

I couldn't replicate it :(

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

2 participants