Member
Member
Jondavman   24-07-2012, 16:34
#1

I am attempting to upgrade to 1.4.3 and after running setup, I am completely locked out of my galleries.

The error message I am getting is "There was an error logging in. Check your user name and password and try again."

I am completely sure my user name and password are correct.

The methodology used to upgrade was:

-Download ZIP of 1.4.3 to local laptop
-Unzip on laptop
-FTP upload of zp-core, plugins, and themes folders
-Ran setup from elotono/zp-core/setup.php per instructions.

Please assist me with this as I have critical photos and text files. Thanks.

Member
Member
sbillard   24-07-2012, 16:43
#2

Follow the troubleshooting guide on "forgotten passwords".

Member
Member
Jondavman   24-07-2012, 17:20
#3

Can you refer to this troubleshooting guide's link? I cannot find it.

Administrator
Member
Member
Jondavman   24-07-2012, 17:31
#5

So to be clear, the solution is to delete the Admin table and re-run setup.

Is that correct?

Furthermore, I am not clear about which line in the htaccess file to uncomment (ie remove the hash tag.) Is it:

RewriteRule ^index.php$ zp-core/zp-extensions/site_upgrade/closed.html [NC,R=302,L]

-or-

RewriteRule ^$ plugins/site_upgrade/closed.html [NC,R=302,L]

Notice also that I adjusted the path in line 15 to reflect where the file is actually located. Is this correct?

Thank you.

Member
Member
Jondavman   24-07-2012, 17:44
#6

I dropped the Admin table and reran setup (re-uploaded the setup php script to the core folder.)

I got a clean page with the Go button, clicked, and then was taken to a 500 Internal Server Error page.

Any thoughts on why I got the 500 error?

Member
Member
Jondavman   24-07-2012, 17:50
#7

Here is an update:

I can go to the root page without a problem, that is http://www.immaculatemoney.com

However, I still get the HTTP 500 error when going to the directory in which I have had ZP located, that is http://www.immaculatemoney.com/elotono.

Are there any clues to look for in the htaccess file that could explain this?

[strong]EDIT[\strong]

Here is the change log:

[blockquote][25-Jul-2010 06:26:17] PHP Parse error: syntax error, unexpected ';' in /home3/immacul2/public_html/elotono/zp-core/template-functions.php on line 4433
[25-Jul-2010 06:37:55] PHP Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home3/immacul2/public_html/elotono/zp-core/template-functions.php on line 4423
[25-Jul-2010 06:37:55] PHP Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home3/immacul2/public_html/elotono/zp-core/template-functions.php on line 4423
[25-Jul-2010 06:42:11] PHP Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home3/immacul2/public_html/elotono/zp-core/template-functions.php on line 4432
[25-Jul-2010 06:42:11] PHP Parse error: syntax error, unexpected '"' in /home3/immacul2/public_html/elotono/zp-core/template-functions.php on line 4432
[/blockquote]

Member
Member
sbillard   24-07-2012, 17:56
#8

check your file permissions and try without the .htaccess file. 500 errors are caused by the server refusing to serve up the page.

Member
Member
Jondavman   24-07-2012, 18:01
#9

Sbillard,

Many thanks- I will check now. I know that they were set to 666 level. Should I do 777 for the .htaccess file?

For now, I will delete htaccess (after backing up) and post my findings.

Member
Member
sbillard   24-07-2012, 18:06
#10

The errors you post are an indication of a corrupted FTP upload. Those lines in 1.4.3 cannot cause the errors shown. A corrupted upload could also cause the 500 errors.

The file permissions are correct for the files presuming your server does allow them. You can try 0777, but many servers consider that too loose and will give errors. Sorry, but this is a server unique thing. Well behaved and configured servers work with 0666. For all others you have to experiment.

Member
Member
Jondavman   24-07-2012, 18:25
#11

The problem is definitely in the htaccess file:

/home3/immacul2/public_html/elotono/.htaccess: Invalid command 'htaccess', perhaps misspelled or defined by a module not included in the server configuration

Here is my htaccess file, please assist me in correcting:

htaccess file version 1.4.3.1;

When Zenphoto requires changes to the rewrite rules:


First make a copy of this file as 'oldhtaccess' in the zp-core folder so setup can test for unmodified files


Update the above and the define in setup.php


IndexIgnore *

RewriteEngine On

RewriteBase /elotono

Redirection for site updates--remove the comment crosshatches from the following rules


"closed.html" in the plugins/site_upgrade folder is the target for the rewrites. You can change


this file to suit your needs.


RewriteRule ^index.php$ plugins/site_upgrade/closed.html [NC,R=302,L]


RewriteRule ^$ plugins/site_upgrade/closed.html [NC,R=302,L]


End redirection for site updates


RewriteRule ^admin/?$ zp-core/admin.php [R,L]

Rewrite rules for replaced ?RSS-xxx query parameters


RewriteCond %{QUERY_STRING} ^rss-(.*)&
RewriteRule ^index\.php?$                       index.php?rss=%1 [NC,L,QSA,R=301]
RewriteCond %{QUERY_STRING} ^rss-(.*)$
RewriteRule ^index\.php?$                       index.php?rss=%1 [NC,L,QSA,R=301]

RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^albums/?(.+/?)?$ $1 [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [L]

put no rules before this line

rewrite rule for tinyURLs


RewriteRule ^tiny/([0-9]+)/?$ index.php?p=$1&t [L,QSA]

RewriteRule index.php$ index.php [L,QSA]
RewriteRule ^page/([0-9]+)/?$ index.php?page=$1 [L,QSA]
RewriteRule ^page/([A-Za-z0-9-]+)/?$ index.php?p=$1 [L,QSA]
RewriteRule ^page/([A-Za-z0-9
-]+)/([0-9]+)/?$ index.php?p=$1&page=$2 [L,QSA]
RewriteRule ^(.)/page/([0-9]+)/?$ index.php?album=$1&page=$2 [L,QSA]
RewriteRule ^(.
)/page/([A-Za-z0-9_-]+)/?$ index.php?album=$1&p=$2 [L,QSA]

Rewrite rule addition for search


RewriteRule ^page/search/fields([0-9]+)/(.)/([0-9]+)/?$ index.php?p=search&searchfields=$1&words=$2&page=$3 [L,QSA]
RewriteRule ^page/search/fields([0-9]+)/(.
)/?$ index.php?p=search&searchfields=$1&words=$2 [L,QSA]
RewriteRule ^page/search/archive/(.)/([0-9]+)/?$ index.php?p=search&date=$1&page=$2 [L,QSA]
RewriteRule ^page/search/archive/(.
)/?$ index.php?p=search&date=$1 [L,QSA]
RewriteRule ^page/search/tags/(.)/([0-9]+)/?$ index.php?p=search&searchfields=tags&words=$1&page=$2 [L,QSA]
RewriteRule ^page/search/tags/(.
)/?$ index.php?p=search&searchfields=tags&words=$1 [L,QSA]
RewriteRule ^page/search/(.)/([0-9]+)/?$ index.php?p=search&words=$1&page=$2 [L,QSA]
RewriteRule ^page/search/(.
)/?$ index.php?p=search&words=$1 [L,QSA]

Rewrite additions for zenpage


RewriteRule ^pages/?$      index.php?p=pages [L,QSA]

RewriteRule ^pages/(.)/?$ index.php?p=pages&title=$1 [L,QSA]
RewriteRule ^news/?$ index.php?p=news [L,QSA]
RewriteRule ^news/([0-9]+)/?$ index.php?p=news&page=$1 [L,QSA]
RewriteRule ^news/category/(.
)/([0-9]+)/?$ index.php?p=news&category=$1&page=$2 [L,QSA]
RewriteRule ^news/category/(.)/?$ index.php?p=news&category=$1 [L,QSA]
RewriteRule ^news/archive/(.
)/([0-9]+)/?$ index.php?p=news&date=$1&page=$2 [L,QSA]
RewriteRule ^news/archive/(.)/?$ index.php?p=news&date=$1 [L,QSA]
RewriteRule ^news/(.
)/?$ index.php?p=news&title=$1 [L,QSA]


RewriteRule ^(.)/image/(thumb|[0-9]{1,4})/([^/\]+)$ zp-core/i.php?a=$1&i=$3&s=$2 [L,QSA]
RewriteRule ^(.
)/image/([^/\]+)$ zp-core/i.php?a=$1&i=$2 [L,QSA]
RewriteRule ^(.*)/album/(thumb|[0-9]{1,4})/([^/\]+)$ zp-core/i.php?a=$1&i=$3&s=$2&album=true [L,QSA]


Catch-all - everything else gets handled in PHP for compatibility.


RewriteRule ^(.*)/?$ index.php?album=$1 [L,QSA]

Member
Member
Jondavman   24-07-2012, 18:52
#12

I added back the setup files and the 500 error went away; it allowed me to initiate setup again, up to the point of clicking GO button.

I got the same error:

[25-Jul-2010 06:26:17] PHP Parse error: syntax error, unexpected ';' in /home3/immacul2/public_html/elotono/zp-core/template-functions.php on line 4433
[25-Jul-2010 06:37:55] PHP Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home3/immacul2/public_html/elotono/zp-core/template-functions.php on line 4423
[25-Jul-2010 06:37:55] PHP Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home3/immacul2/public_html/elotono/zp-core/template-functions.php on line 4423
[25-Jul-2010 06:42:11] PHP Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home3/immacul2/public_html/elotono/zp-core/template-functions.php on line 4432
[25-Jul-2010 06:42:11] PHP Parse error: syntax error, unexpected '"' in /home3/immacul2/public_html/elotono/zp-core/template-functions.php on line 4432

From what I can glean from this, the password redirect is not loading properly.

Please Note: I have Zen in directory called elotono, NOT ZenPhoto.

Does this require me to make adjustments before I hit the GO button?

Member
Member
sbillard   24-07-2012, 20:54
#13

the .htaccess line IndexIgnore * does not work on some installations. Remove it.

As said before, the other errors are not possible with the 1.4.3 template-functions.php file unless it has been corrupted.

The name of the folder where you install Zenphoto does not matter.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.