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

Blank mutliselect fields after selecting actions or filters --ereg() deprecated PHP7.0.. #14

Open
XPERTPCNET opened this issue Jun 5, 2016 · 1 comment

Comments

@XPERTPCNET
Copy link

XPERTPCNET commented Jun 5, 2016

When adding a Webhook, no fields items are displaying after selecting actions or filters .

The following error is logged:

PHP Fatal error: Uncaught Error: Call to undefined function ereg() in /path/wp-content/plugins/hookpress/services.php:13

Two possible solutions:

Solution 1
// changing the deprecated ereg() function to mb_ereg()
from: if (ereg('[A-Z]+',$arg))
to: if (mb_ereg('[A-Z]+',$arg))

Solution 2 (seems to be more recommended):

// changing the deprecated ereg() function to preg_match()
from: if (ereg('[A-Z]+',$arg))
to: if (preg_match('/[A-Z]+/',$arg))

@XPERTPCNET XPERTPCNET changed the title Blank mutliselect after selecting actions or filters (ereg deprecated PHP7.0). Blank mutliselect fileds after selecting actions or filters (ereg deprecated PHP7.0). Jun 5, 2016
@XPERTPCNET XPERTPCNET changed the title Blank mutliselect fileds after selecting actions or filters (ereg deprecated PHP7.0). Blank mutliselect fileds after selecting actions or filters --ereg() deprecated PHP7.0.. Jun 5, 2016
@XPERTPCNET XPERTPCNET changed the title Blank mutliselect fileds after selecting actions or filters --ereg() deprecated PHP7.0.. Blank mutliselect fields after selecting actions or filters --ereg() deprecated PHP7.0.. Jun 5, 2016
@oltodo
Copy link

oltodo commented Oct 4, 2016

Same problem with split function

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