Can't restore Admin theme?

I'm pretty new to Drupal, but took over a preconfigured site recently.

I noticed some of the admin pages weren't loading properly, so I attempted to switch the admin theme. The entire backend is now returning the same error:

Fatal error: Cannot redeclare adaptivetheme_admin_preprocess_page() (previously declared in /nas/webroot/mydomain.com/web/dev/themes/adaptivetheme/at_admin/template.php:6) in /nas/webroot/mydomain.com/web/dev/themes/adaptivetheme/at_admin/template.php on line 47

I found if I changed the name of the "at_admin" folder, I am temporarily able to access the backend (10 seconds or so). It's long enough to make a single change at a time, and I've tried disabling the adaptive theme entirely, but it still gives the same error. I can see the file it's referencing, but I'm unsure what it has to do with the entire backend not loading:

<?php

/**
* Override or insert variables into page templates.
*/
function adaptivetheme_admin_preprocess_page(&$vars) {
// RFC2822 date format
if ($rfc = date("r" , time())) {
$vars['datetime_rfc'] = t('@time', array('@time' => $rfc));
}
else {
$rfc = '';
$vars['datetime_rfc'] = '';
}
// ISO 8601 date format
if ($iso = gmdate('Y-m-d\TH:i:sO')) {
$vars['datetime_iso'] = $iso;
}
else {
$iso = '';
$vars['datetime_iso'] = '';
}

Transaction Safe Database

Is transaction safe database queries in core of Drupal 8, as in enterprise level application transaction multi user edit of records takes places simultaneously, e.g what I mean is Begin Transaction, Commit Transaction, Roll Back. Is there any feature or modules supporting such kind of database access available.

Have anyone came across such a situtation, as we all know Drupal as moved beyond CMS to Enterprise Framework for different types applications, cms, intranet etc.

Your thoughts on same

How do I set the path to a custom view style template in D8?

I have created a custom view style in a module. It shows up in the list of view styles, but when I try to output the resulting block I get the message:

Warning: include(/var/www/core/modules/views/templates/mymodule-list.tpl.php) [function.include]: failed to open stream: No such file or directory in theme_render_template() (line 1491 of core/includes/theme.inc).

Warning: include() [function.include]: Failed opening '/var/www/core/modules/views/templates/mymodule-list.tpl.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in theme_render_template() (line 1491 of core/includes/theme.inc).

This obviously is trying to find my view template in the templates folder of the view module, but I want it to look in /sites/default/modules/mymodule/templates/.

My plugin class annotations look like this:

Drupal 8 / PostgreSQL 9.2

Hello,
we have developed a web site using PHP/Javascript/PostgreSQL on Ubuntu 12.10 dedicated servers .
Now, we'd like to develop a new presentation layer, but keep the PG database. The goals are :
nicer interface, adapt the interface for smartphones, tablets...
Our research led us to think that Drupal 8 may be the best tool to do that.
We have no specific timeframe, we could start with beta version and wait for Drupal 8 official release
to put in production.
Is it doable ? Is Drupal 8 fitted to this task ?

Alex

best practices: where to put/write php

Hi all,

i cannot find any specific documentation about it. It is well know that php must not be written inside nodes, blocks, or any place in the database.

But which is better to place this html? On the begining my approach would be:

Content profile user registeration is not working for me

hi there !! Im a new developer in drupal . i have been working on drupal for 2 months . Actually i was trying to make my own registration page for users. so i had gone with content profile module,content profile user registration. I had done all the requirements inside the content management -> profile area.After saving all and logged out my admin session. Entering for creating new user registration as user i didnt able to find my own content type which have been created inside the content type profile with the effective settings. What is the reason for the problem.??

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x