does drupal path module affect other modules - drupal

Have been asked to shift a custom made module of drupal site to another site (which is based on Openpublish d7). That module primarily is for providing web service data when a specific url is called (thus the module is implementing menu_hook).
However when adding and activating the module on the new site, it gives an error when that specific url is called that page does not exist.
First the assumption was that Openpublish may not have hooks but recently saw the path module installed (which in my knowledge required the menu hook).
Now the question was that whether it is possible that the path module may be causing issues for the custom module's menu hook to work properly.. ? if so, can there be any workarounds. cannot possibly turn off the path module as i have only been asked to add this new module and the site is already live (so experimentation may not be a choice :) )
Any help appreciated..

issue seems to have been solved after clearing the drupal cache . wasn't actually considering cache at that time.
thought to answer in case it helps others as well :)

Related

Themecheck plugin showing an error about Kirki(wordpress framework) text domain

I am using Kirki framework to develop a WordPress theme. After completing the theme I tested my theme using theme check plugin. It throws an error
More than one text-domain is being used in this theme. This means the theme will not be compatible with WordPress.org language packs.
The domains found are myTheme, kirki.
I ignored this issue and submitted my theme to themeforest.net but the review team asked me o solve this issue. Is there anyway i can solve this issue.
Any help would be appreciated. Thanks in advance ;)
This is the answer which I got from the support person.
Ideally you wouldn't be including kirki in your theme... You can instead require its installation as a plugin. This way your users will also get any future bugfixes and improvements simply by updating the plugin.
If you don't want to do that and insist on including Kirki in your theme, then there's nothing to worry about...
Kirki has a separate implementation for localizations when used inside a theme: https://github.com/aristath/kirki/blob/develop/l10n.php
The WPTRT team is aware of that and in fact the textdomain is whitelisted when submitting a theme in wordpress.org for exactly that reason (hybrid-core is another one that is whitelisted because they both use the same implementation).
You can point this out to the theme reviewer and link to this thread here, if there any more questions from them I would be more than happy to answer them.
If you don't want to do that either, then you can just manually go through the files and change all 'kirki' textdomains to your own.

Getting started with Redux in WordPress

I apologize if this has been asked before, but after doing some research, I could not find any resources answering this specific question of mine.
I'm trying to use the Redux framework in my WordPress theme. I used the builder to get started, which is linked to on the plugin page. I customized my framework there and chose the option of "embed only" (Embed Only: TGM is not used and Redux is embedded within the theme/plugin). I also exported as a custom theme, which uses Underscores. As a result, I now have admin directory inside of my theme, with an "options-init.php" file in it. I've been modifying this file to add my options. Is this right? In the documentation it mentions to look for a sample-config.php file, and to copy that and modify it, but I can't find that anywhere. I want to make sure I'm doing this right before I get too far and find an issue.
Also, how do I make sure the framework stays up to date with the latest security patches? Is it a better idea to install it as a plugin rather than embed it in the theme itself?
Lead dev of Redux Framework here. It is very much a better idea to run Redux via a plugin if you want your users to have security updates.
Another option is to embed redux, but to use TGM to suggest for users to install the plugin. This way your theme is not dependent on Redux, but the moment they install the plugin, that version of Redux will take over.
It's up to you, but the plugin is the way to go.

Error using custom design option visual composer with applay theme

When purchasing the Applay Application theme for wordpress it is recommended to install Visual Composer.
It looks simple enough attempting to create custom CSS, however any attempts to save the use design options
Gives an error:
Design options could not be saved. Error: error evaluating function darken:a.toHSL not a function.
Which essentially means there is an element that cannot have no color value, that is attempted to being darkened.
I searched the theme, thinking I'd done something creating a child theme, reverted it back to the parent theme and could not solve it.
Both reports of this on the support page were:
Hi, we haven’t received such complains before – please open support ticket at support.wpbakery.com and share your site credentials so our support team can help you out.
It turns out the error is due to the apptheme's author's own inbuilt theme customisation and a lack of compatibility with Visual Composer.
I received this email repsonse from the support for Visual Composer.
The issue is because there is an inbuilt version of Visual Composer (or the related code) present in your theme which is overriding the standalone plugin version and hence causing the issue. You will have to get rid of it. I would advise you to do so with the help of theme author, otherwise you might loose the extra elements added by him. Once this is done, you can install the standalone plugin and it will work fine. Kindly check.
The theme author is the one who built the theme. In your case he is: http://themeforest.net/user/leafcolor
I decided to post this, as it may help others searching for this.

