Install Drupal 7 - error message
I have problem during install Drupal 7:
An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: http://xxxxx/install.php?… StatusText: Service unavailable (with message) ResponseText: PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 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 ‚) ORDER BY fit DESC LIMIT 0, 1‘ at line 1: SELECT * FROM {menu_router} WHERE path IN () ORDER BY fit DESC LIMIT 0, 1; Array ( ) in menu_get_item() (line 443 of /xxxx/includes/menu.inc).
Can you help me? My english is not better. PHPinfo = http://pdomysql.tym.cz/phpinfo.php
I need fix this problem for better compatibility with Drupal 7.
Please step by step - how i can fix this problem? What I need? I need help for users our web hosting
Problem with views on multi lingual site.
Hello all,
My site has three enabled languages: Englisch, Deutsch and Français. Content is enabled with either "language neutral" or a language set.
I have a view that shows a particular type of custom content. The problem I have is that the view is not showing what I want.
- If the user has selected "english", the default site language the view shows both english and language neutral content.
- If the user selects "français" or "deutsch" he only gets content in that language. I want however language neutral content to be shown too. What do I need to configure?
In other words, language neutral content should always be shown.
Image path in php from views ?
Hi all,
I'm new on Drupal.
I actually do my custom pages from views, and i use the code to get my fields:
<?php
print $fields['entity_id_1']->content;
?>But if my entity is a picture and i want the filepath how i do that?
All i've found is:
<?php
echo render(file_create_url($node->entity_id_1['und'][0]['uri']));
?>But it doesn't work.
Thank you for your time.
$content array disappears when anonymous user
Hi,
Im a bit of a newie to Drupal so any help would be apperciated! thanks in advance..
I have written some code to get some data from an array eg:
============================================
$total_images = $content['field_gallery_img']['#object']->field_gallery_img;
global $base_url;
foreach ($total_images as $value)
{
$imageURL = $base_url.'/sites/default/files/'. $value['filename'];
print ('
');
// print($value['uri'] . '
');
}
===========================================
When viewing the page whilst logged in to drupal everthing is fine and the data is viewable.
When I logout and view the page the array is no longer available, throwing an error like this:
==========================
Undefined index: filename in include() (line 171 of C:\wamp\www\TwoSevenCreative\site\sites\all\themes\twosevencreative\templates\node--work.tpl.php)
==========================
Regards
Dave
what are the main differences in Drupal 6 & Drupal 7 theming?
Can anyone plz post a link that illustrates the main differences between theming in Drupal 6 and Drupal 7?
How to catch all optional arguments for a page callback?
I'm working on a module with a page callback that will parse a bunch of optional arguments. I know that optional arguments are passed on (as described in the hook_menu documentation), but short of defining an endless list of variables in the callback function like
function mymodule_abc_view($a = '', $b = '', $c = '', $d = '') {
...is there a way to pass all the arguments on as an array for example?