Jump to content

Community offline after directory / url change - please help


DReffects2

Recommended Posts

Posted

Hey Guys,

I've already opened up a ticket with IPS but perhaps you guys can help me out as well :D

The community was located a forums.domain.com - I've "promoted" the community and moved the files to the www.domain.com directory.

Then I've went into the ACP -> files -> file storage and changed the file-storage path from

/var/.../forum.domain.com/uploads to /var/.../www.domain.com/uploads

Then everything broke :/

I get Error EX0 and this:

RuntimeException:  (0)
#0 /var/www/vhosts/domain.de/httpdocs/system/File/File.php(203): IPS\_File::getClass('core_Theme')
#1 /var/www/vhosts/domain.de/httpdocs/system/Theme/Theme.php(5059): IPS\_File::create('core_Theme', '05e81b71abe4f22...', ' @media screen ...', 'css_built_9')
#2 /var/www/vhosts/domain.de/httpdocs/system/Theme/Theme.php(2465): IPS\_Theme::writeCss(Array)
#3 /var/www/vhosts/domain.de/httpdocs/system/Theme/Theme.php(587): IPS\_Theme->compileCss('core', 'global', 'responsive', 'responsive.css')
#4 /var/www/vhosts/domain.de/httpdocs/system/Dispatcher/Standard.php(52): IPS\_Theme->css('responsive.css', 'core', 'global')
#5 /var/www/vhosts/domain.de/httpdocs/system/Dispatcher/Admin.php(89): IPS\Dispatcher\_Standard::baseCss()
#6 /var/www/vhosts/domain.de/httpdocs/system/Dispatcher/Dispatcher.php(103): IPS\Dispatcher\_Admin->init()
#7 /var/www/vhosts/domain.de/httpdocs/admin/index.php(13): IPS\_Dispatcher::i()
#8 {main}

Any ideas where to start?

Regards

-Daniel

Posted
20 minutes ago, Aiwa said:

Go to the support tool and recache everything.  

Did you actually move the files?

Did you update your conf_global to the new URL?

I cannot go to the support tool anymore - i just get an error page for the APC :(

conf_global was updated to the new URL

 

This is what dev-mode tells me:

image.thumb.png.6d6fb20cf53c3ac3d1206a5feabbc3f1.png

Posted
11 minutes ago, Aiwa said:

Have you verified file permissions and ownership are correct after the move?

yes.

Infact i can even run the "system check" tool when entering the direct url and it tells me everything is fine :(

 

 

Posted

Don't suppose you also setup a constants.php with custom paths in there?

If you can't get back in to revert that file path setting to rebuild cache as above then probably will have to wait for IPS to find a way. :(

 

Posted
4 hours ago, Optic14 said:

Don't suppose you also setup a constants.php with custom paths in there?

If you can't get back in to revert that file path setting to rebuild cache as above then probably will have to wait for IPS to find a way. :(

 

I have aconstants.php but only for the dev-mode.

From what it tells me, the system seems unhappy about the storage configuration since i get

		if ( ! isset( static::$storageConfigurations[ $configurationId ] ) )
		{
			throw new \RuntimeException;
		}	

from system/File/File.php

Seems like this is not returning a proper value:

		$configurationId = NULL;
		if ( is_int( $storageExtension ) ) 
		{
			$configurationId = $storageExtension;
		}
		else
		{
			$settings = json_decode( \IPS\Settings::i()->upload_settings, TRUE );
			if ( !isset( $settings[ "filestorage__{$storageExtension}" ] ) )
			{
				foreach ( static::$storageConfigurations as $k => $data )
				{
					$configurationId = $k;
					break;
				}
			}
			else
			{
				/* We have an array of IDs when a move is in progress, the first ID is the new storage method, the second ID is the old */
				if ( is_array( $settings[ "filestorage__{$storageExtension}" ] ) )
				{
					/* Do we have a URL to check? */
					if ( $url )
					{
						/* We want the old storage method as we know the file is on the old server, but may not have moved to the new yet */
						$copyOfSettings = $settings["filestorage__{$storageExtension}"];
						$configurationId = array_pop( $copyOfSettings );
						
						if ( ! isset( static::$storageConfigurations[ $configurationId ] ) )
						{
							/* No longer exists, lets use the new storage method */
							$copyOfSettings  = $settings["filestorage__{$storageExtension}"];
							$configurationId = array_shift( $copyOfSettings );
						}
					}

					if ( ! isset( static::$storageConfigurations[ $configurationId ] ) )
					{
						/* Use the first ID as this is the 'new' storage engine */
						$copyOfSettings = $settings["filestorage__{$storageExtension}"];
						$configurationId = array_shift( $copyOfSettings );
					}
				}
				else if ( isset( static::$storageConfigurations[ $settings[ "filestorage__{$storageExtension}" ] ] ) )
				{
					$configurationId = $settings[ "filestorage__{$storageExtension}" ];
				}
				else
				{
					$storageConfigurations = static::$storageConfigurations;
					static::$storageConfigurations[ $settings[ "filestorage__{$storageExtension}" ] ] = array_shift( $storageConfigurations );
				}
			}
		}

I've looked at the core_file_storage  table in phpmyadmin - the path seems to be correct there. Also the array in core_sys_conf_settings has the correct id assiged to it.

Moving the site to its final location was the last step for my relaunch which was announced for today :(

IPS Team has responded and asked for more details. I hope they figure this out soon.

 

Archived

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...