Recent Posts

Pages: 1 ... 6 7 8 9 [10]
91
Error Messages / Fehlermeldungen / Re: Fatal Error
« Last post by php8 on January 13, 2022, 04:30:43 PM »
Hallo Patric81,

ich vermute, dass deine 4images Installation mit PHP8 läuft. Das php Manual schreibt hierzu: Diese Funktion ist seit PHP 7.4.0 DEPRECATED (veraltet) und seit PHP 8.0.0 ENTFERNT

Bitte öffne global.php mit einem Texteditor und suche in Zeile 61:

if (get_magic_quotes_gpc() == 0) {
  
$HTTP_GET_VARS    addslashes_array($HTTP_GET_VARS);
  
$HTTP_POST_VARS   addslashes_array($HTTP_POST_VARS);
  
$HTTP_COOKIE_VARS addslashes_array($HTTP_COOKIE_VARS);
}


Ersetze diesen Absatz durch:

  $HTTP_GET_VARS    addslashes_array($HTTP_GET_VARS);
  
$HTTP_POST_VARS   addslashes_array($HTTP_POST_VARS);
  
$HTTP_COOKIE_VARS addslashes_array($HTTP_COOKIE_VARS);
92
Error Messages / Fehlermeldungen / Fatal Error
« Last post by Patric81 on January 08, 2022, 01:18:26 PM »
Hi , ich habe auf meiner Page diese Fehlermeldung, kann mir jemand dabei weiterhelfen, bin nicht gerade der jenige der sich darum immer kümmert. Bin eher ein Laie was das betrifft. Hatte das von jemanden vor Jahren übernommen und musste nur einmal bisher etwas einstellen ^^ Danke im vorraus MFG

Hier die Fehlermeldung :

Fatal error: Uncaught Error: Call to undefined function get_magic_quotes_gpc() in /customers/5/1/5/upw-pics.de/httpd.www/global.php:61 Stack trace: #0 /customers/5/1/5/upw-pics.de/httpd.www/index.php(30): include() #1 {main} thrown in /customers/5/1/5/upw-pics.de/httpd.www/global.php on line 61
93
Feedback & Suggestions / Re: 4images 1.9 - Feedback
« Last post by Sunny C. on December 28, 2021, 04:28:44 PM »
Die Installation läuft weiterhin nicht korrekt durch

Als erstes muss man folgendes in die install.php hinzufügen.
Das Scheint das System nicht zu erkennen.
function safe_htmlspecialchars($chars) {
  
// Translate all non-unicode entities
  
$chars preg_replace(
    
'/&(?!(#[0-9]+|[a-z]+);)/si',
    
'&',
    
$chars
  
);

  
$chars str_replace(">"">",   $chars);
  
$chars str_replace("<""&lt;",   $chars);
  
$chars str_replace('"'"&quot;"$chars);
  return 
$chars;
}


Außerdem kann es noch zu folgenden Fehler kommen
Quote
DB Error: Bad SQL Query: CREATE TABLE 4images_settings (setting_name varchar(255) NOT NULL default '',setting_value mediumtext NOT NULL,PRIMARY KEY (setting_name)) ENGINE=MyISAM
Specified key was too long; max key length is 1000 bytes

Das kann man beheben in dem man unter "data/database/default" die Dateien öffnet
Sucht:
Code: [Select]
ENGINE=MyISAM;Ersetzen mit
Code: [Select]
ENGINE=InnoDB;
Ich finde das sollte man als Update mal nachschieben.

LG
94
Feedback & Suggestions / Re: 4images 1.9 - Feedback
« Last post by kp on December 16, 2021, 09:07:50 PM »
@kai:
Habt ihr ein Changelog oder zumindest eine Liste für die geänderten Files?
Ich wollte an den Security Problemen arbeiten. Zumindest die unsicheren Cookies und andere Dinge die mir gemeldet wurden.

Gruß KP

----------------

