Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Etienne Bruines
@EtienneBruines
Running "phpunit:development" (phpunit) task
Starting phpunit (target: development) in tests/includes
MySQL - string(9) "localhost"
string(52) "mysql:unix_socket=localhost;dbname=test;charset=utf8"
Fatal error: Command failed: PHP Fatal error:  Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket 'localhost' (2)' in /tmp/redaxscript/vendor/j4mie/idiorm/idiorm.php:258
Stack trace:
#0 /tmp/redaxscript/vendor/j4mie/idiorm/idiorm.php(258): PDO->__construct('mysql:unix_sock...', 'root', 'test', NULL)
#1 /tmp/redaxscript/vendor/j4mie/idiorm/idiorm.php(391): ORM::_setup_db('default')
#2 [internal function]: ORM::raw_execute('DROP TABLE IF E...')
#3 /tmp/redaxscript/vendor/j4mie/idiorm/idiorm.php(2208): call_user_func_array(Array, Array)
#4 /tmp/redaxscript/includes/Installer.php(271): ORM::__callStatic('rawExecute', Array)
#5 /tmp/redaxscript/includes/Installer.php(271): Redaxscript\Db::rawExecute('DROP TABLE IF E...')
#6 /tmp/redaxscript/includes/Installer.php(64): Redaxscript\Installer->_rawExecute('drop', 'mysql')
#7 /tmp/redaxscript/tests/bootstrap.php(61): Redaxscript\Installer->rawDrop()
#8 /tmp/redaxscript/vendor/phpunit/phpunit/src/Util/Fileloader.php(58): include_once('/tmp/redax in /tmp/redaxscript/vendor/j4mie/idiorm/idiorm.php on line 258
Also a bit weird... Seems like it's sending localhost as it's unix_socket now
Henry Ruhs
@redaxmedia
this is what i defined inside the tests i guess
but within localhost is no .socket ?
so it should not use that
Etienne Bruines
@EtienneBruines
correct
Henry Ruhs
@redaxmedia
or you hard coded it somewhere
Etienne Bruines
@EtienneBruines
I think I'll spend some time the next few days, setting up an actual php environment.... changed the code server-side (which doesn't have grunt), and not locally (where I ran grunt)
Running "phpunit:development" (phpunit) task
Starting phpunit (target: development) in tests/includes
MySQL - string(9) "localhost"
string(45) "mysql:host=localhost;dbname=test;charset=utf8"
PHPUnit 4.6.6 by Sebastian Bergmann and contributors.

...............................................................  63 / 489 ( 12%)
..................................string(9) "localhost"
.string(9) "localhost"
.string(9) "localhost"
........................... 126 / 489 ( 25%)
............................................................... 189 / 489 ( 38%)
............................................................... 252 / 489 ( 51%)
............................................................... 315 / 489 ( 64%)
............................................................... 378 / 489 ( 77%)
............................................................... 441 / 489 ( 90%)
................................................

Time: 2.71 seconds, Memory: 12.75Mb

OK (489 tests, 496 assertions)

Done, without errors.
Seems like your implementation works, when adding the ()
Which is a lot more positive than that sounded. ;)
Henry Ruhs
@redaxmedia
i still get errors, haha... but ok
Etienne Bruines
@EtienneBruines
invalid data source name; do you have a database called test?
You did fix the semicolon, and haven't got something like this?
Henry Ruhs
@redaxmedia
looks like something is broken with my mysql, right
i just push my changes now, ok
pgsql is working
Etienne Bruines
@EtienneBruines
that's nice, as I don't have pgsql installed yet to test it
is this like your code?
Etienne Bruines
@EtienneBruines
Yes
Henry Ruhs
@redaxmedia
all right, please do some testing with it and report me
i have to sleep now, otherwise my gf kills me^^
Etienne Bruines
@EtienneBruines
hehe, sure thing. :O it's already one
Henry Ruhs
@redaxmedia
you can close the HTTPS issue if it is invalid
yeah it is really late
Etienne Bruines
@EtienneBruines
I'll check on it, and close if it's indeed invalid
I'd say goodnight then ;)
Henry Ruhs
@redaxmedia
see you later, i hope you enjoy Redaxscript
n8
Matiss
@Addvilz
@redaxmedia you don't have a girlfriend. liar.
:D
Henry Ruhs
@redaxmedia
@Addvilz talk to the hand!
edmonsur
@edmonsur
COOL ;)
Capt Zeanie
@Capt-Zeanie
Hi, It's Sean aka Capt_zeanie
Henry Ruhs
@redaxmedia
hello sean
are you developing online or local?
Capt Zeanie
@Capt-Zeanie
Currently local using Bitnami WAMP on Win7
Henry Ruhs
@redaxmedia
all right, so what is your actual code inside the article?
Capt Zeanie
@Capt-Zeanie
at the moment I just have gone back to...
<function>
{
"gallery":
{
"directory": "images",
"options":
{
"quality": 80,
"height": 100
}
}
}
</function>
that is all the article content
this generate the thumbs in root/images
however I just get the article title and then blank when viewing the article.
Henry Ruhs
@redaxmedia
all right, the code does look correct
your images like png or jpg are located inside /images ?
or inside a sub-folder?
Capt Zeanie
@Capt-Zeanie
Currently inside root/images I have one jpg plus a directory of thumbs with one thumb of the jpg
Henry Ruhs
@redaxmedia
ok, and the jpg inside the thumbs folder is not broken and does have a file size?
Capt Zeanie
@Capt-Zeanie
the images is fine and has a valid file size. I I put the image in as a img src then it shows fine in a normal page.
Henry Ruhs
@redaxmedia
ok... please browse the article now and tell me what code is generated