91
Error Messages / Fehlermeldungen / Re: Fatal Error
« Last post by Patric81 on January 13, 2022, 07:21:25 PM »Okay das habe ich gemacht, jetzt habe ich nur noch einen weißen Bildschirm.
Follow 4images on twitter: Click here to follow!
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
ENGINE=MyISAM;
Ersetzen mitENGINE=InnoDB;
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
Good job.
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
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.
@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 ...
//-----------------------------------------------------
//--- User Box ----------------------------------------
//-----------------------------------------------------
//-----------------------------------------------------
//--- 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 .= " » <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 -----------------------
//-----------------------------------------------------
</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>
<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
{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}
<td class="head1" valign="top">{lang_new_images}</td>
<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>