Forums / Install & configuration / Register page and images are missing after site move

Register page and images are missing after site move

Author Message

Jan Komárek

Thursday 01 January 2009 11:37:51 am

Hello,

i have a trouble with user/register. I moved whole site with all files and db dump. I changed site.ini.append.php for all siteaccesses.
I changed [DatabaseSettings] and [SiteSettings].SiteURL=www.<domain>.cz/test/index.php?

Everythink look fine. I can log in, logout and etc. But user/register have on the adress: http://<site_domain>/test/index.php?/eng/user/register is not functional. Error is same on all siteaccese. Error message:

Object is unavailable

The object you requested is not currently available.

Possible reasons for this are:
The id or name of the object was misspelled, try changing it.
The object is no longer available on the site.

Debug output:

Error: eZContentObject::fetch()	Jan 01 2009 19:23:56
Object not found (522)
Error: error/view.php	Jan 01 2009 19:23:56
Error ocurred using URI: /test/index.php?/eng/user/register

Another problem is. That some images attached to the article class are not showed. I think that url is wrong. But I am not sure.
Served URL is:
http://www.<site_domain>.cz/test/index.php/var/ezwebin_site/storage/images/nunc-tempor-sapien-sed-lorem/1008-1-cze-CZ/Nunc-tempor-sapien-sed-lorem.jpg

Template code, where url i created:

<img src={$image.url|ezroot} {if $width > "0"}width="{$width}"{else}width="{$image.width}"{/if} 
				{if !$noheight}height="{$image.height}"{/if} 
				{section show=$hspace}hspace="{$hspace}"{/section} alt="{$image.text|wash(xhtml)}" 
				title="{$image.text|wash(xhtml)}" class="{$css_class}" />

Thank for replies. Jan Komárek

Greg McAvoy-Jensen

Thursday 01 January 2009 12:42:52 pm

Happy New Year, Jan.

What version of eZ Publish are you using?

Image display problems after migration are often the result of permission problems in the eZ Publish var directory. That may not be the problem in your case, but checking it is quick and might be worthwhile.

What is the URL that works for user/login?

Have you checked the admin > site design > look & fee to see what URL is being used (unless that's been overridden)?

Best wishes!

Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog

Jan Komárek

Thursday 01 January 2009 1:59:57 pm

Happy new year to you. And thank you very much for fast reply.

Its not permisssions. It was first think which u checked. Whole folder with EZ publish have 777 permissions.

Login url is http://www.<domain>.cz/test/index.php/eng/user/login

Site URL in Look and Feel and languages url are same as everywhere.
www.<domain>.cz/test/index.php?<lng>

if I remove index.php?/eng from image url. Its there.

I have no idea whats wrong.

Heath

Thursday 01 January 2009 3:35:21 pm

I think you are using php in cgi mode or some variant mode. That's why you get the "?" Characters in your urls causing problems with the loading of resources. I think ...

- What version of php are you using # php -v (paste all output into forum)

- What kind of hosting are you using (eZ Publish performs well only on the more deadicated hosting providers configurations)

You might be able to solve this by using augmented .htaccess and mod_rewrite rules.

We have seen this kind of errors before on a host once.

Cheers,
Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Jan Komárek

Friday 02 January 2009 11:05:18 pm

I didnt answered version of EZ Publish. Its v 4.0.1. With EZ Webin package and some other extensions.

I have no acces to shell so I cannot perform php -v command. Are there any alternative commands in PHP itself?

Here are some details from phpinfo:

PHP Version 5.2.5

Server API 	Apache 2.0 Handler

Configure Command 	'./configure' '--with-layout=GNU' '--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all' '--enable-libxml' '--with-libxml-dir=/usr/local' '--enable-reflection' '--program-prefix=' '--disable-cgi' '--with-apxs2=/usr/local/sbin/apxs' '--with-regex=php' '--with-zend-vm=CALL' '--enable-zend-multibyte' '--disable-ipv6' '--prefix=/usr/local' '--mandir=/usr/local/man' '--infodir=/usr/local/info/'

disable_functions	ini_restore, show_source, stream_select, socket_select, socket_create_listen, socket_create_pair, socket_listen, socket_strerror, shell_exec, proc_close, proc_get_status, proc_nice, passthru, proc_open, proc_terminate, readlink, symlink, link, pfsocketopen, ini_alter, dl, openlog, syslog, pcntl_exec, pcntl_fork, pcntl_signal, pcntl_waitpid, pcntl_wexitstatus, pcntl_wifexited, pcntl_wifsignaled, pcntl_wifsignaled, pcntl_wifstoped, pcntl_wifstopsig, pcntl_wtermsig, socket_accept, socket_bind, socket_create, socket_create_listen	ini_restore, show_source, stream_select, socket_select, socket_create_listen, socket_create_pair, socket_listen, socket_strerror, shell_exec, proc_close, proc_get_status, proc_nice, passthru, proc_open, proc_terminate, readlink, symlink, link, pfsocketopen, ini_alter, dl, openlog, syslog, pcntl_exec, pcntl_fork, pcntl_signal, pcntl_waitpid, pcntl_wexitstatus, pcntl_wifexited, pcntl_wifsignaled, pcntl_wifsignaled, pcntl_wifstoped, pcntl_wifstopsig, pcntl_wtermsig, socket_accept, socket_bind, socket_create, socket_create_listen

Its shared hosting. But its our partner firm. So conmfiguration could be changed relativly easy.

Heath

Saturday 03 January 2009 12:01:28 am

eZ is not so friendly to shared hosting (limitations) especially publish.

Try asking your service provider to enable all the disabled functions
and remove as many of the shared hosting limitations were possible.

Clear cache before you test the site each time (yes by hand) but clear
all the cache folders not just one of them. This is so you can accurately
test the site + source code + db + ini files + cache.

Cheers,
Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Jan Komárek

Saturday 03 January 2009 12:27:42 am

I know about EZ Publish requirments but my site was developed on shared hosting without any problems. I moved whole site becose I want to use EZ Find and my hosting wehere I developed site dont offer Java.

I am not good in Mod rewrite. Precisly speached I am very bad at regular expression creating. And I nead some help with it. My rule will remove index.php or index.php? form adress look like this:

<site_domain>.cz/test/index.php/var/........sed-lorem.jpg

But only for images....

Hmm miracle. Due time I was wroting this post. Somethink happens and all problems disappears. I will try to investigate reason and I will post may conclusions.

Many thanks for help to Heath and Greg. Have a nice and prosperous year 2009.
Jan

Jan Komárek

Saturday 14 February 2009 6:17:18 pm

Somethink strange happens due that installation. After upgrading to a new version of templates, modules and etc.. Problem with missing images show again. This time no miracle.
And there were no reason. I used worng path creation in templates, it didnt work in directory, only in the root of domain. But I dont understand waht happend with first move of page.

Noicokuna Niemoge

Monday 09 March 2009 2:44:12 am

Well, I can't view registration page straight after clean installation of eZ 4.0.3...

Is eZ THAT unstable?

Shiki soku ze ku...

Jan Komárek

Monday 09 March 2009 2:29:36 pm

After clean installation was everythink okay. Try installation with minimal changes of default settings.

Noicokuna Niemoge

Tuesday 10 March 2009 12:29:22 am

Yeah, the second time I installed it everything was OK. I wonder for how long. Geez I was just modifying some templates, that's all...

Shiki soku ze ku...