I'm trying to follow these instructions (in url below) as I want to have a link from an image field in my Content Type to a URL (twitter/facebook or anything), but I can't see the 'link' field type in the drop down box when creating the Link field in my Content Type?
I already have Views installed , and I also just installed the Link module, which loaded fine.
Strange thing is that when I went to enable Link module, I only had 'Contextual Links' which was already enabled, so not sure if Links installed properly, and cannot see it in my Module list or filter.
This is what I'm trying to follow:-
http://adaptivethemes.com/social-network-links-with-drupal-7-views-and-link
Any idea what's wrong?
I'm using Drupal 7 latest version.
Comments
=-=
http://drupal.org/project/link is required for a link field type. If you do not have this module listed in administer -> modules it did not upload properly.
I checked the folder in
I checked the folder in filezilla under sites/all/modules and there was a Link folder there with nothing in it.
So I then deleted it, and transferred the Link module folder across using filezilla (unpacked of course), enabled the module and I then got this error.
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 87 bytes) in /websites/123reg/LinuxPackage21/******.co.uk/public_html/includes/menu.inc on line 3733
I clicked Save again, and it seemed to work, so I carried on adding the Content Type, but then started getting the above error again intermittently.
I then repaired my database tables, and optimized them in myphpadmin thinking it was some corruption.
But that has not worked, then Cleared Cache in Configuration, but that causes the error above.
Any advice of how to clear the corruption/error ?
$item['load_functions'] = empty($item['_load_functions']) ? '' : serialize($item['_load_functions']);$item += array(
'access arguments' => array(),
'access callback' => '',
'page arguments' => array(),
'page callback' => '',
'delivery callback' => '',
'title arguments' => array(),
'title callback' => 't',
'theme arguments' => array(), ***** this is line 3733 *****
'theme callback' => '',
'description' => '',
'position' => '',
'context' => 0,
'tab_parent' => '',
'tab_root' => $path,
'path' => $path,
'file' => '',
'file path' => '',
'include file' => '',
);
thanks
www.lucywebsites.co.uk
=-=
memory ehaustion means you don't have enough memory available to PHP. The more modules you add the more memory is requried for drupal to run.
perform a google search for 'drupal increase memory in php.ini', It's a question that has been answered hundreds of times on the forums already as has dedicated documentation available.
I couldn't get it to work by
I couldn't get it to work by setting up a php.ini , also noticed later that doesnt work with shared hosts. So I amended settings.php instead.
thanks
www.lucywebsites.co.uk
=-=
You must mean with 'all' shared hosts since I utilize a shared host and a custom php.ini file works fine for overriding php settings. Personally, I'm surprised a custom php.ini won't work in your environment since you can override php settings in settings.php. That in and of itself indicates the host is allowing overrides of php settings but of course without knowing exactly how you tried to accomplish the task .....
Hi VM, I followed the
Hi VM, I followed the instructions here:-
http://drupal.org/node/207036
I created a php.ini as I didn't have one , then added the 1 line as stated, and placed it in root folder.
Checked Reports/Status and was still showing as 64M, so I amended Settings.php as stated (setting to 128M).
reloaded site, Reports/Status, and it worked.
I'm a bit worried now, looking back at the link, it seems to imply I should have a php.ini ? slight dread/panic.
Steve
thanks
www.lucywebsites.co.uk
=-=
every server has a php.ini file that contains PHP config settings.
That said, most shared hosts don't place the file in the root. You obtain a copy of it either from the host, from the knowledge base or from the host panel. The place it in the root yourself. As noted in the docs, this only works if your host runs php in cgi or fastcgi. Which you should investigate with the host or host panel.
One should check their hosts RUP (Resource Usage Policy) each account is only allowed to use so much.
thanks once again.
thanks once again.
thanks
www.lucywebsites.co.uk