Cant view my site anymore, Fatal error

Ok so i had the site up and running for several months now, i would only log in to add new pages or content and everything was working fine except i would get the occasional Fatal error out of memory or what ever. So today i was looking in the admin section and i decided to clear all caches, once i did that i get the error

Fatal error: Out of memory (allocated 31195136) (tried to allocate 35 bytes) in /homepages/18/d230265520/htdocs/xxxx/includes/theme.inc on line 965

Notice: Undefined index: uid in DatabaseStatementBase->fetchAllKeyed() - Error, when I run CRON, where do I start to fix ?

I get the below error message everytime I run CRON.

Notice: Undefined index: uid in DatabaseStatementBase->fetchAllKeyed() (line 2176 of /homepages/18/d276598355/htdocs/drupal_dev_area/includes/database/database.inc).

Any pointers as to where I even start to look to fix this ?

Newbie and I just can twork out what is causing this.... HELP......

What happened to the Admin index in Drupal 7? It's a mess imho.

I have several drupal sites. Finally decided D7 was ready for me to upgrade my busiest site from D6. That in itself was a royal pain but that's another topic.

Theme the summary list in views

Hi everyone,

I have used the archive view which creates a nice list for each month with the number of nodes ie January (2).

However, I can't theme the list. Whatever I try, it always ends up being:

<ul class="views-summary">
      <li><a href="/archive/201110">October 2011</a>
              (1)
          </li>
      <li><a href="/archive/201111">November 2011</a>
              (2)
          </li>
    </ul>

I wanted to change the ul class to 'archive-list'. I have tried it in the HTML list settings (wrapper class and list class) all to no avail. I've added field of 'title' and tried to apply classes to that, but all that does is apply classes to the resulting list after applying the contextual filter i.e. when you click on January (2), the next page has the fields that you inputted with the classes you applied.

How do you style the actual list itself? I don't know where it's getting the date data from in the first place, it doesn't appear to be a field.

Thanks if anyone can shed some light.

**EDIT** or even to be able to change the div wrapper from 'item-list' to something else. If one had more than one summary view on their site, it would be impossible to style them differently.

This is what I found in views-view-summary.tpl.php:


<?php
/**
* @file views-view-summary.tpl.php

problem theming links system main menu

Hi, i write this function in mi template file from mi theme folder (Bartik)

01|
02|
03|
04|function bartik_links__system_main_menu($variables) {
05|
06| $html = '<ul id="apple">';  
07|  foreach ($variables['links'] as $link) {
08|    $html .= "<li>".l($link['title'], $link['path'], $link)."</li>";
09| }
10| $html .= '<li><form action="" id="f" class=""><div><input type="text" id="b" class="trans"></div></form></li>';
11| $html .= '</ul>';
12| 
13| return $html;
14|}
15|

The menu is showing ok... but drupal show me this red messages

Notice: Undefined index: path en bartik_links__system_main_menu() (línea 8 de /home/siieecom/public_html/Proyectos/HappyBox/themes/bartik/template.php).
Notice: Undefined index: path en bartik_links__system_main_menu() (línea 8 de /home/siieecom/public_html/Proyectos/HappyBox/themes/bartik/template.php).
Notice: Undefined index: path en bartik_links__system_main_menu() (línea 8 de /home/siieecom/public_html/Proyectos/HappyBox/themes/bartik/template.php).
Notice: Undefined index: path en bartik_links__system_main_menu() (línea 8 de /home/siieecom/public_html/Proyectos/HappyBox/themes/bartik/template.php).
Notice: Undefined index: path en bartik_links__system_main_menu() (línea 8 de /home/siieecom/public_html/Proyectos/HappyBox/themes/bartik/template.php).

How to merge Shortcut links with main menu?

Hi,

I would like to output Shortcuts the same way as primary links in order to achieve a 'personalized' or profile based main menu.

I've tried with shortcut_renderable_links(), shortcut_default_set() in order to get an array of links and then feed it to current theme in template file e.g. print theme('links__system_main_menu', array('links' => $secondary_menu));.

However, the array structure is different than e.g. secondary menu and I assume that I have to apply some other function which is?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x