Giter Club home page Giter Club logo

joomla-cms's People

Contributors

alikon avatar andrepereiradasilva avatar bembelimen avatar brianteeman avatar c-lodder avatar chdemko avatar chmst avatar ciar4n avatar dextercowley avatar dgrammatiko avatar eddieajau avatar elinw avatar fedik avatar hackwar avatar hleithner avatar infograf768 avatar johanjanssens avatar joomdonation avatar laoneo avatar louislandry avatar mbabker avatar pasamio avatar philetaylor avatar rdeutz avatar reygigataras avatar richard67 avatar roland-d avatar sharkykz avatar wilsonge avatar zero-24 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  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

joomla-cms's Issues

com_installer/manage is loading very slowly

When I try to load "administrator/index.php?option=com_installer&view=manage" on my local installation, it is taking too long.

My maximum_execution_time in php.ini was set to 30 seconds and it could never load because of that.

Joomla : 2.5.1
Server : Win7 pro x64 with XAMP
PHP version : php 5.3.5

Bug in Codemirror

/plugins/editors/codemirror/codemirror.php - line 153

$styleSheet (meant to be an array) is being set to a string. This will cause the foreach on line 172 to break.

This bug is unnoticed because it applies only using the Javascript syntax settings with Codemirror and is not normally used in Joomla. 3rd party plugins might like to use it though.

joomla.org

Well, this is off topic but... joomla.org seems to be down. I'm just getting a 500 error when trying to access either www.joomla.org or docs.joomla.org. What's going on?

The constants IS_WIN, IS_MAC, IS_UNIX are used in the system?

Checking the file libraries/import.php I'm a question regarding the use of constants IS_WIN, IS_MAC, IS_UNIX.

Somewhere in the CMS are used?

Moreover libraries/joomla/filesystem/path.php file defines constants: JPATH_ISWIN and JPATH_ISMAC on lines 13, 16 respectively.

The file ./libraries/joomla/application/application.php define function 'isWinOS'

The object JFTP in its constructor sets the variable OS.

All these files make use of the form:

<?php
substr(PHP_OS, 0, 3)

to determine the operating system.

the external libraries for example: phpmailer and geshi also make use of this form.

IMHO is necessary to define these variables.

However appear in the documentation. https://github.com/joomla/joomla-platform/blob/staging/docs/manual/en-US/chapters/introduction.xml#L41

Personally I consider that:

    • These constants should not exist.
    • Or if the file 'iasf.php' is loaded before the other files, then you should make use of these constants.

Personally I think it's the first best solution(educes the learning curve of the framework).

P. S. I would like to help review this detail.

com_redirect

plugin plugins/systems/redirect does not work because an url is searched for the full url;
it is not found (when a redirect has been created) so a new entry is created, resulting in duplicates

LESS Compiler

If there is a LESS compiler built into Joomla, how can I call it from my template?

Menu Manager: Edit Menu Item - Default Page option for Default Menu Link is unlogical

Situation:

  1. Create a bunch of Menu Items
  2. Set one of them(e.g. Home) as "Default Page"
  3. Now open them Menu Item:Home(Menu Manager: Edit Menu Item - View)
  4. Try to set the "Default Page" to "No"

The result:
Save failed with the following error: At least one menu item has to be set as Default.

Solution maybe:
Maybe a checkbox, remove the decission between yes or no!

Best regards

Cache issue for POST request

When we enable the system plugin cache enabled, it doesn't work properly with the compojoom comment component.
The newly added comments from the guest doesn't show up until the cached page expired.

After debug and test, we find that Joomla doesn't remove the cached page when received the POST request.

we have fixed this problem in our server with the following method:

in /plugins/system/cache/cache.php 62 lines:
change from:
if ($user->get('guest') && $_SERVER['REQUEST_METHOD'] == 'GET') {
$this->_cache->setCaching(true);
}
to:
if ($user->get('guest') && $_SERVER['REQUEST_METHOD'] == 'GET') {
$this->_cache->setCaching(true);
}else{
$this->_cache->remove();
}

