Pages: 1
Hello,
I have encountered this strange behavior after installing SmartAlbums.
When I try to manage an Album, there are some warning message and it does not find any tags:
10x (for 10 tags in db) this Notice: Undefined index: name in /public_html/admin/include/functions.php on line 2118 Notice: Undefined index: id in /public_html/admin/include/functions.php on line 2119 and than 1x this Warning: Cannot modify header information - headers already sent by (output started at /public_html/admin/include/functions.php:2118) in /public_html/include/page_header.php on line 98
Offline
hello
thx for reporting : this issue has already been identified and corrected
Offline
That's great. How can I fix it on my site ? Is there some update ?
Offline
I ran into the same problem in 2.2.5
In file admin/include/functions.php, I modified two lines in function get_taglist. All that was changed was to insert tag_ into the array index.
changed
'name' => $row['name'],
'id' => '~~'.$row['id'].'~~',
to
'name' => $row['tag_name'],
'id' => '~~'.$row['tag_id'].'~~',
Works for me. Your mileage may vary.
Well, I found the problem with doing what I did in the previous post. I changed the wrong file, meant to change the one in the plugin and got myself confused. If you did that, undo it, and do this instead:
in the plugins/SmartAlbums/include_init_cat_modify.php
change both occurance of
SELECT
id AS tag_id,
name AS tag_name
FROM '.TAGS_TABLE.'
to
SELECT
id,
name
FROM '.TAGS_TABLE.'
That fixed the problem without breaking some other tag funcitonality...or at least it seems to have. We'll see what I find that I've broken tomorrow..
Thanks a lot, this works, but is it the "real" solution or just a temporary fix?
Offline
this is the solution but I can't fix it now, sorry
Offline
Pages: 1