<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Форум PHP-MyAdmin.RU &mdash; 1064 ошибка]]></title>
	<link rel="self" href="https://forum.php-myadmin.ru/extern.php?action=feed&amp;tid=3857&amp;type=atom" />
	<updated>2014-08-29T15:19:20Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.php-myadmin.ru/viewtopic.php?id=3857</id>
		<entry>
			<title type="html"><![CDATA[Re: 1064 ошибка]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=25599#p25599" />
			<content type="html"><![CDATA[<p>Ошибка говорит, что таблица dle_ не существует. Имя таблицы после префикса не стоит, значит ошибка в конфигурации или в самом скрипте.</p>]]></content>
			<author>
				<name><![CDATA[Hanut]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=181</uri>
			</author>
			<updated>2014-08-29T15:19:20Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=25599#p25599</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 1064 ошибка]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=25597#p25597" />
			<content type="html"><![CDATA[<p>Убрал переменную с запятой, стал выдавать 1146 ошибку. </p><p>MySQL error in file: /engine/modules/files/newfiles.php at line 14<br />Error Number: 1146<br />The Error returned was:<br />Table &#039;u650970019_admin.dle_&#039; doesn&#039;t exist<br />SQL query:</p><p>SELECT `id`, `title`, `version`, `alt_name` FROM `dle_` WHERE `approve` = &#039;0&#039; AND `date` &lt; &#039;2014-08-29 09:33:06&#039; ORDER BY `date` DESC LIMIT 0</p>]]></content>
			<author>
				<name><![CDATA[TheZimbabve]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=6198</uri>
			</author>
			<updated>2014-08-29T11:31:57Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=25597#p25597</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 1064 ошибка]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=25596#p25596" />
			<content type="html"><![CDATA[<p>После DESC стоит запятая - значит сортировка должна идти еще по какому-то полю, которое указано в переменной $filesConfig [&#039;numbernewfiles&#039;]. Если переменная $filesConfig [&#039;numbernewfiles&#039;] пустая, то запятая после DESC вызывает ошибку. Можно попробовать убрать запятую и переменную $filesConfig [&#039;numbernewfiles&#039;], если не понятно где эта переменная формируется.</p>]]></content>
			<author>
				<name><![CDATA[Hanut]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=181</uri>
			</author>
			<updated>2014-08-29T08:22:06Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=25596#p25596</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 1064 ошибка]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=25595#p25595" />
			<content type="html"><![CDATA[<p>Нашел эту переменную в двух местах:</p><p>1 код:</p><div class="codebox"><pre><code>$content .= &quot;\$filesConfig[&#039;numbernewfiles&#039;]           = &quot;.intval ( $_POST [&#039;numbernewfiles&#039;] ) .&quot;;\n\n&quot;;</code></pre></div><p>2 код:</p><div class="codebox"><pre><code>&lt;td style=\&quot;padding: 4px;\&quot;&gt;{$lang_files[&#039;config_43&#039;]}&lt;a href=\&quot;#\&quot; class=\&quot;hintanchor\&quot; onMouseover=\&quot;showhint(&#039;{$lang_files[&#039;config_44&#039;]}&#039;, this, event, &#039;250px&#039;)\&quot;&gt;[?]&lt;/a&gt;&lt;/td&gt;
                &lt;td style=\&quot;padding: 4px;\&quot;&gt;&lt;select class=\&quot;select\&quot; name=\&quot;numbertopfiles\&quot;&gt;
                &lt;option value=\&quot;{$filesConfig [&#039;numbertopfiles&#039;]}\&quot; selected&gt;{$filesConfig [&#039;numbertopfiles&#039;]}&lt;/option&gt;
                    &lt;option value=\&quot;3\&quot;&gt;3&lt;/option&gt;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[TheZimbabve]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=6198</uri>
			</author>
			<updated>2014-08-28T23:58:50Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=25595#p25595</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 1064 ошибка]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=25594#p25594" />
			<content type="html"><![CDATA[<p>Я убрал эту переменную вовсе, но ошибка не изменилась... а по идее же должна была?</p>]]></content>
			<author>
				<name><![CDATA[TheZimbabve]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=6198</uri>
			</author>
			<updated>2014-08-28T14:14:35Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=25594#p25594</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 1064 ошибка]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=25593#p25593" />
			<content type="html"><![CDATA[<p>Не могу найти, где она определяется...</p>]]></content>
			<author>
				<name><![CDATA[TheZimbabve]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=6198</uri>
			</author>
			<updated>2014-08-28T14:02:37Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=25593#p25593</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 1064 ошибка]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=25592#p25592" />
			<content type="html"><![CDATA[<p>Вероятно ошибка в конце запроса, после &quot;DESC&quot; стоит запятая и затем значение переменной $filesConfig [&#039;numbernewfiles&#039;]. Проверьте значение переменной $filesConfig [&#039;numbernewfiles&#039;].</p>]]></content>
			<author>
				<name><![CDATA[Hanut]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=181</uri>
			</author>
			<updated>2014-08-28T13:59:02Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=25592#p25592</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[1064 ошибка]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=25591#p25591" />
			<content type="html"><![CDATA[<p>Ошибка:</p><p> MySQL error in file: /engine/modules/files/newfiles.php at line 14<br />Error Number: 1064<br />The Error returned was:<br />You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near &#039;&#039; at line 5<br />SQL query:</p><p>SELECT `id`, `title`, `version`, `alt_name` FROM `dle_` WHERE `approve` = &#039;0&#039; AND `date` &lt; &#039;2014-08-28 13:41:39&#039; ORDER BY `date` DESC ,</p><p>Код: </p><div class="codebox"><pre><code>&lt;?php 

if (!defined ( &#039;DATALIFEENGINE&#039;))
die ( &quot;Hacking attempt!&quot;);
include ENGINE_DIR .&#039;/data/&#039;.$files .&#039;_config_global.php&#039;;
$newfiles = dle_cache ( &quot;new&quot;.$modulname );
if (!$newfiles) {
$thisdate = date ( &quot;Y-m-d H:i:s&quot;,(time () +($config [&#039;date_adjust&#039;] * 60)) );
include_once ENGINE_DIR .&#039;/data/&#039;.$modulname .&#039;_config.php&#039;;
$db-&gt;query ( &quot;SELECT `id`,
 `title`,
 `version`, 
 `alt_name`
 FROM `&quot;.PREFIX .&quot;_&quot;.$module_dbtitle.&quot;` WHERE `approve` = &#039;0&#039; AND `date` &lt; &#039;{$thisdate}&#039;  ORDER BY `date` DESC ,&quot;.$filesConfig [&#039;numbernewfiles&#039;] .&quot;&quot;);
while ( $row = $db-&gt;get_row () ) {
if (strlen ( $row [&#039;title&#039;] ) &gt;25)
$title = substr ( $row [&#039;title&#039;],0,25 ) .&quot; ...&quot;;
else
$title = $row [&#039;title&#039;];
$ctitle = $row [&#039;id&#039;];
if ($config [&#039;allow_alt_url&#039;] == &quot;yes&quot;) {
if ($filesConfig [&#039;nica_rewrite&#039;] == &quot;1&quot;)
$linkfile = &quot;&lt;a class=\&quot;newfiles\&quot; title=\&quot;&quot;.stripslashes ( $row [&#039;title&#039;] ) .&quot; &quot;.$row [&#039;version&#039;] .&quot;\&quot;  href=\&quot;&quot;.$config [&#039;http_home_url&#039;] .$modulname .&quot;/&quot;.$row [&#039;id&#039;] .&quot;_&quot;.$row [&#039;alt_name&#039;] .&quot;.html\&quot;&gt;&quot;.stripslashes ( $title ) .&quot; &quot;.$row [&#039;version&#039;] .&quot;&lt;/a&gt;&quot;;
else
$linkfile = &quot;&lt;a class=\&quot;newfiles\&quot; title=\&quot;&quot;.stripslashes ( $row [&#039;title&#039;] ) .&quot; &quot;.$row [&#039;version&#039;] .&quot;\&quot;  href=\&quot;&quot;.$config [&#039;http_home_url&#039;] .$modulname .&quot;/file&quot;.$row [&#039;id&#039;] .&quot;.html\&quot;&gt;&quot;.stripslashes ( $title ) .&quot; &quot;.$row [&#039;version&#039;] .&quot;&lt;/a&gt;&quot;;
}else
$linkfile = &quot;&lt;a class=\&quot;newfiles\&quot; title=\&quot;&quot;.stripslashes ( $row [&#039;title&#039;] ) .&quot; &quot;.$row [&#039;version&#039;] .&quot;\&quot;  href=\&quot;&quot;.$config [&#039;http_home_url&#039;] .&quot;index.php?do=&quot;.$modulname .&quot;&amp;op=download&amp;fileid=&quot;.$row [&#039;id&#039;] .&quot;\&quot;&gt;&quot;.stripslashes ( $title ) .&quot; &quot;.$row [&#039;version&#039;] .&quot;&lt;/a&gt;&quot;;
$newfiles .= &quot;&amp;raquo; &quot;.$linkfile .&quot;&lt;br /&gt;&quot;;
}
$db-&gt;free ();
create_cache ( &quot;new&quot;.$modulname,$newfiles );
}
?&gt;</code></pre></div><p>Как исправить?</p>]]></content>
			<author>
				<name><![CDATA[TheZimbabve]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=6198</uri>
			</author>
			<updated>2014-08-28T13:47:22Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=25591#p25591</id>
		</entry>
</feed>
