Title: Syntax Error Decode File
Last modified: August 21, 2016

---

# Syntax Error Decode File

 *  [Platinums](https://wordpress.org/support/users/platinums/)
 * (@platinums)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/syntax-error-decode-file/)
 * I have decode some files
    Code 1:
 *     ```
       foreach ($jaki as ) {
       	[0];
       	[1];
       	$value = ;
       	$key = ;
       	$ic = $i++;
       	}
       ```
   
 * Code 2:
 *     ```
       smart_meta( $pid, 'my_nama_opsis' );
       	$jaki = ;
       	$i = 215;
       ```
   
 * Code 3:
 *     ```
       foreach ($data as ) {
       	[0];
       	$item = ;
       	$hash = '';
       	foreach ($group_fields as ) {
       		[0];
       		$field = ;
       		$item[$field];
       		$hash .= ;
       	}
       ```
   
 * How I can fix that error?
    I dont have much knowledge about php.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [catacaustic](https://wordpress.org/support/users/catacaustic/)
 * (@catacaustic)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/syntax-error-decode-file/#post-5086839)
 * Whoever/wahtever decoded those files did a very bad job. None of that is valid
   PHP code, and there’s realyl no way to “fix” it without knowing what it’s actaully
   supposed to do.
 * Where did you get these files from, what did you have to do to de-code them, 
   and where are you using them in your WordPress site?
 *  Thread Starter [Platinums](https://wordpress.org/support/users/platinums/)
 * (@platinums)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/syntax-error-decode-file/#post-5086844)
 * I buy a theme with valid license. The License validator using Curl in main php
   called master-option.php (encoded by ioncube) <– I dont encode this one.
    I found
   1 file lib.php (encoded by ioncube). I need to decode this file because I need
   to modify the theme. After decode The file I dont see anything about license 
   in this file so thats legal if I decode this file for the reason to modify something
   in that theme.
 * Code 1 may be something like this:
 *     ```
       foreach ($jaki as $key => $value ) {
       			$ic = $i++;
       ```
   
 * Code 2:
 *     ```
       $jaki = smart_meta( $pid, 'my_nama_opsis' );
       	$i = 215;
       ```
   
 * but still something wrong.
    I dont know how to put the $i = 215 and $ic = $i+
   + and what that mean.
 * Code 3:
 *     ```
       foreach ($data as $item) {
       	$hash = '';
       	foreach ($group_fields as $item[$field] => $field) {
       		$hash .= ;
       	}
       ```
   
 * For code 3 really dont know. 🙁
 *  [catacaustic](https://wordpress.org/support/users/catacaustic/)
 * (@catacaustic)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/syntax-error-decode-file/#post-5086846)
 * Then you have got two problems.
 * First, [commercial products are not supported by these forums](http://codex.wordpress.org/Forum_Welcome#Commercial_Products).
   You need to contact the vendor of your theme and get their help. Part of what
   you’ve paid them for is their support, so you should be using that.
 * Second, just because there’s no license doesn’t mean that it’s OK to og de-coding
   something like that. Even if it is, as you’ve found out it’s really not that 
   easy to do and get some readable output. We aren’t going to help you to break
   the encryption of a file that you’ve purchased, no matter what the license is.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Syntax Error Decode File’ is closed to new replies.

## Tags

 * [foreach error](https://wordpress.org/support/topic-tag/foreach-error/)
 * [syntax error](https://wordpress.org/support/topic-tag/syntax-error/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [catacaustic](https://wordpress.org/support/users/catacaustic/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/syntax-error-decode-file/#post-5086846)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
