Archived

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

  • 0

Sites can't find CSS files after updating PageLines

Question

Posted · Report post

We have just upgraded PageLines from 2.1.something to 2.3.8 and now all of our sites are broken. They all look as if the have no css file associated with them. In Chrome, the console screen shows this error:

 

Failed to load resource: the server responded with a status of 500 (Internal Server Error) http://pages.shanti.virginia.edu/rca2t/wp-content/themes/pagelines/pagelines-compiled-css-28_1358348200/

 

Anyone have any ideas about how to solve this? I've attached a screenshot of an example broken site. 

post-33011-0-44847200-1358370796_thumb.p

Share this post


Link to post
Share on other sites

8 answers to this question

Posted · Report post

To sum up: add the following line to your wp-config.php file and PageLines will be happy:

 

define('PL_NO_DYNAMIC_URL', true);

 

This allows default permalinks to function even if your site is set to a different permalink style. I think. Anyway, it works.

Share this post


Link to post
Share on other sites

Posted · Report post

Open wp-config.php and enable WP_DEBUG, that will hopefully show you wat the error is, or check the server error logs.

Share this post


Link to post
Share on other sites

Posted · Report post

Thanks for the quick response! I've enabled debugging on our test server ... Here's is what I get at the top of the page after disabling all plugins:

 

 

Notice: register_sidebar_widget is <strong>deprecated</strong> since version 2.8! Use wp_register_sidebar_widget() instead. in /var/www/html/wpmu/wp-includes/functions.php on line 2824
 
Notice: register_widget_control is <strong>deprecated</strong> since version 2.8! Use wp_register_widget_control() instead. in /var/www/html/wpmu/wp-includes/functions.php on line 2824
 
Notice: unregister_sidebar_widget is <strong>deprecated</strong> since version 2.8! Use wp_unregister_sidebar_widget() instead. in /var/www/html/wpmu/wp-includes/functions.php on line 2824
 
Notice: register_sidebar_widget is <strong>deprecated</strong> since version 2.8! Use wp_register_sidebar_widget() instead. in /var/www/html/wpmu/wp-includes/functions.php on line 2824
 
Notice: register_widget_control is <strong>deprecated</strong> since version 2.8! Use wp_register_widget_control() instead. in /var/www/html/wpmu/wp-includes/functions.php on line 2824
 
Notice: define() was called with an argument that is <strong>deprecated</strong> since version 3.0! The constant <code>VHOST</code> <strong>is deprecated</strong>. Use the boolean constant <code>SUBDOMAIN_INSTALL</code> in wp-config.php to enable a subdomain configuration. Use is_subdomain_install() to check whether a subdomain configuration is enabled. in /var/www/html/wpmu/wp-includes/functions.php on line 2908

Share this post


Link to post
Share on other sites

Posted · Report post

OK add under the debug line:

 

define( 'PL_NO_DYNAMIC_URL', true' );

 

All the stuff you pasted above was errors from poorly coded plugins.

Share this post


Link to post
Share on other sites

Posted · Report post

OK, I've done that, but the error messages remain. However, now the problem seems to be solved on my test server. All I did was restart the web server after updating the wp-config file. But we have already restarted the server on production and it had not effect. Weird.

 

The problem seems to be related to PageLines looking for a cache file that is not there (given the browser console error message cited earlier). Any idea on how to stop this from happening?

Share this post


Link to post
Share on other sites

Posted · Report post

OK, it looks like this has to do with permalinks. The broken sites can find their CSS files now if permalinks are set to default. Is this a requirement for PageLines?

Share this post


Link to post
Share on other sites

Posted · Report post

It isnt a requirement no.

 

The define snippet i provided will use a url without permalinks if yours are not setup.

Share this post


Link to post
Share on other sites