欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

drupal

drupal 上传文件 上传图像 发现问题 An HTTP error 0 occurred. /filefield/ahah/adbxingshengluqujieguo/field_luqu_zhaopian3/0

上传文件 上传图像 报 500错误 (filefield模块的功能)
An HTTP error 0 occurred. 
/filefield/ahah/adbxingshengluqujieguo/field_luqu_zhaopian3/0

实在找不到问题 所在
最后 通过排查发现问题 
好像是版本不对 
把 cck 模块的版本 变为 6.x-2-9
把 filefield模块的版本变为 6.x-3.10 (有时把它放在 sites\all\modules\cck\modules\fieldgroup 这儿)
把imagefield模块的版本变为 6.x-3.10
就能够正常上传了
普通分类: 
shiping1 的头像

Drupal零散知识笔记

2013-4-22

关注cron

普通分类: 
shiping1 的头像

drupal的搜索为什么必须每次都要重建站点索引 不指定

drupal的搜索为什么必须每次都要重建站点索引  不指定

普通分类: 
shiping1 的头像

Drupal 性能优化之 Redis 篇

Drupal 性能优化之 Redis 篇

    普通分类: 
    shiping1 的头像

    给Drupal使用更强劲的缓存利器-Redis

    关于Memcache和Redis的区别,本文不打算做过多的讨论。
    普通分类: 
    shiping1 的头像

    cck 字段 设置禁用 form alter 或者 设置 class "How to set the disabled or readonly attribute of a CCK field" "Unable to add '#attributes' or use '#disabled' = true via hook_form_alter()"有大用

    function
    普通分类: 
    shiping1 的头像

    l 函数 target _blank 有大用

    l

    普通分类: 
    shiping1 的头像

    跳转到首页 链接到首页 有大用

    print

    普通分类: 
    shiping1 的头像

    根据词汇表得到分类 表单中增加分类 select 有大用

    根据词汇表得到分类 
    普通分类: 
    shiping1 的头像

    form radio 选项卡 单选

    $form['encoding'] =
    普通分类: 
    shiping1 的头像

    drupal jquery 初始化

    (function($) {$(document).ready(function() {
    普通分类: 
    shiping1 的头像

    点全选 选中 所有的 checkbox 自己亲自做的 有大用 Is there a way to provide a Select All / Check All checkbox for a field that displays multiple checkboxes in Drupal 7?有大用

    $(document).ready(function() {
         var checked = false;
        $('#edit-usersid-all-shipingzhong').click(
    普通分类: 
    shiping1 的头像

    表单 select 的用法

    $userStateLog = '近一个月内已暂停1次  最多暂停4次IP'; //启用暂停操作日志
    $form['userState'] = array(
    普通分类: 
    shiping1 的头像

    自訂表單Hierarchical Select的用法

    hi!我遇到一個比較進階的問題,

    就是在custom form的時候,

    普通分类: 
    shiping1 的头像

    drupal表单元素: Check Boxes(复选框) 好像一般不使用 checkbox 有大用

    drupal表单元素: Check Boxes(复选框)

    普通分类: 
    shiping1 的头像

    FAPI:多个“复选框”与“复选框”

    普通分类: 
    shiping1 的头像

    Drupal Form Checkbox having different name and id (of my choice)

    As drupal assigns title as both id and name to a form element.
    普通分类: 
    shiping1 的头像

    保存用户 自己亲自做的例子 有大用

    <?php
    //定义权限 仅仅指明什么权限对这个模块可用
    function shipingzhongcustomfour_perm() {
        return array
    普通分类: 
    shiping1 的头像

    A Drupal form checkboxes example (HTML check boxes) 一个checkbox例子

    Drupal form FAQ: How do I create an HTML checkbox in a Drupal form?

    普通分类: 
    shiping1 的头像

    Drupal 7 通过代码创建用户?

    rupal 6请移步到 Drupal 6  通过代码创建用户?

    很多情况下,我们需要在对某一动作操作时候,需要自动的创建用户,如

    普通分类: 
    shiping1 的头像

    Drupal 6 通过代码创建用户? user_save 有大用

    Drupal 7请移步到 Drupal 7  通过代码创建用户?

    很多情况下,我们需要在对某一动作操作时候,需要自动的创建用户,如

    普通分类: 
    shiping1 的头像

    user_save 自己亲自做的 有大用

     

    $account = (object)$account;
    $a
    普通分类: 
    shiping1 的头像

    订餐表单例子

    function food_order_form(&$form_state
    普通分类: 
    shiping1 的头像

    hook_menu and multiple access arguments array two 两个参数 用法 自定义 有大用 有大大用 有大大大用

    普通分类: 
    shiping1 的头像

    我修改 drupal6 的 /includes/file.inc 文件 让上传变成唯一性 $prefix = $user->uid.'_'.date('YmdHis').'_'.md5(uniqid(rand(), true));

    file.inc 文件 就是如下 
    <?php
    
    /**
     * @file
     
    普通分类: 
    shiping1 的头像

    APC助跑Drupal性能优化

    我们在菜鸟学drupal网站性能,确切的说是php网站性能入门一文里,提到了drupal网站性能优化的总概。
    普通分类: 
    shiping1 的头像

    Drupal的高速缓存配置APC

    shiping1 的头像

    Best APC settings to reduce page execution time 有大用

    正确答案
    普通分类: 
    shiping1 的头像

    Good query execution time but page execution time too high google 谷歌 "drupal page execution time high"

    普通分类: 
    shiping1 的头像

    drupal page execution time high google 谷歌 "drupal page execution time high"

    普通分类: 

    页面

    Subscribe to RSS - drupal