jsber
Forum Replies Created
-
Hi bamorbambam,
I had the exact same issue as the topic of this thread and it drove me mad. It also blocked the entire login page..
I went this far to add a completely clean install of wordpress and as soon as I added even an empty php.ini file, the errors appeared. So it had clearly nothing to do with plugins or themes or whatever.After some searching I started fiddling around with the PHP versions. I started on v7.1. Switching to v7.3.4 fixed it for me. Or so I though because after some time it started failing again. I switched back to v7.1 and it was now fixed, or so I hoped again because today I saw it was failing again. I could switch again to v7.3.4 but it was clearly not a stable solution…
I contacted the helpdesk and they told me “oh but you need to add some specific lines to your php.ini file to make it work”…
They seem to have enabled “Zend Optimizer” and “ionCube”. Not really sure what they are but the errors are gone for now…These were the two magical lines added:
zend_extension=/usr/local/php71/lib/php/extensions/ioncube.so zend_extension=/usr/local/php71/lib/php/extensions/ZendOptimizer.soMake sure though you enable this for the right version of PHP. I’m running on PHP v7.1 hence
.../php71/...
(I’m hosted on SiteGround. I’m not sure if this works on all host..)An other solution would be to add your php.ini values to you .htaccess file like so:
php_value upload_max_filesize 64M php_value post_max_size 64MThis way you don’t have any php.ini file and the errors should not appear..
Some references and more info:
https://www.php.net/manual/en/configuration.changes.php
https://www.ipserverone.info/control-panel/how-to-change-php-ini-values-using-htaccess/
https://www.certguidance.com/change-php-settings-using-htaccess-php-ini/I haven’t tried this out just yet because I’m first going to give the Zend Optimizer and ionCube a chance..
hope this helps 🙂
- This reply was modified 6 years, 11 months ago by jsber. Reason: added references
Thank you for you response!
I tried usingpll_save_postas follows:add_action('pll_save_post', 'test_func', 10, 3); function test_func($post_id, $post, $translations) { syslog(LOG_WARNING, 'post status: '.$post->post_status.', post title: '.$post->post_title.', translation count: '.count($translations)); foreach ($translations as $language=>$post_id) { syslog(LOG_WARNING,$language.' '.$post_id); } }I create an English page “Page en” and a French translation for it, “Page fr”.
Now I create a dutch translation “Page nl” and when I go look at the logs for “Page nl” I still get only one related translation for “Page nl” the first few times the action is triggered..post status: auto-draft, post title: Auto Draft, translation count: 1 nl 45 post status: draft, post title: Page nl, translation count: 1 nl 45I would have expected to find the translations for this new “Page nl” to be able to check them…
Only after pressing the save draft button, I get:
post status: draft, post title: Page nl, translation count: 2 en 16 fr 11Is this the most reliable way of checking for translations when a new post is being saved?
- This reply was modified 8 years, 2 months ago by jsber.
Forum: Plugins
In reply to: [YouTube for WordPress] Date Picker conflict with other pluginsHi Evan!
As the jQuery-UI being used here is directly from google instead of the native wordpress version, it automatically includes datepicker.js and takes over all other datepick functionality on all other pages. Aside form overwriting the style/layout of all datepickers, it also takes over functionality of a custom timepicker in the plugin “events maker” which renders this custom field unusable.
Thanks in advance!
Strange, because my other custom time fields don’t get a date picker but still use the time picker (though the layout changes after activating this other plugin)
And I noted I have a few other plugins who change the layout of the date/time/color picker. I’m somewhat new to this level of development. How should one prevent this from happening (as a developer)?
Alright, I found a way to bring things back to normal. It had to do with Polylang it seems. In “string translations” everything was moved one item down :s I have no clue how this happened and can’t reproduce it but I’m glad I was able to fix this 🙂
Thanks for your help!Hi! Thanks for responding 🙂
I already deactivated and reactivated Jetpack’s Sharing module, I even deactivated the entire Jetpack plugin but it doesn’t seem to make any difference…I think it was left untouched, it was “Delen:” as the blog is installed in dutch.
Edit:
The website is: bevegan.be (normally redirected to another website but now occasionally accessible. If you want, I can give you an account to see what’s going on?)hmm, now I get this error on the online and local install:
Notice: get_languages_list was called incorrectly in …/wordpress/wp-content/plugins/events-maker/includes/class-wpml.php on line 105: the call to $polylang->get_languages_list() has been deprecated in Polylang 1.2, use $polylang->model->get_languages_list() instead. Error handler in …/wordpress/wp-content/plugins/polylang/include/base.php on line 112
And on my local install I still get a fatal error on a white screen saying:
Fatal error: Call to a member function get_languages_list() on a non-object in …/wordpress/wp-content/plugins/events-maker/includes/class-wpml.php on line 105
Thanks for the quick responses and helpful solution!
This solved the problem!Unfortunately I encountered another problem..
When installing Polylang and Events Maker side by side but without configuring anything, and more specific, not setting any languages in Polylang, I get a white screen everywhere which makes it impossible to login again. When turning debug mode on, I get these errors:Notice: Trying to get property of non-object in …/www/wordpress/wp-content/plugins/events-maker/includes/class-wpml.php on line 105
Fatal error: Call to a member function get_languages_list() on a non-object in …/www/wordpress/wp-content/plugins/events-maker/includes/class-wpml.php on line 105
Deleting the content of the “active_plugins” entry in my database, activating my plugins one by one and setting a polylang language before activating Events Maker did the trick (after removing the language again, these same errors came back), but I guess it can put people in nasty situations..
Super thanks for this wonderful plugin though! I hope my comments helped making it even better 😉 Keep up the good work!
I must say Debugging was on, though. On an online setup debugging was turned off and there were no errors. Though after turning it on, I received the same errors. These errors only started happening after updating to 1.6.0, though. Before there were no such errors even with degugging on..
Here is a link to an online install: http://wp.mayasaperadancecompany.com/ Though there is noting much to see as it is a clean install and just the needed plugins installed..In my setup I’m using Polylang with English, French and Dutch. I use (the updated) Twenty Fourteen for now..
It does not happen on any page load though, just with any activation or deactivation of plugins and when I switch to different themes (like Twenty Fifteen) as far as I have noticed.I also get this (dubble) notice on every page load, front-end as well as back-end:
Notice: Undefined property: WPML_Translate_Post_Type::$default_lang in …/wordpress/wp-content/plugins/events-maker/includes/libraries/translate-post-type.php on line 194Notice: Undefined property: WPML_Translate_Post_Type::$default_lang in …/wordpress/wp-content/plugins/events-maker/includes/libraries/translate-post-type.php on line 194
Unfortunately I’m running this site locally for testing purposes..
I will try to put something online :pForum: Fixing WordPress
In reply to: Can’t create new categoriesOhboy, thanks a lot 😀 There was no .htaccess idd.
Thanks a lot
-.jSBer