Hello,
I've been using 4images for many years now and I currently run 4images version 1.7.13 with a lot of heavy modifications. I've been able to get it running on PHP 7.4.25, but I run into problems with PHP 8.

Because of all the modifications throughout the years I'm unable to update to version 1.9. I was wondering if there was possibly a changelog with a list of specific changes in code on specific php files that make it php 8 compatible that I could sort through to try to get my version PHP 8 compatible? I hope that makes sense.

Glad to see an update to 4images, I honestly thought it had seen it's end.

Thanks, Have a great day.
Kitty

Hello kitty999,
you can have a look here:
https://www.4homepages.de/forum/index.php?topic=33111.new#new
there ist a version 1.8 which I've fixed for php8. I the attached zip file you can find the files which are fixed. May you can replace them or have a look into to change it to your customised files.
95

I spend a lot of time with debugging an find the new code for the needed functions.
 :!: If you think this deserves a bit of respect you could donate me some money to go out with my wife as compensation of my long hours working on that issues ;) So if you want to do so, please donate to  ebay < at > lexow.de
Good job. :D
Thank you very much.

But I am not familiar with how to donate via eBay.
I hope you can also provide a link for Paypal donation. :wink:

Hey wang5555,
it's not ebay to donate, it's my email for paypal donations ;)
96
Installation, Update & Configuration / Re: Zu viele Kategorien
« Last post by Jan-Lukas on November 28, 2021, 02:29:50 PM »
@Dieter

... ich denke auf der Index-Seite kannst du trotzdem die Kategorieübersicht stehen lassen ...
... ansonsten müsstest du sie ja dann konsequenter Weise auch aus den Kategorieseiten herausnehmen ...

Mein Vorschlag (auf die Schnelle ... *)
- Kategorieübersicht belassen ...
- Nur die Hauptkategorien in die user_logginform.html und user_loggininfo.html per Hand schreiben (9 Kat) ...
- so kann man dann stets zügig zurücksurfen ...

*) ... Info für Harald - die andere Variante kommt dann ... ;)

Hoffe bist mir nicht böse (falls du noch mitliest) das ich dein Menü jetzt hier poste.
Aber da ich das Menü für ein anderes Projekt brauche, habe ich es mir aus meiner Galerie ausgebaut.

öffne die includes/page_header.php

suche:

Code: [Select]
//-----------------------------------------------------
//--- User Box ----------------------------------------
//-----------------------------------------------------

und füge davor das ein

Code: [Select]
//-----------------------------------------------------
//--- Start Category List in Menu ---------------------
//-----------------------------------------------------
function get_category_html_bits($cat_id = 0, $cid = 0, $depth = 1) {
global $site_db, $html_cat_cache, $cat_cache, $new_image_cache, $site_sess;
if (!isset($html_cat_cache[$cid])) {
return "";
}
$category_list = "";
foreach ($html_cat_cache[$cid] as $key => $category_id) {
if (check_permission("auth_viewcat", $category_id)) {
/*
if ($depth > 1) {
$category_list .= "";
}
else {
$category_list .= "<br>";
}

if ($depth > 2) {
$category_list .= "       · <span style=\"font-weight:normal\"><small><a href=\"".$site_sess->url(ROOT_PATH."categories.php?cat_id=".$category_id)."\">".$cat_cache[$category_id]['cat_name']."</a></small></span><br />";
}
if ($depth == 2) {
$category_list .= "   · <span style=\"font-weight:normal\"><a href=\"".$site_sess->url(ROOT_PATH."categories.php?cat_id=".$category_id)."\">".$cat_cache[$category_id]['cat_name']."</a></span><br />";
}
*/
if ($depth == 1) {
$category_list .= " &raquo; <span style=\"font-family: Geneva, Arial, Helvetica, sans-serif\" ><b><a href=\"".$site_sess->url(ROOT_PATH."categories.php?cat_id=".$category_id)."\">".$cat_cache[$category_id]['cat_name']."</span></a></b><br><br>";
}
$category_list .= get_category_html_bits($cat_id, $category_id, $depth + 1);
}
}
unset($html_cat_cache[$cid]);
return $category_list;
}
$html_cat_cache = $cat_parent_cache;
$site_template->register_vars("category_list", get_category_html_bits());
//-----------------------------------------------------
//--- End Category List in Menu -----------------------
//-----------------------------------------------------