in file /libraries/joomla/cache/controller/page.php change the function
protected function _makeId()
{
return JCache::makeId();
}
to
protected function _makeId()
{
//calculate the cache id according to refer page when post request
$user = JFactory::getUser();
if ($user->get('guest')&& $_SERVER['REQUEST_METHOD'] == 'POST') {
$referer=$_SERVER['HTTP_REFERER'];
if (JURI::isInternal($referer)) {
$referer = '/'.substr($referer, strlen(JURI::base()));
return md5(serialize($referer));
}
}
return JCache::makeId();
}

and add the function:
public function remove(){
$id= $this->_id==null?$this->_makeId():$this->_id;
$group='page';
$this->_id = null;
$this->_group = null;
return $this->cache->remove($id,$group );
}

Hopefully Joomla team can include this fix into the next release.

Offline image overflow

In Offline page, when an offline image is set, If the image is wider than 400px, the image comes out from the edges of the central block.

A solution is to inform that the image must be less than 400px, or to force the width in HTML.

Joomla Main Site unable to load

i got this error after a fresh install

Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /opt/lampp/htdocs/projects/j/j3/plugins/content/joomla/joomla.php on line 101

using php 5.3.8

Error on login to backend

When I login to the backend I receive a 500 error with a message saying:

SQL=UPDATE __session SET guest = '0', username = '[DATA REMOVED]', userid = [DATA REMOVED] WHERE session_id = '[DATA REMOVED]'

If I refresh the page everything seems to work fine and I'm logged in, but I still get this error every time I login

improving CSS styling possibilities of the pagebreaker navigation buttons/links

When articles got inserted "pagebreaks" the content plugin "pagebreak" inserts at the bottom of the article a "ul" element with 2 navigation buttons "prev" and "next" just like this:

As you people can see, when the user is at the first or last page, the navigation elements shows a "li" element with just text which makes hard does some CSS styling to that element, to solve this problem I propose the just wrap the content of the first and last navigation element with a "span" element

the file to modify in question is https://github.com/joomla/joomla-cms/blob/master/plugins/content/pagebreak/pagebreak.php#L313

line: 313 and 323

With something like:

$next = "" . JText::_('JNEXT') . "";

and

$prev = "" . JText::_('JPREV') . "";

This change is minimum and doubt it will cause any kind of issue, and developers would be able to do some styles like this

