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

redeclare qtranxf_trim_words #201

Closed
herrvigg opened this issue Jun 22, 2018 · 3 comments
Closed

redeclare qtranxf_trim_words #201

herrvigg opened this issue Jun 22, 2018 · 3 comments
Labels
bug Something isn't working, reproducible legacy issue Legacy issue imported from original repo

Comments

@herrvigg
Copy link
Collaborator

Issue by faina09
Thursday Jul 23, 2015 at 19:33 GMT
Originally opened as qTranslate-Team/qtranslate-x#201


PHP Fatal error: Cannot redeclare qtranxf_trim_words()
(previously declared in ..\wp-content\plugins\qtranslate-x\admin\qtx_admin_utils.php:643)
in ..\wp-content\plugins\qtranslate-x\qtranslate_frontend.php on line 657

@herrvigg
Copy link
Collaborator Author

Comment by Grafcom
Thursday Jul 23, 2015 at 19:37 GMT


@faina09
same as this?
https://wordpress.org/support/topic/cannot-redeclare-qtranxf_trim_words?

@herrvigg herrvigg added bug Something isn't working, reproducible legacy issue Legacy issue imported from original repo labels Jun 22, 2018
@herrvigg
Copy link
Collaborator Author

Comment by faina09
Thursday Jul 23, 2015 at 19:42 GMT


yes, I solved editing
\wp-content\plugins\qtranslate-x\admin\qtx_admin_utils.php
inserting the if line @line 642

if(!function_exists('qtranxf_trim_words')){
//filter added in qtranslate_hooks.php
function qtranxf_trim_words( $text, $num_words, $more, $original_text ) {
(....)
}
}

@herrvigg
Copy link
Collaborator Author

Comment by johnclause
Friday Jul 31, 2015 at 20:27 GMT


Should fixed in 3.4.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working, reproducible legacy issue Legacy issue imported from original repo
Projects
None yet
Development

No branches or pull requests

1 participant