Archived

This topic is now archived and is closed to further replies.

  • 0

Fatal error after updating plugin

Question

Posted · Report post

I just tried to update a pluging on site http://1stcmec.org and I received this error Fatal error: Cannot redeclare class lessc_formatter_compressed in /home/content/54/7527054/html/firstcme/wp-content/themes/pagelines/includes/less.plugin.php on line 3326

 

How do I get this corrected?

Share this post


Link to post
Share on other sites

29 answers to this question

Posted · Report post

Hi Chules,

 

First, let me say there seems to be a server issue going on here because I've not seen so many premium plugins crash all at once.

 

I visited your site and found the following error:

Notice: wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or init hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in /var/www/vhosts/dev.sportscare1.com/wp-includes/functions.php on line 2959 Notice: Undefined index: std in /var/www/vhosts/dev.sportscare1.com/wp-content/plugins/codecanyon-1497329-wp-boxer-pro/framework/cow_plugin_framework.php on line 367 Notice: A session had already been started - ignoring session_start() in /var/www/vhosts/dev.sportscare1.com/wp-includes/plugin.php on line 406 

This was at the very top of your page.  As you can see, none of it has anything to do with PageLines. Instead, it appears to be WP-Boxer, one of my favorite plugins having issues with WordPress itself.  That said, I happen to use Boxer plugin extensively on my site and do not get these errors.  Again, this leads me to thing this is a server issue.  It's the same issue you're seeing.

 

At the bottom of your page, you have this:

Notice: Undefined index: aboutme in /var/www/vhosts/dev.sportscare1.com/wp-content/plugins/social-media-widget/social-widget.php on line 133 Notice: Undefined index: instagram in /var/www/vhosts/dev.sportscare1.com/wp-content/plugins/social-media-widget/social-widget.php on line 134 Notice: Undefined index: slashdot in /var/www/vhosts/dev.sportscare1.com/wp-content/plugins/social-media-widget/social-widget.php on line 135 Notice: Undefined index: github in /var/www/vhosts/dev.sportscare1.com/wp-content/plugins/social-media-widget/social-widget.php on line 136 Notice: Undefined index: goodreads in /var/www/vhosts/dev.sportscare1.com/wp-content/plugins/social-media-widget/social-widget.php on line 137 Notice: Undefined index: cuttingsme in /var/www/vhosts/dev.sportscare1.com/wp-content/plugins/social-media-widget/social-widget.php on line 138 

Once more, this is a plugin issue not specific to PageLines, but to the there doesn't appear to be anything pointing to WordPress either.

 

I would sincerely recommend contacting your hosting company and asking them to check the entirety of your server to identify errors.  Let them know you want at least 128Mb of RAM allocated for PHP processes - but this doesn't appear to be a memory issue. The errors are different.

 

Much as we'd like to, we cannot support server issues or third-party premium plugns.  You need to communicate directly with the plugin authors or go through the support forums provided for them by the retailer.

 



Share this post


Link to post
Share on other sites

Posted · Report post

What plugin were you updating?

 

I haven't seen that issue before but have you tried renaming the plugin folder (the one you were updating) via FTP or your host's file manager?

Share this post


Link to post
Share on other sites

Posted · Report post

I believe it was an "All in one calendar" plugin but I"m not 100% sure. I haven't tried to rename any folder because I wasn't sure what to do. If I try to rename the folder will it get re-created or do I have to try and overwright it someway?

Share this post


Link to post
Share on other sites

Posted · Report post

You should try renaming the folder and see if the problem persists.

Share this post


Link to post
Share on other sites

Posted · Report post

I found the "All in one event calendar" folder and deleted the folder and now the website is back active. Thanks for all the help.

Share this post


Link to post
Share on other sites

Posted · Report post

Then there you go :)  The plugin had bad code in it somewhere. Definitely don't install it again, and always make sure you're using up to date and high-rated plugins on your site.

Share this post


Link to post
Share on other sites

Posted · Report post

I deleted the All-in-one folder as well, and the Pagelines theme will still not activate: Parse error: syntax error, unexpected T_CLASS, expecting T_FUNCTION in /home2/rcrimcom/public_html/wp-content/themes/pagelines2/includes/less.plugin.php on line 3328

Share this post


Link to post
Share on other sites

Posted · Report post

You have edited less.plugin.php

 

Download a fresh copy of the framework.

Share this post


Link to post
Share on other sites

Posted · Report post

Chules,

 

I'm not sure if you have a cache plugin, but if so, please clear the cache within the plugin, then clear your browser's cache. Often the updates or changes are not seen because they get caught up in the cache.

Share this post


Link to post
Share on other sites

Posted · Report post

I do not have a cache plugin installed and I again my site has crashed with the plugin.  What happens is you get a white screen of death on the site.  I have contacted support at Timely to address several issues besides this critical one. 

 

I am using the paid version of this plugin.  There is also a conflict with the pagelines theme where the popup boxes are not dissplaying correctly.  I have activated the plugin for one last attempt to resolve this issue before moving to another event system.  You can see the conflict with the pop up boxes by going to http://dev.sportscare1.com/services/mobile-treatment/. Just scroll over the event name and you will see the issue.

 