Integrate Symfony2 to a Drupal 5 system

We have a 5 years old system built by Drupal 5. It is not a small system (about 50K lines of code), and most of the functionality has nothing to do with 'content management'.
For this reason, we're thinking about integrating Symfony2 to our current system. The ideal is to keep using the current code for current functionality while developing new features with Symfony2. Slowly we'll move more and more pieces of code from Drupal to Symfony.
My question is how do you suggest implementing this? I though about the following approaches:
Create a module in Drupal. This module will contain the Symfony files and will load the class loader of Symfony. Someone has done this before? are there some critical things I should be aware of?
Create a separate installation of Symfony and hopefully create a different vhost record which point to certain pages in the website. As far as I know I can configure vhost to be a sub-host of my current host (e.g. mysymfony.mydrupal.com). But I can't configure it to point to a specific path in the same domain (mydrupal.com/mysymfony.php). is this true? In this approach the performance would be better for those pages that use Symfony, since it won't need the Drupal bootstrap.
Any other suggestions?
Thanks!
Be aware that you'll likely have to upgrade your PHP version on the machine running Drupal if you'd like to run Symfony2 on the same machine (anything under 5.3.8 and the configurator will object). You may also want to hold out for a bit if you want to stick with Drupal - Drupal 8 is integrating Symfony2 components. Also, there exists (in beta form anyhow), a content management framework for Symfony2.
Regarding vhosts, you are correct - you point a vhost to a directory, not a file. You could however create a rewrite rule to redirect to a specific page, if you wanted (check out the .htaccess file included in the web/ directory in a Symfony distribution - by default it redirects requests to app.php).
Because I'm new here I can't have more than two links in a post. I was also going to say:
I would start rewriting core functionality (users, permissions, etc) if none of the existing bundles meet your needs. As well as searching github, you could try knpbundles.com to find bundles that solve similar problems.

Drupal: xmlsitemap file is not generated

I have chosen XMLSiteMap module from the most popular usage statistics on Drupal site,
so I assume the module is not too buggy. But the map file is absent.
I've installed this module on my Windows machine into drupal/sites/default/modules.
I've activated all the submodules of XMLSiteMap in admin menu.
Per docs, I've also run cron.php manually to create sitemap.xml in drupal/sites/default/files - but it's just not present there even when second re-install.
How can I force to create sitemap.xml?
(also tried with and w/o clean URLs - still no help).
Also, if there any good reliable alternative for this module?
Are you sure you've installed it properly? Please check the Status report (admin/logs/status in Drupal 5, admin/reports/status in Drupal 6) to ensure that you've got everything right.
It's possible that you haven't set the permissions of sites/default/files properly yet for example.
I'm not sure if this will help you, but if you are looking for an actual created sitemap.xml file rather than navigating to it in the browser I don't believe one is created by the module. I think the module creates a menu callback to create the sitemap file, so a request for sitemap.xml is handled by Drupal's menu system, rather than creating an actual file. There will however be a cached version in sites/default/files/xmlsitemap.
Apologies if this is an oversimplification of the question asked.
I have not had any problems with the reliability of the module myself.
Also make sure you have the latest version installed, it just came out yesterday:
http://drupal.org/project/xmlsitemap
Also, see this issue, seems related to your problem:
http://drupal.org/node/458546
I'd probably recommend trying the 6.x-2.x branch which I've been rewriting to kind of solve all the annoying bugs and architectural problems of the 6.x-1.x branch. It's currently incomplete, but it works for nodes and menu items currently. Taxonomy terms and user profiles will be added soon.
You can find the link to it on the project page. Sorry I can't link since I'm a new user. :)
Running the CRON worked for me:
/admin/reports/status/run-cron

Resources