Bug tracker

This ticket has been moved to our new tracker. Open Ticket PHPBB3-1871 now.

Imageset Export/REfresh error (fix completed in vcs)

1. In Imagesets ACP i press 'Export' and there are created file subSilver.tar.gz in store directory.

2. Then i try to restore imageset from saved copy:
- I unpack created subSilver.tar.gz and put imageset.cfg in the styles\subSilver\imageset directory.
- Then I press 'Refresh' and recieve:

Code: Select all
General Error
SQL ERROR [ mysql ]

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE imageset_id = 1' at line 2 [1064]

SQL

UPDATE phpbb_styles_imageset SET WHERE imageset_id = 1

BACKTRACE

FILE: includes/db/mysql.php
LINE: 130
CALL: dbal_mysql->sql_error()

FILE: includes/acp/acp_styles.php
LINE: 402
CALL: dbal_mysql->sql_query()

FILE: includes/functions_module.php
LINE: 361
CALL: acp_styles->main()

FILE: adm/index.php
LINE: 83
CALL: p_master->load_active()


Restoring from the original (not exported) imageset.cfg works fine.

Comments / History

Posted by blueray2048 on Oct 19th 2006, 07:32

It seems may be missing a prefix

filename : [ includes/acp/acp_styles.php ]
Code: Select all
$imageset_cfg = str_replace(array('{MODE}', '{NAME}', '{COPYRIGHT}', '{VERSION}'), array($mode, $style_row['imageset_name'], $style_row['imageset_copyright'], $config['version']), $this->imageset_cfg);

            foreach ($this->imageset_keys as $topic => $key_array)
            {
               foreach ($key_array as $key)
               {
                  $imageset_cfg .= "\n" . $key . ' = ' . str_replace("styles/{$style_row['imageset_path']}/imageset/", '{PATH}', $style_row[$key]);
               }
            }

            $files[] = array(

Linked ticket with changeset: r6511

Action performed by Anonymous (I am too lazy to register) on Oct 19th 2006, 13:55

Ticket details

Related SVN changesets