Jump to content

Featured Replies

Posted

When in Developer mode, if I upload a plug-in, the developer (Dev directory) files are created (Manual upload), however the css files are created in the css folder. However, the CSS styles can be found in the theme ACP.

Also, I have found that sometimes the version files in setup don't always get created either on install..

 

Solved by bfarber

Go to solution
18 hours ago, TDBF said:

however the css files are created in the css folder.

Are you saying they aren't created? Because I'm unclear otherwise if this wasn't a typo?

  • Author
21 minutes ago, bfarber said:

Are you saying they aren't created? Because I'm unclear otherwise if this wasn't a typo?

Sorry, they are not created.

I've opened a report internally to check on this. Thanks.

  • 3 months later...

@bfarber getting the same issue - please see below

The following conditional fails in `system/Theme/Theme.php` - line 4882

// create the plugin template
if( \IPS\IN_DEV AND $data['app'] === 'core' AND $data['location'] === 'custom' AND $data['path'] === 'front' AND isset( $data['plugin'] ) )
{
	$plugin = \IPS\Plugin::load( $data['plugin'] );

	\file_put_contents( \IPS\ROOT_PATH . "/plugins/{$plugin->location}/dev/css/{$data['name']}", $data['content'] );
	@chmod( \IPS\ROOT_PATH . "/plugins/{$plugin->location}/dev/css/{$data['name']}", \IPS\IPS_FILE_PERMISSION );
}

 

Why? When you do manual upload the variables are set incorrectly.

`applications/core/modules/admin/applications/plugins.php` - line 681

$class::addCss( array(
  'app'			=> 'core',
  'location'	=> 'front',
  'path'		=> 'custom',
  'name'		=> $xml->getAttribute('filename'),
  'content'		=> base64_decode( $xml->readString() ),
  'plugin'		=> $plugin->id
), TRUE );

 

Please look at `location` and `path`.

 

 

  • Solution

Yes, this is already fixed for our upcoming 4.6 release. 👍

Recently Browsing 0

  • No registered users viewing this page.