Coder Social home page Coder Social logo

7's People

Contributors

ccjjmartin avatar davidrothstein avatar davidstrauss avatar dbuytaert avatar drumm avatar drupol avatar elliotttf avatar fluxsauce avatar generalredneck avatar goba avatar jhodgdon-drp avatar larowlan avatar mcdruid avatar mparker17 avatar msonnabaum avatar poker10 avatar stefanruijsenaars avatar webchick avatar xjm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

7's Issues

List of enhancements?

Could we get a list of enhancements? Perhaps in the wiki?

It would really help out those who are evaluating if they should use this over regular core if they knew some more details.

Critical Security Issue

I noticed that Drupal 7/8 Core is release a security patch that is requiring everyone upgrade immediately once the patch is released. I'm wondering if we couldn't integrate that and release a new release for Pressflow quickly also?

https://www.drupal.org/psa-2018-001

7.53 Merge

Could we get 7.53 or 7.54 merged from core. I'm in need of:
Issue #2821441 by davic, droplet, David_Rothstein, Joe Keene, Fabianx, tory-w: Fixed that newer Chrome versions cannot drag and drop anymore on desktop after 7.51 update when jQuery is updated to 1.7-1.11.0

drupal.org/node/2821441

7.28 tag?

Is there a reason there isn't a 7.28 tag? I see one for all of the previous Drupal core releases.

7.31 and 7.30 tags

I believe this question has been asked in the past but is there a reason there aren't tags for these releases? Is master then basically 7.31?

What is $_SERVER['PRESSFLOW_SETTINGS'] ?

Hello,

While looking through the source code for Pressflow 7, I noticed that bootstrap.inc is checking for a server variable $_SERVER['PRESSFLOW_SETTINGS'] and attempting to load settings from there such as database credentials. This seems to be an alternative to specifying credentials in settings.php

I was not able to find any documentation on this on the Pressflow wiki. What format should this data be in? How can this data be set on the server ?

Thanks

protected fields are accessed by entityreference module

In commit 3c7c72f, alterMetaData and alterTags are made protected, and the entityreference module accesses these directly at https://git.drupalcode.org/project/entityreference/-/blob/7.x-1.5/plugins/selection/EntityReference_SelectionHandler_Generic.class.php#L292-305.

See: https://www.drupal.org/project/entityreference/issues/3325972

This causes the following error: PHP Fatal error:  Cannot access protected property SelectQuery::$alterTags in …/sites/all/modules/contrib/entityreference/plugins/selection/EntityReference_SelectionHandler_Generic.class.php

POSSIBLE SOLUTION: add getter and setter functions to SelectQuery in includes/database/select.inc

  /* Implementations of QueryAlterableInterface. */

  public function getAlterTags() {
    return $this->alterTags;
  }

  public function setAlterTags($tags) {
    $this->alterTags = $tags;
  }
  public function getAlterMetaData() {
    return $this->alterMetaData;
  }

  public function setAlterMetaData($metadata) {
    $this->alterMetaData = $metadata;
  }

Then, entityreference can alter its code to use the gett/setter methods:

/**
   * Helper method: pass a query to the alteration system again.
   *
   * This allow Entity Reference to add a tag to an existing query, to ask
   * access control mechanisms to alter it again.
   */
  protected function reAlterQuery(SelectQueryInterface $query, $tag, $base_table) {
    // Save the old tags and metadata.
    // For some reason, those are public.
    $old_tags = $query->getAlterTags(); //$query->alterTags;
    $old_metadata = $query->getAlterMetadata(); //$query->alterMetaData;
    $has_base_table = !empty($old_metadata['base_table']);
    $old_base_table = $old_metadata['base_table'];

    $query->setAlterTags(array($tag => TRUE));
    $old_metadata['base_table'] = $base_table;
    $query->setAlterMetaData($old_metadata);
    drupal_alter(array('query', 'query_' . $tag), $query);

    // Restore the tags and metadata.
    $query->setAlterTags($old_tags);
    if ($has_base_table) {
      $old_metadata['base_table'] = $old_base_table;
    }
    else {
      unset($old_metadata['base_table']);
    }
    $query->setAlterMetaData($old_metadata);
  }