.pagination li span { //style for disable button }
.pagination li a { //style for enabled button }

here is the pull request

#337

I hope I'm doing this correctly

debug language does'nt work

if debug language set to yes in the global configuration both back-end and front-end of the site give blank pages with server error can connect to server.

test environment ;

wamp server under windows7

Apache 2.2.22
PHP 5.3.13
MySQL 5.5.24

FinderController duplicate lines

In FinderController (/components/com_finder/controller.php), the following lines appear twice:

    // Load plug-in language files.
    FinderHelperLanguage::loadPluginLanguage();

First on lines 43+44 then immediately after on lines 46+47.

Also, line 41 sets $user = JFactory::getUser(); but $user is never used in this function so the line can be removed.

JRegistryFormatINI::stringToObject() returns empty object

I think there's a simple error in: "/libraries/joomla/registry/format/ini.php" which caused the method to always return an empty object:

// Validate the key.
if (preg_match('/[^A-Z0-9_]/i', $key))
{
    // Maybe throw exception?
    continue;
}

Shouldn't it be "not" (!):

if (!preg_match('/[^A-Z0-9_]/i', $key))

To reproduce:

$params = JRegistry::getInstance('test');
$params->loadFile('/path/to/ini_file', 'INI');

Squeezebox modal causes select lists to disappear

Test Instructions:
Open a modal box in any form (JForm or not) where there's a select list. For example: when adding or editing an article. Successful Tests:

Summary:
Squeezebox modal causes select lists to disappear

Details:
I just recently noticed this issue, but it seems to be in previous versions,
too.
When I'm in a form where select lists are shown, and I open a Squeezebox (for
example a user field), the select lists disappear. When I close the modal box,
the lists reappear again, but it van be annoying, especially in the frontend,
when form fields just disappear.

The problem seems to be with either Mootools or the Squeezebox.
It doesn't matter if the form is a JForm or a simple HTML form, the problem
seems to be with any select list.

http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_id=8103&tracker_item_id=28742

Component options button routing error

Component options button routs to the appropriate page but then it never returns it to the page it came from with save&close/Cancel like the j2.5 did. Need to add a way to know where the person is coming to the page from.

Bug in com_finder/views/search/view.feed.php

Line 41 assigns the params object to $params.
Line 51 accesses $this->params which was never assigned.

It doesn't seem to matter much if the variable is local or a class property (although having access to it in the template might be useful) but it should be one or the other.

JHTML::image() can return a bad image link

When calling JJHTML::image() with $relative set to true, a bad image link is created in administrator when an image file exists only in JPATH_THEMES . "/$template/$folder/system/$file".

Discussion and test file at http://forum.joomla.org/viewtopic.php?f=579&t=734663

Cause:
See the statements at about line 417 of /libraries/joomla/hmtl/html.php

// Try to deal with system files in the template folder
elseif (file_exists(JPATH_THEMES . "/$template/$folder/system/$file"))
{
    $includes[] = JURI::root(true) . "/templates/$template/$folder/system/$file";
    break;
}

The file is detected in /$template/$folder/system/$file but the link builds as webroot/$template/$folder/system/$file. In administrator, the link should be built as webroot/administrator/$template/$folder/system/$file instead.

Solution:
Change

    $includes[] = JURI::root(true) . "/templates/$template/$folder/system/$file";

To:

    $includes[] = JURI::root(true) . ($app->isAdmin() ? '/administrator' : '') . "/templates/$template/$folder/system/$file";

To be honest, I don't know how this scenario would exist unless someone moved an image into /templates/$template/$folder/system. But, I thought I'd post this in case someone ran across it or the developers wanted to do a fix.

Error media.php line 197

Error en algunas pantallas

PHP Notice: Array to string conversion in ../libraries/cms/form/field/media.php on line 197

Esto se debe a que se está reutilizando el nombre de la variable $attr como array cuando ya estaba definida como string en la línea 167 de media.php.

        $attr = array(
            'id' => $this->id . '_preview',
            'class' => 'media-preview',
            'style' => $style,
        );
        $img = JHtml::image($src, JText::_('JLIB_FORM_MEDIA_PREVIEW_ALT'), $attr);

Solución: Cambiar esta variable en este punto por otro nombre distinto, por ejemplo $aAttr
$aAttr = array(
'id' => $this->id . 'preview',
'class' => 'media-preview',
'style' => $style,
);
$img = JHtml::image($src, JText::
('JLIB_FORM_MEDIA_PREVIEW_ALT'), $aAttr);

Error When Set hathor Template to default

i got this error when i set up hathor template to default using the star

Notice: Undefined property: JAdministrator::$JComponentTitle in /opt/lampp/htdocs/projects/j/j3/administrator/modules/mod_title/mod_title.php on line 13

working with

PHP Version 5.3.8
on linux localhost

Finder (Smart Search) plugins missing after upgrade to 2.5.1

I just upgraded my 1.7.3 site to 2.5.1 and noticed that Smart Search was missing from the Components menu. After some investigation I realized the plugin needed to be enabled in order for the component to show. I followed the following documentation to do so:

http://docs.joomla.org/index.php?title=Smart_Search_quickstart_guide&oldid=64505

Unfortunately, all the Smart Search plugins seem to be gone or were never installed upon upgrade. This may be due to the way I upgraded Joomla. I used the old method of extracting the Joomla update file, FTPing all the files and overwriting the old, I then logged into Joomla Admin and went to Extension Manager / Database / and clicked Fix. This seems to have worked in every regard, except Finder is not functioning (though I see it was installed via FTP under /components and /administrator/components.

If I type the following I can see com_finder from my Joomla 2.5.1 Admin Panel:

/administrator/index.php?option=com_finder

Unfortunately, it is showing the following error on the page:

Error loading component: com_finder, 1
Error loading component: com_finder, 1

So I am at a loss on how to get the plugins? Is there a download package?

Also, let me explain why I had to upgrade Joomla the old fashioned way. For some reason when I went to Extension Manager / Update and attempted to upgrade to 2.5.1 it gave me the following error over and over again:

JInstaller: :Install: Error SQL DB function failed with error number 1060
Duplicate column name 'sitename' SQL=ALTER TABLE jos_languages ADD COLUMN sitename varchar(1024) NOT NULL AFTER metadesc;
SQL = ALTER TABLE #__languages ADD COLUMN sitename varchar(1024) NOT NULL AFTER metadesc;
Files Update: SQL error file DB function failed with error number 1060
Duplicate column name 'sitename' SQL=ALTER TABLE jos_languages ADD COLUMN sitename varchar(1024) NOT NULL AFTER metadesc;
SQL = ALTER TABLE #__languages ADD COLUMN sitename varchar(1024) NOT NULL AFTER metadesc;

ContentBuildRoute does not remove layout if link attached to menu item

In components/com_content/router.php, the following condition (line 47) does not remove the layout from the query :

// are we dealing with an article or category that is attached to a menu item?
if (($menuItem instanceof stdClass) && $menuItem->query['view'] == $query['view'] && isset($query['id']) && $menuItem->query['id'] == intval($query['id'])) {
        unset($query['view']);

        if (isset($query['catid'])) {
            unset($query['catid']);
        }

        unset($query['id']);

        return $segments;
    }

this may result in links like index.php/extensions?layout=blog, where the original link was something like index.php?option=com_content&view=category&layout=blog&id=20&Itemid=527

Easily fixed by removing the layout from the $query, eg:

// are we dealing with an article or category that is attached to a menu item?
if (($menuItem instanceof stdClass) && $menuItem->query['view'] == $query['view'] && isset($query['id']) && $menuItem->query['id'] == intval($query['id'])) {
        unset($query['view']);

        if (isset($query['catid'])) {
            unset($query['catid']);
        }
        
        if (isset($query['layout'])) {
            unset($query['layout']);
        }

        unset($query['id']);

        return $segments;
    }

Inconsistent refreshManifestCache and manifest files load

I just found an inconsistency on installer and refresh manifest function... when installing an extension it gets the first valid manifest xml... ok, but if the file is not mod_xxxx.xml e.g: if the xml file is manifest.xml, the refresh cache will not get it... refresh cache requires a xml file named as extension name, but that file can not exists some times... so I think we should fix that updating the extensions adapters to use the jinstaller findManifest function instead of look for a specific filename... I have fixed it and will make a pull request.

JDatabaseMySQLi::query: 1064 error after update from 1.7

One of my own component (business directory) ran perfectly on 1.7 and
after updating to 2.5 it throws the following error referring to an SQL
query:

JDatabaseMySQLi::query: 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 '' at line 1 SQL=SELECT jos_bd_packages.picture_num
FROM jos_bd_businesses LEFT JOIN jos_bd_packages ON
jos_bd_packages.id=jos_bd_businesses.package_id WHERE jos_bd_businesses.id=

Call stack

Function Location

1 JAdministrator->dispatch() /var/www/virtual/domain.com/htdocs/administrator/index.php:46
2 JComponentHelper::renderComponent() /var/www/virtual/domain.com/htdocs/administrator/includes/application.php:152
3 JComponentHelper::executeComponent() /var/www/virtual/domain.com/htdocs/libraries/joomla/application/component/helper.php:357
4 require_once() /var/www/virtual/domain.com/htdocs/libraries/joomla/application/component/helper.php:388
5 JController->execute() /var/www/virtual/domain.com/htdocs/administrator/components/com_businessdirectory/businessdirectory.php:12
6 BusinessDirectoryController->display() /var/www/virtual/domain.com/htdocs/libraries/joomla/application/component/controller.php:754
7 JController->display() /var/www/virtual/domain.com/htdocs/administrator/components/com_businessdirectory/controller.php:11
8 BusinessDirectoryViewBusiness->display() /var/www/virtual/domain.com/htdocs/libraries/joomla/application/component/controller.php:715
9 JView->get() /var/www/virtual/domain.com/htdocs/administrator/components/com_businessdirectory/views/business/view.html.php:10
10 BusinessDirectoryModelBusiness->getForm() /var/www/virtual/domain.com/htdocs/libraries/joomla/application/component/view.php:482
11 JDatabase->loadResult() /var/www/virtual/domain.com/htdocs/administrator/components/com_businessdirectory/models/business.php:37
12 JDatabaseMySQLi->query() /var/www/virtual/domain.com/htdocs/libraries/joomla/database/database.php:1109
13 JError::raiseError() /var/www/virtual/domain.com/htdocs/libraries/joomla/database/database/mysqli.php:396
14 JError::raise() /var/www/virtual/domain.com/htdocs/libraries/joomla/error/error.php:251

The interesting thing is, that every other query works fine under Joomla
2.5.

Is there some kind of change in query syntax between 1.7 and 2.5?
I'm looking for a solution for the problem.

Joomlacode:
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=28435

Installation php version check

The php version check inside index.php of the installer still refers to Joomla 1.7 when a lower php version is detected.

Typo in joomla-cms / installation / models / configuration.php

After newest commit "[#27568] Remove the use of all deprecated functions
(except JRequest and JException) in the installation. Thanks Rouven" on
Feb10/2012 there is such code on line 201

catch (JDatabseException $e)
{
$this->setError(JText::sprintf('INSTL_ERROR_CONNECT_DB',
$e->getMessage()));
}

Should be: JDatabA(!)seException

Commit:
cf495f2

com_media multi-file upload

The 'file' input type has supported multiple file selection for some time now. The upload function in com_media can be easily modified to accept multiple files without causing any problem for older browsers that don't support the feature. So, is there any reason this not supported in Joomla! yet? I've actually done the modification myself on several Joomla! installations. I'd be happy to submit it the official project if it's wanted.

Add columns for first name, middle name and surname in #__users table

Splitting the #__users table name column into 3 columns (first name, middle name and surname) will simplify lot of use cases where you don't want to get the users full real name. Post processing the name will result in a flawed result since you can't predict with 100% accuracy how the name is composed.

E.g. a mail form where you want to address the person "Hi, James \n\n Just for today we have a special offer...".

http://ideas.joomla.org/forums/84261-joomla-idea-pool/suggestions/1241451-name

Why did they change defines.php

Hello,

I installed joomla Joomla! 2.5.4 Stable [ Ember ] 2-April-2012 14:00 GMT on my local server to develop, its a windows machine and the installation is located in a subdirectory of htdocs.

When i put in the $live_site parameter in the configuration script, i cant login anymore, it gives a error page.

I figured out when i replace the forward slashes in administrator/defines.php with directory separators (just like the versions of joomla 1.5) the problem is solved.

Why did they change these files anyway?

Joomla 3 Error

Just unzipped the Joomla 3.0 alpha 2 release and I receive this error when trying to access it:
Parse error: syntax error, unexpected T_CONST in /index.php on line 10

Updater for extensions

Hi

In libraries/joomla/updater/adaptors/extension.php on line 46 & 47 you will find the following two lines:

$this->current_update->folder = "";
$this->current_update->client_id = 1;

These bascially hardcode the updater to look for extensions that have a client_id of 1 and no folder. The problem here is that it effectively blocks updates for any extension that uses a client_id of 0 (site templates, libraries, plugins and modules) and any that use folders (plugins).

I am not familiar enough with this area of the Joomla code but a have had a look around it seems the best solution would be too include these in the update manifest using and tags. If they are not specified it can set these defaults to ensure backwards compatibility while allowing those who need it to get these updates working.

This code appears to have come out of this discussion: https://groups.google.com/forum/#!msg/joomla-dev-general/R4g0-Q2pWXk/SmLaJEsTUK0J where the suggested clumsy alternative seems the better option?

I am happy to make these changes and provide a patch unless someone has a better suggestion?

Thanks
Dave

Module Output is not Escaped

@eddieajau asked that I raise this issue with the CMS.

joomla/joomla-platform#769 (comment)

In the "Deprecate JView::escape()" pull request, it was proposed that the escape method be deprecated. I agreed, primarily on the basis that JView scope limits it's usefulness to Component Views. Further, I pointed out that no module output is escaped in Joomla core and I wonder if it's related to the lack of availability of this method.

IMO, it would make sense to either remove the method from JView, or relocated it where frontend devs can use it in all rendered output, including components, but also templates and modules.

Regardless, module output should be escaped. If the JView::escape method cannot be used, using PHP methods is sufficient, but it really should be done.

http://shiflett.org/blog/2005/feb/my-top-two-php-security-practices

Bug -> com_banners

Hello All,

My friend Pedro Renan found an issue on com_banners

Joomla 2.5

at line 96 of components/com_banners/models/banner.php

the column should be "count" and not "cound"

dependencies

Is this section in manifest xml working?

<dependencies>
    <dependency type="platform" name="joomla" operator="=" version="1.7.0" />
</dependencies>

Is this working for custom libraries, components, modules ?

Tag new platform versions

It would help me quite a bit if tags could be added at fixed commits when new platform changes are brought over. IE 11.2 full, 11.3 partial, 12.1 full, etc

I often compare branches between my local site, the cms, and the platform to see whats new and whether I want to integrate it early or not.

missing imports prevent command line installation of extensions

Originally described in http://forum.joomla.org/viewtopic.php?f=624&t=716847

Steps to reproduce:

  1. Download the english language extension from http://joomlacode.org/gf/project/jtranslation1_6/frs/?action=FrsReleaseBrowse&frs_package_id=5651 and unzip to /tmp
  2. Modify the paths in the following script per your environment and run it
  3. The installation will fail due to classes failing to autoload
#!/usr/bin/php
<?php
define('_JEXEC', 1);
define('JPATH_BASE', '/var/www/joomla');
require_once 'configuration.php';
require_once 'includes/defines.php';
require_once 'libraries/import.php';
JInstaller::getInstance()->install('/tmp/site_en-US');
?>

Finder / Smart Search Index Hangs on Large Content Sites

I have a #_content table of just about 3Gigs, 30k+ Articles and 4k+ Categories. In earlier versions of Finder before it was integrated into the latest release of Joomla 2.5 Stable I had the same problem I'm having now. It hangs and sometimes crashes my server requiring a Hard Reboot. I think this is due to having specific articles that are in pagebreak standards almost 400 book pages long. I have been building an online library using Joomla (which in retrospect may have been a bad idea, due to Joomla not really having the search functionality to deal with EXTREMELY large content based sites, and also that it uses MySQL which can be a huge bottleneck with large sites) and I have been letting the GUI Indexer run for about 9 hours now and it is hung up on 10% which was what happened earlier on in development when I tried this. I have used the CLI as well and let it run for 3 days and it never finished, and eventually shot up an error which ultimately nullified all the prior indexing.

I have submit this issue to the Joomla! Bug Squad on Google Groups, yet it seems to have never been approved by a Moderator :(

System Specs:
Rackspace Cloud Server
12 GIGS DDR3
PHP Built On Linux 2.6.18-238.19.1.el5xen #1 SMP Fri Jul 15 08:16:59 EDT 2011 x86_64
Database Version 5.5.15
Database Collation utf8_general_ci
PHP Version 5.3.8
Web Server Apache/2.2.3 (CentOS)
WebServer to PHP Interface cgi-fcgi
Joomla! Version Joomla! 2.5.1 Stable [ Ember ] 2-Feb-2012 14:00 GMT
Joomla! Platform Version Joomla Platform 11.4.0 Stable [ Brian Kernighan ] 03-Jan-2012 00:00 GMT

Bug in JUserHelper class, setUserGroups method

Affected Version:

  • 1.7.2 or greater
  • 2.5

In method setUserGroups, inside file libraries\joomla\user\helper.php

// Set the titles for the user groups.
for ($i = 0, $n = count($results); $i < $n; $i++) {
$user->groups[$results[$i]->id] = $results[$i]->title;
}

This code will overwrite the index of the groups parameter pass into the function. Also in the method addUserToGroup in this class, the group information is store as

// Add the group data to the user object.
$user->groups[$title] = $groupId;

not the otherway around.

JV Headline module - How to configure a fixed banner?

Hi!

Could anyone help me set up JV Headline module? I'm trying to put a banner fixed on the module and keep rest working normally, and I have no idea how to do it. I created this image to explain better!

(Sorry for my broken english).

I search in entire internet and found nothing, please help me.

Installation issue if session.save_handler is set to "sqlite"

Cannot install Joomla 2.51 if session.save_handler is set to sqlite and session.save_path is session.sdb. It seens Joomla do not recognize this option for sessions correctly:

Failed to write session data (files). Please verify that the current setting of session.save_path is correct (C:\Program Files (x86)\Zend\ZendServer\tmp\session.sdb)
...
open(C:\Program Files (x86)\Zend\ZendServer\tmp\session.sdb\sess_m8rsoc9q6ap2nsh9jkelrfdqb3, O_RDWR) fa
...

So far i had no issues with this PHP Settings.

I have now set both to standard values with ini_set (files,tmp path), now everything works fine.

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.