Fix for xp publish "binary" reg file for lang/dutch.php users Fix for xp publish "binary" reg file for lang/dutch.php users
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Fix for xp publish "binary" reg file for lang/dutch.php users

Started by Pastinakel, August 08, 2006, 10:39:50 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Pastinakel

The problem
When using xp_publish.php to download and merge the needed reg file XP complains about the text file not in binary. Examining the downloaded regfile I noticed some garbage characters at the beginning of that file:
QuoteWindows Registry Editor Version 5.00
Those first three characters made Xp very unhapy.

The search
At first I thought it had to do something with headers so I took a journey through various headers and content-types. No result. At last I added a
Quoteecho "bla";
to xp_publish and moved the line downwards and after every move I refreshed xp_publish.php in my browser to see if the
Quotebla
had changed to
Quotebla
After a change I repeated the same process with the file that was included when the above change happened. This pinned the error down to:

The cause
lang/dutch.php  >:(

The fix
Change the first line in lang/dutch.php from
Quote<?php
to
Quote<?php

xp_publish.php looks better now and the regfile works with XP. XP is very happy now ;D

Joachim Müller


Pastinakel

Quote from: GauGau on August 08, 2006, 10:44:23 PM
What's your coppermine version?
Coppermine Photo Gallery 1.4.8 (stable)

Sorry I didn't mention that. Maybe it was fixed in a newer build but I didn't find anything about a fix on this forum. There are 2 threads that mention this problem but is was not fixed: XP Plublishing reg file (help needed) and XP_publish.php - The specified file is not a registry script