Forward-port the "external" cache mode

PF5+ implement an "external" cache mode that disables Drupal's internal page cache and buffer entirely. D7 sends the correct cache headers out of the box now, but it still lacks a proper bypass for the internal cache.

Pressflow 7.78 Release

Hey there,

I see that you merged in the latest Drupal release security fixes but was wondering if you could also spin off a new release?

THANKS!

Utf8Mb4

Changes I do each time with my drupal 7 setup after updating core:

*Schema.inc

    --- a/includes/database/mysql/schema.inc
    +++ b/includes/database/mysql/schema.inc
    @@ -78,14 +78,16 @@ class DatabaseSchema_mysql extends DatabaseSchema {
       protected function createTableSql($name, $table) {
         $info = $this->connection->getConnectionOptions();

    +    if(!isset($info['charset'])) {
    +      $info['charset'] = 'utf8';
    +    }
         // Provide defaults if needed.
         $table += array(
           'mysql_engine' => 'InnoDB',
    -      'mysql_character_set' => 'utf8',
    +      'mysql_character_set' => $info['charset'],
         );

         $sql = "CREATE TABLE {" . $name . "} (\n";
    -
         // Add the SQL statement for each field.
         foreach ($table['fields'] as $field_name => $field) {
           $sql .= $this->createFieldSql($field_name, $this->processField($field)) . ", \n";
    @@ -99,6 +101,10 @@ class DatabaseSchema_mysql extends DatabaseSchema {

         // Remove the last comma and space.
         $sql = substr($sql, 0, -3) . "\n) ";
    +    if (isset($info['row_format'])){
    +      $sql .='ROW_FORMAT=' . $info['row_format'] . ' ';
    +    }
    +

         $sql .= 'ENGINE = ' . $table['mysql_engine'] . ' DEFAULT CHARACTER SET ' . $table['mysql_character_set'];
         // By default, MySQL uses the default collation for new tables, which is
    @@ -113,7 +119,6 @@ class DatabaseSchema_mysql extends DatabaseSchema {
         if (!empty($table['description'])) {
           $sql .= ' COMMENT ' . $this->prepareComment($table['description'], self::COMMENT_MAX_TABLE);
         }
    -
         return array($sql);
       }

*database.inc

    --- a/includes/database/mysql/database.inc
    +++ b/includes/database/mysql/database.inc
    @@ -57,11 +57,14 @@ class DatabaseConnection_mysql extends DatabaseConnection {
         // Force MySQL to use the UTF-8 character set. Also set the collation, if a
         // certain one has been set; otherwise, MySQL defaults to 'utf8_general_ci'
         // for UTF-8.
    +    if(!isset($connection_options['charset'])){
    +       $connection_options['charset'] = 'utf8';
    +    }
         if (!empty($connection_options['collation'])) {
    -      $this->exec('SET NAMES utf8 COLLATE ' . $connection_options['collation']);
    +      $this->exec('SET NAMES '.$connection_options['charset'].' COLLATE ' . $connection_options['collation']);
         }
         else {
    -      $this->exec('SET NAMES utf8');
    +      $this->exec('SET NAMES '.$connection_options['charset']);
         }

Something to add to pressflow perhaps?

7.4 merge?

Are y'all planning a 7.4 merge for Pressflow? I see it's already merged in the Pantheon fork. I'm not quite sure of the other differences with that branch so I figured it was best to stick with Pressflow itself. Thanks.

Undefined index: drupal dans update_requirements()

The function update_requirements() check for the "drupal" project, which does not exists since "pressflow" is used instead.

Awaiting a specific URL for checking update status (@see pressflow/6#30) is created, it could be great to avoid the display or update error message by modifying the update module.

I actually have a patch against Pressflow to avoid such issue, but text (or patch) file are not allowed here :(

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.