öffne die user_logininfo.html
füge am Ende dieses ein
Code: [Select]
</table><br>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td class="tablebgcolor"><img src="./templates/default/images/spacer.gif" alt="" width="1" height="1" /></td></tr>
<tr><td class="head2" height="20"> <img src="./templates/default/images/spacer.gif" alt="" width="4" height="4" />Kategorien</td></tr>
<tr><td class="tablebgcolor"><img src="./templates/default/images/spacer.gif" alt="" width="1" height="1" /></td></tr>
<tr><td align="left" class="row1">
  {category_list}
</td></tr>
</table>

öffne user_loginform.html
und füge am Ende das ein
Code: [Select]
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td class="tablebgcolor"><img src="./templates/default/images/spacer.gif" alt="" width="1" height="1" /></td></tr>
<tr><td class="head2" height="20"> <img src="./templates/default/images/spacer.gif" alt="" width="4" height="4" />Kategorien</td></tr>
<tr><td class="tablebgcolor"><img src="./templates/default/images/spacer.gif" alt="" width="1" height="1" /></td></tr>
<tr><td align="left" class="row1">
  {category_list}
</td></tr>
</table>l

Dann öffnet die home.html
sucht das hier

Code: [Select]
{if categories}
                  <table width="100%" border="0" cellspacing="0" cellpadding="1">
                    <tr>
                      <td class="head1">
                        <table width="100%" border="0" cellspacing="0" cellpadding="3">
                          <tr>
                            <td class="head1" valign="top">{lang_categories}</td>
                          </tr>
                          <tr>
                            <td class="row2" valign="top">{categories}</td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </table>
                  <br />
                  {endif categories}{lang_site_stats}

und löscht es. (denkt an eine Sicherung  :wink: )

 suche
Code: [Select]
<td class="head1" valign="top">{lang_new_images}</td>
und ersetze es mit

Code: [Select]
<td width="50%" valign="top" class="head1"><div align="left">{lang_new_images} </div></td>
                            <td width="50%" valign="top" class="head1"><div align="right">{lang_site_stats}</div></td>



Es werde nur die Hauptkategorien angezeigt.
97
Language Packs / [Language] Traditional Chinese Language for 1.9
« Last post by wang5555 on November 18, 2021, 03:40:04 AM »
Here is the Traditional Chinese translation for 4images v1.9. :)
98
Feedback & Suggestions / Re: 4images 1.9 - Feedback
« Last post by nobby on November 08, 2021, 01:58:47 PM »
Hello,

I can recommend "WinMerge" as an alternative.
With this programme you are able to examine individual PHPs for changes.

nobby
99
Feedback & Suggestions / Re: 4images 1.9 - Feedback
« Last post by kitty999 on November 07, 2021, 02:36:45 AM »
Hello,
I've been using 4images for many years now and I currently run 4images version 1.7.13 with a lot of heavy modifications. I've been able to get it running on PHP 7.4.25, but I run into problems with PHP 8.

Because of all the modifications throughout the years I'm unable to update to version 1.9. I was wondering if there was possibly a changelog with a list of specific changes in code on specific php files that make it php 8 compatible that I could sort through to try to get my version PHP 8 compatible? I hope that makes sense.

Glad to see an update to 4images, I honestly thought it had seen it's end.

Thanks, Have a great day.
Kitty
100
Mods & Plugins (Requests & Discussions) / Re: The 2021 Mod?
« Last post by kai on November 05, 2021, 01:15:10 PM »
Looking good!
Pages: 1 ... 6 7 8 9 [10]