Advanced search  

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

Pages: [1]   Go Down

Author Topic: Fix for xp publish "binary" reg file for lang/dutch.php users  (Read 5725 times)

0 Members and 1 Guest are viewing this topic.

Pastinakel

  • Contributor
  • Coppermine newbie
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 17
Fix for xp publish "binary" reg file for lang/dutch.php users
« on: August 08, 2006, 10:39:50 pm »

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:
Quote
Windows 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
Quote
echo "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
Quote
bla
had changed to
Quote
bla
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
« Last Edit: August 09, 2006, 07:09:40 am by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Fix for xp publish "binary" reg file for lang/dutch.php users
« Reply #1 on: August 08, 2006, 10:44:23 pm »

What's your coppermine version?
Logged

Pastinakel

  • Contributor
  • Coppermine newbie
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 17
Re: Fix for xp publish "binary" reg file for lang/dutch.php users
« Reply #2 on: August 08, 2006, 10:49:37 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
« Last Edit: August 08, 2006, 11:07:29 pm by Pastinakel »
Logged

Nibbler

  • Guest
Re: Fix for xp publish "binary" reg file for lang/dutch.php users
« Reply #3 on: August 09, 2006, 01:00:02 am »

Committed fix to dutch lang file.
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 18 queries.