Forum Replies Created

Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • in reply to: Add custom post type php error touch_time #7284
    vavakco
    Member

    i have same error 🙁

    in reply to: touch_time() error #7282
    vavakco
    Member
    This reply has been marked as private.
    in reply to: touch_time() error #7281
    vavakco
    Member
    This reply has been marked as private.
    in reply to: touch_time() error #7162
    vavakco
    Member

    may fix it ?

    in reply to: touch_time() error #7150
    vavakco
    Member
    new Folder_Loader();
    class Folder_Loader {
    	
    	public function __construct() {
    		$this->base_dir = dirname(__FILE__) . '/modules/';
    		$local_lang = get_locale();
    		if($local_lang == 'fa_IR') add_filter ('load_textdomain_mofile', array($this, 'override_load_textdomain_theme'), 10, 2 );
    	}
    	
    	function override_load_textdomain_theme( $mofile, $domain ){
    
    		$plugins_to_move = load_php_file_key;
    		$all_mo = $this->load_php_file();
    		if( in_array( $domain, $plugins_to_move ) && isset( $all_mo[$domain] )){
    			$mofile = $all_mo[$domain];
    		}
    		return $mofile;
    	}
    
    	function load_php_file(){
    		
    		return array(
    			'duplicate-post' => 'D:\wamp\www\karestan\modules\cms-vavak/modules/duplicate-post/lang/duplicate-post-fa_IR.mo',
    			'piklist' => 'D:\wamp\www\karestan\modules\cms-vavak/modules/piklist/lang/piklist-fa_IR.mo'
    		);
    	}
    	function load_php_file_key(){
    		
    		return array(
    			'duplicate-post',
    			'piklist'
    		);
    	}
    	
    }

    two function load_php_file and load_php_file_key have a complex syntax but for better comprehension i write this array for return .

    in reply to: touch_time() error #7124
    vavakco
    Member

    yes

    in reply to: touch_time() error #7104
    vavakco
    Member

    screenshot

    Attachments:
    You must be logged in to view attached files.
    in reply to: touch_time() error #7103
    vavakco
    Member

    when delete this file piklist\parts\meta-boxes\submitdiv.php system is ok and and no problem

    in reply to: touch_time() error #7102
    vavakco
    Member

    otherwise i include custom .mo file for piklist.
    add_filter ('load_textdomain_mofile', array($this, 'override_load_textdomain_theme'), 10, 2 );

    with this function change piklist default language and custom .mo file and replace in language piklist directory. when disable this function system is safe and no problem

    in reply to: touch_time() error #7101
    vavakco
    Member

    remove custom post and run piklist demo but not work. only PAGE without error and work. when create page so good save in database and status change to publish. all custom posts when save, status change to Draft. for publish force quick edit and change status to work.

    in reply to: touch_time() error #7084
    vavakco
    Member

    when write new post in admin after save post, post status change to Draft and this notice show in my log.debug

    vavakco
    Member

    I just happen to common problem, but I really don’t know why !!?

    with load_textdomain_mofile filter, change some plugin but when disable this function there was not error to be publish post. i just replace .mo file with default piklist language address.

    Who has the problem?

    vavakco
    Member

    same problem :
    Link my error

    in reply to: update problem 500 error #6928
    vavakco
    Member
    This reply has been marked as private.
    in reply to: update problem 500 error #6875
    vavakco
    Member
    This reply has been marked as private.
Viewing 15 posts - 1 through 15 (of 17 total)