
Error send smtp gmail wrong version number
1408F10B:SSL routines:ssl3_get_record:wrong version number
error ketika mengirim menggunakan tls 587
solusi : gunakan ssl 465
Ini adalah blog saya tentang sharing dan banyak hal-hal lain yang ingin saya tulis.

1408F10B:SSL routines:ssl3_get_record:wrong version number
error ketika mengirim menggunakan tls 587
solusi : gunakan ssl 465

Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column '....................' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
add any_value(column) in sql select column

cannot upload file images because symlink on hosting create a folder not symlink

/lib/pkp/classes/file/FileManager.inc.php
Find the section below and add the lines in red in the same spots or copy and replace the whole function:
function uploadFile($fileName, $destFileName) {
$destDir = dirname($destFileName);
if (!$this->fileExists($destDir, 'dir')) {
// Try to create the destination directory
$this->mkdirtree($destDir);
}
if (!isset($_FILES[$fileName])) return false;
if (move_uploaded_file($_FILES[$fileName]['tmp_name'], $destFileName))
return $this->setMode($destFileName, FILE_MODE_MASK);
return false;
}
ubah menjadi
function uploadFile($fileName, $destFileName) {
$destDir = dirname($destFileName);
if (!$this->fileExists($destDir, 'dir')) {
// Try to create the destination directory
$this->mkdirtree($destDir);
}
if (!isset($_FILES[$fileName])) return false;
$name = $_FILES[$fileName]['name'];
$ext = end((explode(".",$name)));
// block phtml files
if ($ext == 'phtml' || $ext == 'php' ) return false;
if (move_uploaded_file($_FILES[$fileName]['tmp_name'], $destFileName))
return $this->setMode($destFileName, FILE_MODE_MASK);
return false;
}
ubah .htaccess
Yang baru : pake virtualmin working 100%
# Disable directory browsing
Options -Indexes
# ----------------------------------------------------------------------
# Rewrite engine
# ----------------------------------------------------------------------
# Turning on the rewrite engine is necessary for the following rules and features.
# FollowSymLinks must be enabled for this to work.
<IfModule mod_rewrite.c>
Options +SymlinksIfOwnerMatch
RewriteEngine On
# If you installed CodeIgniter in a subfolder, you will need to
# change the following line to match the subfolder you need.
# http://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewritebase
# RewriteBase /
# Redirect Trailing Slashes...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Rewrite "www.example.com -> example.com"
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^ http://%1%{REQUEST_URI} [R=301,L]
# Checks to see if the user is attempting to access a valid file,
# such as an image or css document, if this isn't true it sends the
# request to the front controller, index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
# Ensure Authorization header is passed along
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>
<IfModule !mod_rewrite.c>
# If we don't have mod_rewrite installed, all 404's
# can be sent to index.php, and everything works as normal.
ErrorDocument 404 index.php
</IfModule>
# Disable server signature start
ServerSignature Off
# Disable server signature end
#RewriteEngine On
#RewriteCond %{HTTPS} off
#RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
Server lama xampp :
# Disable directory browsing
Options All -Indexes
# ----------------------------------------------------------------------
# Rewrite engine
# ----------------------------------------------------------------------
# Turning on the rewrite engine is necessary for the following rules and features.
# FollowSymLinks must be enabled for this to work.
<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine On
# If you installed CodeIgniter in a subfolder, you will need to
# change the following line to match the subfolder you need.
# http://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewritebase
# RewriteBase /
# Redirect Trailing Slashes...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Rewrite "www.example.com -> example.com"
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^ http://%1%{REQUEST_URI} [R=301,L]
# Checks to see if the user is attempting to access a valid file,
# such as an image or css document, if this isn't true it sends the
# request to the front controller, index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
# Ensure Authorization header is passed along
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>
<IfModule !mod_rewrite.c>
# If we don't have mod_rewrite installed, all 404's
# can be sent to index.php, and everything works as normal.
ErrorDocument 404 index.php
</IfModule>
# Disable server signature start
ServerSignature Off
# Disable server signature end
RewriteEngine On
RewriteCond %{HTTPS} off
#RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
hanya perlu diubah di baris terakhir setelah index.php ditambah dengan tanda tanya '?'.
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]

caranya dengan mengganti "kolom dipisahkan oleh" dari koma (,) menjadi titik koma (;)
Pada artikel kali ini saya akan sharing mengenai error yang terjadi pada kcfinder, kcfinder adalah plugin tambahan untuk ckeditor ketika kita akan mengupload file dan akan muncul dialog kcfindernya.
Mengapa saya menggunakan kcfinder, karena untuk bawaan dari ckeditor uploader imagenya, yang berbentuk window merupakan plugin tersendiri dan kita harus membeli plugin tersebut. Intinya plugin bawaan dari ckeditor itu tidak gratis.
Setelah saya mencoba menggunakan kcfinder ini saya menemukan masalah pada saat upload gambar, terjadi deprecated. Setelah saya coba browsing-browsing saya menemukan masalah ternyata di PHP 7.2 memang sudah tidak support karena memang kcfinder ini merupakan plugin yang lama, tidak dikembangkan lagi sepertinya.
Untuk mengatasi permasalahan tersebut adalah mengubah kode yang ada di baris 119 dan 120 menjadi seperti ini:
width = $image[0];
$height = $image[1];
atau seperti screenshot gambar di bawah ini :

the solution is add this on bootstrap modal :
data-focus="false"
also stealing focus on select2 plugin

Dalam sebuah Sekolah atau Institusi pendidikan kita terkadang kesusahan dalam pendataan sarana dan prasarana yang jumlahnya sangat banyak. Dan apabila kita tulis di sebuah buku itu juga rawan rusak, hilang ataupun mencari-cari kadang juga susah. Maka di sini saya membuat sebuah aplikasi sederhana untuk mendata sarana dan prasarana yang ada di sebuah institusi.
Program ini saya develop dengan framework Codeigniter dan menggunakan bootstrap sebagai tampilannya.
Di sini kita bisa menambahkan gedung, ruang, dan sarana. Kemudian untuk detailnya misal sarana ada banyak, kita bisa memasukkannya di menu Sarana (Ruangan).
Kemudian ada fasilitas rekap di menu sebelahnya, untuk kita mengetahui jumlah total dari sarana yang telah kita tambahkan.
Untuk source kode nya saya bisa di download di sini.
Sekian dulu postingan kali ini, terimakasih.