Here is the error message I receive when turning debug on my site.  It only references a plugin I am using called wp-boxer-pro that I may remove anyway

 

Notice: wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or init hooks. Please see Debugging in WordPress
for more information. (This message was added in version 3.3.) in
/var/www/vhosts/dev.sportscare1.com/wp-includes/functions.php on line
2959

Notice: Undefined index: std in
/var/www/vhosts/dev.sportscare1.com/wp-content/plugins/codecanyon-1497329-wp-boxer-pro/framework/cow_plugin_framework.php
on line 367

Notice: A session had already been started - ignoring session_start() in
/var/www/vhosts/dev.sportscare1.com/wp-includes/plugin.php on line 406

Share this post


Link to post
Share on other sites

Posted · Report post

I host my site on Rackpace Servers and I will contact them for support.  I have never had an issue with them but hopefully they can find something.

 

Thank you

 

Mark

Share this post


Link to post
Share on other sites

Posted · Report post

Hello.

Do you know when the next version of Pagelines will be released?

Thanks

Share this post


Link to post
Share on other sites

Posted · Report post

Thanks for the quick help. Update to 2.4 works fine for me.

Share this post


Link to post
Share on other sites

Posted · Report post

Edit - checked with core team, next version out soon.

Share this post


Link to post
Share on other sites

Posted · Report post

2.4 has now been released, if you're having problems with this plugin please update :-)

Share this post


Link to post
Share on other sites

Posted · Report post

Hi,

I just updated the Timely plugin to 1.9 and then the site crashed. It worked very well with the 1.8 version...

For information, I use the last version of Framework, I cleared the cache and the site is ok when I de-activate the plugin… So, is there a solution to keep Timely working on Pagelines ?

Thanks !

Olivier

Share this post


Link to post
Share on other sites

Posted · Report post

Hi,

 

I just installed the free version of Timely and have no issue, the plugin as far as I can tell is working as intended. I was using the latest version of the Wordpress, PageLines and Timely.

 

http://d.pr/i/vtAe

Share this post


Link to post
Share on other sites

Posted · Report post

Hi Danny,

 

I also have the latest version of Wordpress, PageLines and Timely... but it doesn't work... => "Fatal error: Exception thrown without a stack frame in Unknown on line 0"

 

Olivier

Share this post


Link to post
Share on other sites

Posted · Report post

Try disabling all non-PageLines plugins and attempt to upgrade Timely again, see if this resolves your issue.

Share this post


Link to post
Share on other sites

Posted · Report post

I tried and there is no more "fatal error" (for the moment). At the first glance, the plugin seems to work but in fact there are several issues (the calendar can't change the month and stays on january ; events don't appear on the calendar , some pics are shown where they shouldn't... ). Where is the problem? TIMELY or the compatibility with PAGELINES?

Thanks Danny!

 

Olivier

Share this post


Link to post
Share on other sites

Posted · Report post

This information on TIMELY website (http://help.time.ly/customer/portal/articles/942302-conflict-with-1-9-and-pagelines-theme) :

 

 

Conflict with 1.9 and Pagelines Theme LAST UPDATED: JAN 16, 2013 08:24PM PST
This applies to the following calendar editions:  Standard, Pro


What is it?

There is a conflict  the Pagelines theme and the Timely Calendar. This conflict may cause the entire site to crash.

Technical Details

Both Pagelines and the Timely Calendar define the class "lessc_formatter_compressed" (they both use the same LESS compiler). The Timely Calendar is designed to make a check to see if the class is already declared before declaring it ourselves. PageLines does not do any such check, and thus it crashes WordPress.

Solutions or Workaround

Unfortunately there is no current workaround for the conflict. The developers of Pagelines have said that they will fix this in their next update. Until then we recommend either using another theme or holding off on your upgrade.

Share this post


Link to post
Share on other sites

Posted · Report post

The timely dev contacted us and we made the changes in version 2.4

Share this post


Link to post
Share on other sites

Posted · Report post

Hi there,

 

I had the same issue when updating the premium version of the Timely "All in One Calender" from version 1.8.4 to 1.9.  This is a very well documented and maintained plugin.

 

It seems that both the Pagelines Framework and the new calendar version are using the LESS thingy. There is a conflict between both uses of it.

Given the error message above, when Pagelines tries to use some of the classes of LESS, they have already been instantiated by the calendar. or vice versa. At least one plugin need to check whether the LESS thingy has already been loaded.

 

Some people suggest to use autoload (whatever that is; you will probably know):

See: http://stackoverflow.com/questions/708140/php-fatal-error-cannot-redeclare-class

 

See also the Timely calendar forum for a similar error description there: http://help.time.ly/customer/portal/questions/746793-update-to-1-9-fails

 

Please help with that issue as the calendar is widely used. Deinstalling or not updating that plugin is definitely NOT an option.

 

 

 

Share this post


Link to post
Share on other sites

Posted · Report post

Yes the next version addresses this.

Share this post


Link to post
Share on other sites
This topic is now closed to further replies.